From 4978f922c5937e29fe1f465afa36980cbafe4d0e Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Mon, 16 Mar 2020 09:19:56 -0500 Subject: [PATCH] capstone: Fix _devel package, switch to cmake --- dev-util/capstone/capstone-4.0.1.recipe | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/dev-util/capstone/capstone-4.0.1.recipe b/dev-util/capstone/capstone-4.0.1.recipe index f787076df..1796fb953 100644 --- a/dev-util/capstone/capstone-4.0.1.recipe +++ b/dev-util/capstone/capstone-4.0.1.recipe @@ -16,7 +16,7 @@ various X86 malware tricks)." HOMEPAGE="http://www.capstone-engine.org" COPYRIGHT="2013-2019, COSEINC" LICENSE="BSD (3-clause)" -REVISION="2" +REVISION="3" SOURCE_URI="https://github.com/aquynh/capstone/archive/$portVersion.tar.gz" CHECKSUM_SHA256="79bbea8dbe466bd7d051e037db5961fdb34f67c9fac5c3471dd105cfb1e05dc7" srcGitRev="b01a30bf595c23081d0acfbcbe36fc8c6d829a71" @@ -51,6 +51,7 @@ BUILD_REQUIRES=" BUILD_PREREQUIRES=" cmd:awk cmd:find + cmd:cmake cmd:gcc$secondaryArchSuffix cmd:make " @@ -64,7 +65,10 @@ BUILD() export INCDIR=$includeDir export LIBDIRARCH=$relativeLibDir export MAKE_JOBS=$jobArgs - ./make.sh default + rm -rf build + mkdir build; cd build + cmake .. -DCMAKE_INSTALL_PREFIX=$prefix + make } INSTALL() @@ -72,7 +76,8 @@ INSTALL() export INCDIR=$includeDir export PREFIX=$prefix export LIBDIRARCH=$relativeLibDir - ./make.sh install + cd build + make install prepareInstalledDevelLib libcapstone fixPkgconfig packageEntries devel $developDir @@ -80,6 +85,8 @@ INSTALL() TEST() { + cd build + export filename="corpus-libFuzzer-capstone_fuzz_disasmnext-latest" if [ -d "./suite/fuzz/$filename" ]; then