Files
haikuports/dev-libs/tinyxml/tinyxml-2.6.2.recipe
Humdinger 3e9345f81d Build fix for tinyxml
The recipe used to download a CMakeLists.txt that's no longer available.
Instead I added the makefile from Gentoo [1], as suggested by PulkoMandy,
which I slightly changed to save the need to patch it.
2016-10-22 08:48:46 +02:00

64 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="3"
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"
ARCHITECTURES="x86_gcc2 x86 x86_64"
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()
{
cp -f $portDir/additional-files/Makefile ./
make $jobArgs
}
INSTALL()
{
mkdir -p $developDocDir $includeDir $libDir
mv docs/* $developDocDir
mv tiny*.h $includeDir
mv libtinyxml.so.@MAJOR_V@.@MINOR_V@ $libDir/libtinyxml.so
prepareInstalledDevelLibs libtinyxml
# devel package
packageEntries devel \
$developDir
}