mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-11 06:10:06 +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.
73 lines
1.6 KiB
Bash
73 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="https://www.msweet.org/mxml/
|
|
https://github.com/michaelrsweet/mxml"
|
|
COPYRIGHT="2003-2019 Michael R Sweet"
|
|
LICENSE="Mini-XML
|
|
Apache v2
|
|
GNU LGPL v2"
|
|
REVISION="2"
|
|
SOURCE_URI="https://github.com/michaelrsweet/mxml/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="0a50cbb42ad078e51589208997858c8d86ea95f255d61e4af5b3d635d2659603"
|
|
SOURCE_FILENAME="mxml-v$portVersion.tar.gz"
|
|
PATCHES="mxml-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all ?x86_gcc2 ?x86"
|
|
SECONDARY_ARCHITECTURES="?x86_gcc2 x86"
|
|
|
|
libVersion="1.6"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%.*}"
|
|
|
|
PROVIDES="
|
|
mxml$secondaryArchSuffix = $portVersion
|
|
cmd:mxmldoc$secondaryArchSuffix = $portVersion
|
|
lib:libmxml$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
mxml${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libmxml$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
mxml${secondaryArchSuffix}_devel == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:autoconf
|
|
cmd:gcc${secondaryArchSuffix}
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:mkdepend
|
|
"
|
|
|
|
defineDebugInfoPackage mxml$secondaryArchSuffix \
|
|
"$libDir"/libmxml.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
libtoolize -fci
|
|
autoconf
|
|
runConfigure ./configure --enable-shared
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
prepareInstalledDevelLibs libmxml
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$manDir
|
|
}
|