mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
xerces_c: convert to actual recipe
* bump version.
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
DESCRIPTION="
|
||||
Xerces-C++ is a validating XML parser written in a portable subset of C++.
|
||||
"
|
||||
HOMEPAGE="http://xerces.apache.org/xerces-c/"
|
||||
SRC_URI="http://mirror.pop-sc.rnp.br/apache//xerces/c/3/sources/xerces-c-3.1.1.tar.gz"
|
||||
CHECKSUM_MD5="6a8ec45d83c8cfb1584c5a5345cb51ae"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND="dev-util/pkgconfig >= 0.23"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd xerces-c-3.1.1
|
||||
libtoolize --copy --force --install
|
||||
autoreconf -i
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY`
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd xerces-c-3.1.1
|
||||
make install
|
||||
}
|
||||
|
||||
LICENSE="Apache v2"
|
||||
COPYRIGHT="1999 IBM Corporation
|
||||
1999-2010 The Apache Software Foundation"
|
||||
98
dev-libs/xerces_c/xerces_c-3.1.2.recipe
Normal file
98
dev-libs/xerces_c/xerces_c-3.1.2.recipe
Normal file
@@ -0,0 +1,98 @@
|
||||
SUMMARY="A validating XML parser written in a portable subset of C++."
|
||||
DESCRIPTION="This library makes it easy to give your application the ability \
|
||||
to read and write XML data. A shared library is provided for parsing, \
|
||||
generating, manipulating, and validating XML documents using the DOM, SAX, \
|
||||
and SAX2 APIs.
|
||||
"
|
||||
HOMEPAGE="https://xerces.apache.org/xerces-c/"
|
||||
COPYRIGHT="
|
||||
1999-2015 The Apache Software Foundation.
|
||||
"
|
||||
LICENSE="Apache v2"
|
||||
SRC_URI="http://apache.mirrors.tds.net//xerces/c/3/sources/xerces-c-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="743bd0a029bf8de56a587c270d97031e0099fe2b7142cef03e0da16e282655a0"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="x86 x86_64"
|
||||
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
|
||||
# x86_gcc2 is fine as primary target architecture as long as we're building
|
||||
# for a different secondary architecture.
|
||||
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
|
||||
else
|
||||
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
|
||||
fi
|
||||
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
|
||||
|
||||
SOURCE_DIR="xerces-c-$portVersion"
|
||||
|
||||
PROVIDES="
|
||||
xerces_c$secondaryArchSuffix = $portVersion compat >= 3.1
|
||||
lib:libxerces_c_3.1$secondaryArchSuffix = 3.1
|
||||
cmd:CreateDOMDocument$secondaryArchSuffix
|
||||
cmd:DOMCount$secondaryArchSuffix
|
||||
cmd:DOMPrint$secondaryArchSuffix
|
||||
cmd:EnumVal$secondaryArchSuffix
|
||||
cmd:MemParse$secondaryArchSuffix
|
||||
cmd:PParse$secondaryArchSuffix
|
||||
cmd:PSVIWriter$secondaryArchSuffix
|
||||
cmd:Redirect$secondaryArchSuffix
|
||||
cmd:SAX2Count$secondaryArchSuffix
|
||||
cmd:SAX2Print$secondaryArchSuffix
|
||||
cmd:SAXCount$secondaryArchSuffix
|
||||
cmd:SAXPrint$secondaryArchSuffix
|
||||
cmd:SCMPrint$secondaryArchSuffix
|
||||
cmd:SEnumVal$secondaryArchSuffix
|
||||
cmd:StdInParse$secondaryArchSuffix
|
||||
cmd:XInclude$secondaryArchSuffix
|
||||
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libstdc++$secondaryArchSuffix
|
||||
"
|
||||
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
|
||||
REQUIRES+="
|
||||
lib:libgcc_s$secondaryArchSuffix
|
||||
"
|
||||
fi
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:automake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:libtoolize
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
autoreconf -fi
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install-strip
|
||||
|
||||
prepareInstalledDevelLibs libxerces-c
|
||||
fixPkgconfig
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
# ----- devel package -------------------------------------------------------
|
||||
|
||||
PROVIDES_devel="
|
||||
xerces_c${secondaryArchSuffix}_devel = $portVersion compat >= 3.1
|
||||
devel:libxerces_c_3.1$secondaryArchSuffix = 3.1
|
||||
devel:libxerces_c$secondaryArchSuffix = 3.1
|
||||
"
|
||||
REQUIRES_devel="
|
||||
xerces_c$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
Reference in New Issue
Block a user