mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
94 lines
2.1 KiB
Bash
94 lines
2.1 KiB
Bash
SUMMARY="The XSLT C library of Gnome"
|
|
DESCRIPTION="Libxslt implements most of the EXSLT set of processor-portable \
|
|
extensions functions and some of Saxon's evaluate and expressions extensions.
|
|
|
|
People can either embed the library in their application or use xsltproc the \
|
|
command line processing tool. This library is free software and can be reused \
|
|
in commercial applications."
|
|
HOMEPAGE="http://www.xmlsoft.org/"
|
|
COPYRIGHT="2001-2012 Daniel Veillard"
|
|
LICENSE="MIT"
|
|
REVISION="3"
|
|
SOURCE_URI="ftp://xmlsoft.org/libxml2/libxslt-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="98b1bd46d6792925ad2dfe9a87452ea2adebf69dcb9919ffd55bf926a7f93f7f"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
libxslt$secondaryArchSuffix = $portVersion
|
|
cmd:xslt_config$secondaryArchSuffix = $portVersion
|
|
cmd:xsltproc$secondaryArchSuffix = $portVersion
|
|
lib:libexslt$secondaryArchSuffix = 0.8.20 compat >= 0
|
|
lib:libxslt$secondaryArchSuffix = $portVersion compat >= 1
|
|
"
|
|
REQUIRES="
|
|
haiku${secondaryArchSuffix}
|
|
lib:libxml2$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libxslt${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libexslt$secondaryArchSuffix = 0.8.20 compat >= 0
|
|
devel:libxslt$secondaryArchSuffix = $portVersion compat >= 1
|
|
"
|
|
REQUIRES_devel="
|
|
libxslt$secondaryArchSuffix == $portVersion base
|
|
devel:libxml2$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libxml2$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:gawk
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:sed
|
|
"
|
|
|
|
PATCH()
|
|
{
|
|
if [ "$effectiveTargetArchitecture" = x86_gcc2 ]; then
|
|
sed -i \
|
|
-E "s/( -Wextra| -Wmissing-format-attribute)//g" \
|
|
configure.ac
|
|
fi
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -fi
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm $libDir/libexslt.la $libDir/libxslt.la \
|
|
$libDir/libexslt.a $libDir/libxslt.a
|
|
|
|
prepareInstalledDevelLibs \
|
|
libxslt \
|
|
libexslt
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|