Skip to content

Commit

Permalink
capstone: Fix _devel package, switch to cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
kallisti5 committed Mar 16, 2020
1 parent 4a6cc60 commit 4978f92
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions dev-util/capstone/capstone-4.0.1.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -51,6 +51,7 @@ BUILD_REQUIRES="
BUILD_PREREQUIRES="
cmd:awk
cmd:find
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:make
"
Expand All @@ -64,22 +65,28 @@ 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()
{
export INCDIR=$includeDir
export PREFIX=$prefix
export LIBDIRARCH=$relativeLibDir
./make.sh install
cd build
make install
prepareInstalledDevelLib libcapstone
fixPkgconfig
packageEntries devel $developDir
}

TEST()
{
cd build

export filename="corpus-libFuzzer-capstone_fuzz_disasmnext-latest"

if [ -d "./suite/fuzz/$filename" ]; then
Expand Down

0 comments on commit 4978f92

Please sign in to comment.