mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 20:20:06 +02:00
rhash: add commandSuffix & commandBinDir, rework package layout.
On all primary architectures, as well as on x86 secondary arch for x86_gcc2h, the shared lib, the manual pages, the cmd:rhash runtime and its symlinks all remain in the base package. On x86 secondary arch for x86_64 hybrid the runtime is moved to rhash_x86_bin, and the base package, rhash_x86, will only ship the shared lib.
This commit is contained in:
@@ -14,26 +14,50 @@ SOURCE_URI="https://downloads.sourceforge.net/rhash/rhash-$portVersion-src.tar.g
|
||||
CHECKSUM_SHA256="98e0688acae29e68c298ffbcdbb0f838864105f9b2bd8857980664435b1f1f2e"
|
||||
SOURCE_DIR="RHash-$portVersion"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
commandSuffix=$secondaryArchSuffix
|
||||
commandBinDir=$binDir
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
commandSuffix=
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
PROVIDES="
|
||||
rhash$secondaryArchSuffix = $portVersion
|
||||
cmd:ed2k_link$secondaryArchSuffix
|
||||
cmd:gost_hash$secondaryArchSuffix
|
||||
cmd:has160_hash$secondaryArchSuffix
|
||||
cmd:magnet_link$secondaryArchSuffix
|
||||
cmd:rhash$secondaryArchSuffix
|
||||
cmd:sfv_hash$secondaryArchSuffix
|
||||
cmd:tiger_hash$secondaryArchSuffix
|
||||
cmd:tth_hash$secondaryArchSuffix
|
||||
cmd:whirlpool_hash$secondaryArchSuffix
|
||||
lib:librhash$secondaryArchSuffix = 0
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
RHASH_BIN="
|
||||
cmd:ed2k_link$commandSuffix = $portVersion
|
||||
cmd:gost_hash$commandSuffix = $portVersion
|
||||
cmd:has160_hash$commandSuffix = $portVersion
|
||||
cmd:magnet_link$commandSuffix = $portVersion
|
||||
cmd:rhash$commandSuffix = $portVersion
|
||||
cmd:sfv_hash$commandSuffix = $portVersion
|
||||
cmd:tiger_hash$commandSuffix = $portVersion
|
||||
cmd:tth_hash$commandSuffix = $portVersion
|
||||
cmd:whirlpool_hash$commandSuffix = $portVersion
|
||||
"
|
||||
if [ -z "$commandSuffix" ]; then
|
||||
PROVIDES="$PROVIDES
|
||||
$RHASH_BIN
|
||||
"
|
||||
else
|
||||
PROVIDES_bin="
|
||||
rhash_bin = $portVersion
|
||||
$RHASH_BIN
|
||||
"
|
||||
REQUIRES_bin="
|
||||
haiku$secondaryArchSuffix
|
||||
rhash$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
fi
|
||||
|
||||
PROVIDES_devel="
|
||||
rhash${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:librhash$secondaryArchSuffix = 0
|
||||
@@ -60,7 +84,7 @@ BUILD()
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make PREFIX=$prefix BINDIR=$binDir MANDIR=$manDir \
|
||||
make PREFIX=$prefix BINDIR=$commandBinDir MANDIR=$manDir \
|
||||
LOCALEDIR=$dataDir/locale install-shared
|
||||
make -C librhash PREFIX=$prefix INCDIR=$includeDir LIBDIR=$libDir \
|
||||
install-headers install-lib-shared install-so-link
|
||||
@@ -69,6 +93,12 @@ INSTALL()
|
||||
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
|
||||
if [ -n "$commandSuffix" ]; then
|
||||
packageEntries bin \
|
||||
"$commandBinDir" \
|
||||
"$manDir"
|
||||
fi
|
||||
}
|
||||
|
||||
TEST()
|
||||
|
||||
Reference in New Issue
Block a user