Files
haikuports/dev-libs/libcroco/libcroco-0.6.8.recipe
2015-07-02 11:13:12 -04:00

90 lines
2.0 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="0bb182a726ac7fc15e29e786a9cf2eeed43f3548e10cbdaf2d9579f2fb2ee590"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PATCHES="libcroco-$portVersion.patchset"
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
"
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
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
# prepare develop/lib
prepareInstalledDevelLibs libcroco-0.6
fixPkgconfig
# devel package
packageEntries devel \
$developDir \
$binDir
}
TEST()
{
make tests
}
# ----- devel package ---------------------------------------------------------
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
"