Files
haikuports/x11-libs/pango/pango-1.40.14.recipe
2018-05-30 08:03:05 +02:00

103 lines
2.6 KiB
Bash

SUMMARY="Multi-platform 2D graphics library"
DESCRIPTION="Pango is a library for laying out and rendering of text, with an \
emphasis on internationalization."
HOMEPAGE="https://www.pango.org/"
COPYRIGHT="1999-2007,2010 Red Hat Software
2001,2002 Behdad Esfahbod
1999-2002 International Business Machines
2005-2007 Imendio AB
2008 Jürg Billeter
1999,2000 Dov Grobgeld
2005 Keith Packard
2010 Kristian Rietveld
2000-2002 Tor Lillqvist
2007 Novell, Inc.
2001 Alexander Larsson
2000 SuSE Linux Ltd"
LICENSE="GNU LGPL v2.1"
REVISION="2"
SOURCE_URI="http://ftp.gnome.org/pub/GNOME/sources/pango/1.40/pango-$portVersion.tar.xz"
CHECKSUM_SHA256="90af1beaa7bf9e4c52db29ec251ec4fd0a8f2cc185d521ad1f88d01b3a6a17e3"
PATCHES="pango-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
PROVIDES="
pango$secondaryArchSuffix = $portVersion compat >= 1
cmd:pango_view$secondaryArchSuffix
lib:libpango_1.0$secondaryArchSuffix = 0.4000.14 compat >= 0
lib:libpangocairo_1.0$secondaryArchSuffix = 0.4000.14 compat >= 0
lib:libpangoft2_1.0$secondaryArchSuffix = 0.4000.14 compat >= 0
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libcairo$secondaryArchSuffix
lib:libfreetype$secondaryArchSuffix
lib:libfontconfig$secondaryArchSuffix
lib:libglib_2.0$secondaryArchSuffix
lib:libharfbuzz$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
"
PROVIDES_devel="
pango${secondaryArchSuffix}_devel = $portVersion compat >= 1
devel:libpango_1.0$secondaryArchSuffix = 0.4000.14 compat >= 0
devel:libpangocairo_1.0$secondaryArchSuffix = 0.4000.14 compat >= 0
devel:libpangoft2_1.0$secondaryArchSuffix = 0.4000.14 compat >= 0
"
REQUIRES_devel="
pango$secondaryArchSuffix == $portVersion base
devel:libharfbuzz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcairo$secondaryArchSuffix
devel:libglib_2.0$secondaryArchSuffix
devel:libharfbuzz$secondaryArchSuffix
devel:libgraphite2$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:gtkdocize
cmd:find
"
BUILD()
{
libtoolize --force --copy --install
autoreconf -fi
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
# remove libtool library files
rm $libDir/libpango*.la
prepareInstalledDevelLibs libpango-1.0 \
libpangocairo-1.0 libpangoft2-1.0
fixPkgconfig
# devel package
packageEntries devel \
$developDir
}
TEST()
{
make check
}