mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +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.
109 lines
2.9 KiB
Bash
109 lines
2.9 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="1"
|
|
SOURCE_URI="http://ftp.gnome.org/pub/GNOME/sources/pango/${portVersion%.*}/pango-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="501e74496173c02dcd024ded7fbb3f09efd37e2a488e248aa40799424dbb3b2a"
|
|
PATCHES="pango-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="0.4800.5"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
pango$secondaryArchSuffix = $portVersion compat >= 1
|
|
cmd:pango_list$secondaryArchSuffix
|
|
cmd:pango_view$secondaryArchSuffix
|
|
lib:libpango_1.0$secondaryArchSuffix = $libVersionCompat
|
|
lib:libpangocairo_1.0$secondaryArchSuffix = $libVersionCompat
|
|
lib:libpangoft2_1.0$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libcairo$secondaryArchSuffix
|
|
lib:libfontconfig$secondaryArchSuffix
|
|
lib:libfreetype$secondaryArchSuffix
|
|
lib:libfribidi$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 = $libVersionCompat
|
|
devel:libpangocairo_1.0$secondaryArchSuffix = $libVersionCompat
|
|
devel:libpangoft2_1.0$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
pango$secondaryArchSuffix == $portVersion base
|
|
devel:libcairo$secondaryArchSuffix
|
|
devel:libfontconfig$secondaryArchSuffix
|
|
devel:libfreetype$secondaryArchSuffix
|
|
devel:libfribidi$secondaryArchSuffix
|
|
devel:libglib_2.0$secondaryArchSuffix
|
|
devel:libharfbuzz$secondaryArchSuffix
|
|
devel:libiconv$secondaryArchSuffix
|
|
devel:libintl$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libcairo$secondaryArchSuffix
|
|
devel:libfribidi$secondaryArchSuffix
|
|
devel:libglib_2.0$secondaryArchSuffix
|
|
devel:libgraphite2$secondaryArchSuffix
|
|
devel:libharfbuzz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:find
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:gtkdocize
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:meson
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
meson build \
|
|
--prefix="$prefix" --libdir="$libDir" --includedir="$includeDir" \
|
|
--bindir="$binDir"
|
|
meson compile -C build
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
meson install -C build
|
|
|
|
prepareInstalledDevelLibs libpango-1.0 \
|
|
libpangocairo-1.0 libpangoft2-1.0
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
meson test -C build
|
|
}
|