Files
haikuports/dev-libs/liboil/liboil-0.3.17.recipe
2023-03-29 13:11:46 +02:00

90 lines
2.1 KiB
Bash

SUMMARY="Library of Optimized Inner Loops"
DESCRIPTION="Liboil is now in maintenence-only mode. No new features will \
be added, and bugs will be fixed according to their severity and \
availablility of patches. \
Users of liboil are recommended to switch to Orc \
(http://code.entropywave.com/projects/orc/). Please contact \
David Schleef <ds@schleef.org> about converting liboil functions \
to Orc code -- in many cases this work has already been done."
HOMEPAGE="https://liboil.freedesktop.org/wiki/"
COPYRIGHT="2002-2005 David A. Schleef, All rights reserved."
LICENSE="BSD (2-clause)"
REVISION="2"
SOURCE_URI="https://liboil.freedesktop.org/download/liboil-$portVersion.tar.gz"
CHECKSUM_SHA256="105f02079b0b50034c759db34b473ecb5704ffa20a5486b60a8b7698128bfc69"
PATCHES="liboil-$portVersion.patchset"
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$secondaryArchSuffix = $portVersion
cmd:oil_bugreport$commandSuffix
lib:liboil_0.3$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libglib_2.0$secondaryArchSuffix
"
PROVIDES_devel="
liboil${secondaryArchSuffix}_devel = $portVersion
devel:liboil_0.3$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
liboil$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libglib_2.0$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:gtkdocize
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
autoreconf -vfi
runConfigure --omit-dirs binDir ./configure \
--bindir=$commandBinDir \
--disable-static
make
}
INSTALL()
{
make install
# remove libtool file
rm -f $libDir/liboil*.la
prepareInstalledDevelLib liboil-0.3
fixPkgconfig
packageEntries devel \
$developDir
}
TEST()
{
make check
}