mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
* Referring the current haiku version explicitly is not needed, since the RequiresUpdater takes care of setting the version of Haiku used for building a package.
92 lines
1.9 KiB
Plaintext
92 lines
1.9 KiB
Plaintext
SUMMARY="XML parser toolkit"
|
|
DESCRIPTION="
|
|
Expat is an XML parser library written in C. It is a stream-oriented parser in \
|
|
which an application registers handlers for things the parser might find in \
|
|
the XML document (like start tags).
|
|
"
|
|
HOMEPAGE="http://expat.sourceforge.net/"
|
|
COPYRIGHT="
|
|
1998-2000 Thai Open Source Software Center Ltd and Clark Cooper
|
|
2001-2006 Expat maintainers.
|
|
"
|
|
LICENSE="MIT"
|
|
SRC_URI="http://sourceforge.net/projects/expat/files/expat/$portVersion/expat-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="823705472f816df21c8f6aa026dd162b280806838bb55b3432b0fb1fcca7eb86"
|
|
REVISION="1"
|
|
ARCHITECTURES="x86_gcc2 x86 x86_64 arm"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
expat$secondaryArchSuffix = $portVersion compat >= 2.1
|
|
lib:libexpat$secondaryArchSuffix = 1.6.0 compat >= 1
|
|
"
|
|
if [ -z "$secondaryArchSuffix" ]; then
|
|
PROVIDES="$PROVIDES
|
|
cmd:xmlwf = $portVersion compat >= 2.1
|
|
"
|
|
fi
|
|
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
BUILD_REQUIRES="
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize
|
|
cmd:make
|
|
"
|
|
|
|
PATCH()
|
|
{
|
|
echo "AC_CONFIG_MACRO_DIR([m4])" >> configure.in
|
|
echo "ACLOCAL_AMFLAGS = -I m4" >> Makefile.am
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
rm -f conftools/libtool.m4
|
|
libtoolize --force --copy --install
|
|
aclocal -I conftools -I m4
|
|
autoconf
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
# remove command for secondary architecture
|
|
if [ -n "$secondaryArchSuffix" ]; then
|
|
rm -rf $binDir
|
|
fi
|
|
|
|
# prepare develop/lib
|
|
prepareInstalledDevelLibs libexpat
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|
|
|
|
# ----- devel package -------------------------------------------------------
|
|
|
|
PROVIDES_devel="
|
|
expat${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libexpat${secondaryArchSuffix} = 1.6.0 compat >= 1
|
|
"
|
|
REQUIRES_devel="
|
|
expat${secondaryArchSuffix} == $portVersion base
|
|
"
|