mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +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.
62 lines
1.3 KiB
Bash
62 lines
1.3 KiB
Bash
SUMMARY="A lightweight C library"
|
|
DESCRIPTION="Serd is a lightweight C library for RDF syntax which \
|
|
supports reading and writing Turtle and NTriples."
|
|
HOMEPAGE="http://drobilla.net/software/serd/"
|
|
COPYRIGHT="2011-2017 David Robillard"
|
|
LICENSE="MIT"
|
|
REVISION="1"
|
|
SOURCE_URI="http://download.drobilla.net/serd-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="e3e44a88f90a9971d55e6cbd59a7b9cfa97cfc17c512fed7166a4252d5209298"
|
|
|
|
ARCHITECTURES="?all !x86_gcc2 x86"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
serd$secondaryArchSuffix = $portVersion
|
|
cmd:serdi$secondaryArchSuffix
|
|
lib:libserd_0$secondaryArchSuffix = $portVersion compat >= 0
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
serd${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libserd_0$secondaryArchSuffix = $portVersion compat >= 0
|
|
"
|
|
REQUIRES_devel="
|
|
serd$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:python2
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
./waf configure --prefix=$prefix \
|
|
--mandir=$manDir --libdir=$libDir --bindir=$binDir \
|
|
--includedir=$includeDir --static --test
|
|
./waf
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
./waf install
|
|
|
|
prepareInstalledDevelLib libserd-0
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
./waf test
|
|
}
|