SUMMARY="A utility for patching ELF binaries" DESCRIPTION="PatchELF is a simple utility for modifying existing ELF executables and libraries." HOMEPAGE="https://github.com/NixOS/patchelf" COPYRIGHT="2004-2019 Eelco Dolstra" LICENSE="GNU GPL v3" REVISION="1" SOURCE_URI="$HOMEPAGE/releases/download/$portVersion/patchelf-$portVersion.tar.bz2" CHECKSUM_SHA256="1952b2a782ba576279c211ee942e341748fdb44997f704dd53def46cd055470b" ARCHITECTURES="all ?x86_gcc2" SECONDARY_ARCHITECTURES="x86" commandBinDir=$binDir commandSuffix=$secondaryArchSuffix if [ "$targetArchitecture" = x86_gcc2 ]; then commandSuffix= commandBinDir=$prefix/bin fi PROVIDES=" patchelf$secondaryArchSuffix = $portVersion cmd:patchelf$commandSuffix = $portVersion " REQUIRES=" haiku$secondaryArchSuffix " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel " BUILD_PREREQUIRES=" cmd:aclocal cmd:autoreconf cmd:gcc$secondaryArchSuffix cmd:make " BUILD() { autoreconf -vfi runConfigure --omit-dirs binDir ./configure \ --bindir=$commandBinDir make $jobArgs } INSTALL() { make install } TEST() { make -C tests -j1 check }