Files
haikuports/dev-libs/libcroco/libcroco-0.6.12.recipe
2017-04-13 20:45:39 +02:00

93 lines
2.1 KiB
Bash

SUMMARY="A css2 parsing and manipulation library"
DESCRIPTION="
The parser provides a low level event driven SAC like api \
and a css object model like api.
Libcroco provides a CSS2 selection engine and an experimental
xml/css rendering engine.
"
HOMEPAGE="https://git.gnome.org/browse/libcroco/"
LICENSE="GNU LGPL v2.1"
COPYRIGHT="2003-2004 Dodji Seketeli"
SOURCE_URI="https://git.gnome.org/browse/libcroco/snapshot/libcroco-$portVersion.tar.xz"
CHECKSUM_SHA256="61a57238cc866e0ecde085631a26080e187b5195a0fa9b6f5754b85a031b647b"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
libcroco$secondaryArchSuffix = $portVersion compat >= 0
lib:libcroco_0.6$secondaryArchSuffix = 3.0.1 compat >= 3
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libglib_2.0$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
#required by glib
lib:libiconv$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
libcroco${secondaryArchSuffix}_devel = $portVersion
cmd:croco_0.6_config${secondaryArchSuffix}
cmd:csslint_0.6$secondaryArchSuffix
devel:libcroco_0.6$secondaryArchSuffix = 3.0.1 compat >= 3
"
REQUIRES_devel="
libcroco$secondaryArchSuffix == $portVersion base
haiku$secondaryArchSuffix
lib:libglib_2.0$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
"
BUILD_REQUIRES="
devel:libglib_2.0$secondaryArchSuffix
devel:libxml2$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:gtkdocize
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
cp /boot/system/data/gtk-doc/data/gtk-doc.make ./
autoreconf -fi
runConfigure ./configure --disable-gtk-doc --disable-Bsymbolic
make $jobArgs
}
INSTALL()
{
make install
# remove libtool file
rm $libDir/*.la
# prepare develop/lib
prepareInstalledDevelLibs libcroco-0.6
fixPkgconfig
# devel package
packageEntries devel \
$developDir \
$binDir
}
TEST()
{
make tests
}