mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
patchelf, new recipe (#9424)
This commit is contained in:
55
dev-util/patchelf/patchelf-0.18.0.recipe
Normal file
55
dev-util/patchelf/patchelf-0.18.0.recipe
Normal file
@@ -0,0 +1,55 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user