mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
72 lines
1.6 KiB
Bash
72 lines
1.6 KiB
Bash
SUMMARY="Minimum XML Library"
|
|
DESCRIPTION="Mini-XML is a small XML parsing library that you can \
|
|
use to read XML and XML-like data files in your application without \
|
|
requiring large non-standard libraries."
|
|
HOMEPAGE="http://www.minixml.org/index.php"
|
|
COPYRIGHT="2003-2014 Michael R Sweet"
|
|
LICENSE="GNU LGPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/michaelrsweet/mxml/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="7d3dfe661e50908fe41aef9b97ba6f7f158cab5208515c6be9f5bc9daf032329"
|
|
SOURCE_DIR="mxml-$portVersion"
|
|
PATCHES="mini_xml-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="?x86_gcc2 ?x86 ?x86_64"
|
|
SECONDARY_ARCHITECTURES="?x86_gcc2 ?x86"
|
|
|
|
libVersion="1.6"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%.*}"
|
|
|
|
PROVIDES="
|
|
mini_xml$secondaryArchSuffix = $portVersion
|
|
cmd:mxmldoc$secondaryArchSuffix = $portVersion
|
|
lib:libmxml$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
mini_xml${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libmxml$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
mini_xml${secondaryArchSuffix}_devel == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:autoconf
|
|
cmd:gcc${secondaryArchSuffix}
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:mkdepend
|
|
"
|
|
|
|
defineDebugInfoPackage mini_xml$secondaryArchSuffix \
|
|
"$libDir"/libmxml.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
libtoolize -fci
|
|
autoconf
|
|
runConfigure ./configure --enable-shared
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
prepareInstalledDevelLibs \
|
|
libmxml
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make testmxml
|
|
}
|