mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-11 06:10:06 +02:00
70 lines
1.7 KiB
Bash
70 lines
1.7 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-2009 Michael R Sweet"
|
|
LICENSE="GNU LGPL v2"
|
|
REVISION="2"
|
|
SOURCE_URI="https://github.com/michaelrsweet/mxml/archive/release-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="91d13f51d33dbd17360cc51ce69cf046a7ff7ff256195064c092dc4dbd95810a"
|
|
SOURCE_FILENAME="mxml-$portVersion.tar.gz"
|
|
SOURCE_DIR="mxml-release-$portVersion"
|
|
PATCHES="mini_xml-$portVersion.patch"
|
|
|
|
ARCHITECTURES="x86_gcc2 x86 ?x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="1.4"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%.*}"
|
|
|
|
PROVIDES="
|
|
mini_xml$secondaryArchSuffix = $portVersion
|
|
cmd:mxmldoc$secondaryArchSuffix
|
|
lib:libmxml$secondaryArchSuffix = $libVersionCompat
|
|
lib:mxml$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
mini_xml${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libmxml$secondaryArchSuffix = $libVersionCompat
|
|
devel:mxml$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
mini_xml$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
defineDebugInfoPackage mini_xml$secondaryArchSuffix \
|
|
"$libDir"/libmxml.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
runConfigure ./configure --enable-shared
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
prepareInstalledDevelLib libmxml
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$dataDir \
|
|
$manDir/man3
|
|
}
|