mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
liboil, cleanup, bring up to todays standard (#8162)
This commit is contained in:
@@ -14,44 +14,58 @@ SOURCE_URI="https://liboil.freedesktop.org/download/liboil-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="105f02079b0b50034c759db34b473ecb5704ffa20a5486b60a8b7698128bfc69"
|
||||
PATCHES="liboil-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="?all x86_gcc2"
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
commandBinDir=$binDir
|
||||
commandSuffix=$secondaryArchSuffix
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
commandSuffix=
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
libVersion="0.3.0"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
liboil = $portVersion
|
||||
cmd:oil_bugreport
|
||||
lib:liboil_0.3 = 0.3.0 compat >= 0
|
||||
liboil$secondaryArchSuffix = $portVersion
|
||||
cmd:oil_bugreport$commandSuffix
|
||||
lib:liboil_0.3$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
lib:libglib_2.0
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libglib_2.0$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
liboil = $portVersion
|
||||
devel:liboil_0.3 = 0.3.0 compat >= 0
|
||||
liboil${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:liboil_0.3$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
liboil == $portVersion base
|
||||
liboil$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
devel:libglib_2.0
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libglib_2.0$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:awk
|
||||
cmd:gcc
|
||||
cmd:libtoolize
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:gtkdocize
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
autoreconf -vfi
|
||||
runConfigure ./configure
|
||||
runConfigure --omit-dirs binDir ./configure \
|
||||
--bindir=$commandBinDir \
|
||||
--disable-static
|
||||
make
|
||||
}
|
||||
|
||||
@@ -59,13 +73,14 @@ INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
# remove libtool file
|
||||
rm -f $libDir/liboil*.la
|
||||
|
||||
prepareInstalledDevelLib liboil-0.3
|
||||
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel $developDir
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
|
||||
Reference in New Issue
Block a user