66 lines
1.7 KiB
Bash
66 lines
1.7 KiB
Bash
SUMMARY="A small C++ XML Parser"
|
|
DESCRIPTION="Tinyxml is a simple, OS independent XML parser for the C++ \
|
|
language.
|
|
Timyxml was first created to solve the common text I/O file problem. It \
|
|
parses the XML into a DOM-like tree and is able to read and write XML files.\
|
|
It allows you to create your own document mark-ups or even construct an XML \
|
|
document from scratch with C++ objects."
|
|
HOMEPAGE="http://www.grinninglizard.com/tinyxml/index.html"
|
|
COPYRIGHT="2001-2010 Lee Thomason"
|
|
LICENSE="Zlib"
|
|
REVISION="5"
|
|
SOURCE_URI="http://downloads.sourceforge.net/project/tinyxml/tinyxml/$portVersion/tinyxml_2_6_2.tar.gz"
|
|
CHECKSUM_SHA256="15bdfdcec58a7da30adc87ac2b078e4417dbe5392f3afb719f9ba6d062645593"
|
|
SOURCE_DIR="tinyxml"
|
|
ADDITIONAL_FILES="Makefile"
|
|
PATCHES="tinyxml-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
tinyxml$secondaryArchSuffix = $portVersion compat >= 2
|
|
lib:libtinyxml$secondaryArchSuffix = $portVersion compat >= 2
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
tinyxml${secondaryArchSuffix}_devel = $portVersion compat >= 2
|
|
devel:libtinyxml${secondaryArchSuffix} = $portVersion compat >= 2
|
|
"
|
|
REQUIRES_devel="
|
|
tinyxml${secondaryArchSuffix} == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
sed -e "s:@MAJOR_V@:2:" -e "s:@MINOR_V@:6.2:" \
|
|
$portDir/additional-files/Makefile > ./Makefile
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $developDocDir $includeDir $libDir
|
|
cp -R docs/* $developDocDir
|
|
cp -R tiny*.h $includeDir
|
|
cp libtinyxml.so* $libDir
|
|
|
|
prepareInstalledDevelLibs libtinyxml
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|