Files
haikuports/dev-libs/expat/expat-2.1.0.recipe
fbrosson 18b6b70ea2 expat: drop 2.0.1, fix 2.1.0, add 2.1.1.
* Drop version 2.0.1.
* $manDir was both in primary and secondary arch packages, causing
  problems when uninstalling only one of them. Fixed by discarding
  $documentationDir for secondary arch.
* Reorder sections for 2.1.0.
* configure.in already has "AC_CONFIG_MACRO_DIR([m4])" so there is
  no need to append it in PATCH().
* Drop PATCH() and, instead, use a real patch to create Makefile.am
  otherwise /bin/haikuporter complains about untracked files.
* Add $secondaryArchSuffix to cmd:libtoolize in BUILD_PREREQUIRES.
* Add recipe for 2.1.1 with patch for gcc2.
2016-03-22 04:58:55 +00:00

82 lines
1.8 KiB
Bash

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-2012 Expat maintainers."
LICENSE="MIT"
REVISION="2"
SOURCE_URI="http://downloads.sf.net/expat/expat-$portVersion.tar.gz"
CHECKSUM_SHA256="823705472f816df21c8f6aa026dd162b280806838bb55b3432b0fb1fcca7eb86"
PATCHES="Makefile.am.patch"
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
"
PROVIDES_devel="
expat${secondaryArchSuffix}_devel = $portVersion
devel:libexpat$secondaryArchSuffix = 1.6.0 compat >= 1
"
REQUIRES_devel="
expat$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
"
BUILD()
{
libtoolize --force --copy --install
aclocal -I conftools -I m4
autoconf
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
# remove command and manual for secondary architecture
if [ -n "$secondaryArchSuffix" ]; then
rm -rf $binDir $documentationDir
fi
# prepare develop/lib
prepareInstalledDevelLibs libexpat
fixPkgconfig
# devel package
packageEntries devel \
$developDir
}
TEST()
{
make check
}