0
0
Fork 0
haikuports/x11-libs/libxfont/libxfont-1.5.4.recipe

96 lines
2.2 KiB
Bash
Raw Permalink Normal View History

2017-03-23 17:12:23 +00:00
SUMMARY="X Font rasterisation library"
2018-01-01 18:17:06 +00:00
DESCRIPTION="libxfont provides an X Window System client interface to \
the RandR extension to the X protocol. \
The RandR extension allows for run-time configuration of display attributes \
such as resolution, rotation, and reflection."
HOMEPAGE="https://www.x.org/releases/individual/lib/"
COPYRIGHT="2000, Compaq Computer Corporation.
2002 Hewlett-Packard Company, Inc.
2006 Intel Corporation
2008 Red Hat, Inc.
2011 Dave Airlie
2006 Keith Packard"
2017-03-23 17:12:23 +00:00
LICENSE="MIT (no promotion)"
REVISION="3"
2018-01-01 18:17:06 +00:00
SOURCE_URI="https://www.x.org/releases/individual/lib/libXfont-$portVersion.tar.bz2"
CHECKSUM_SHA256="1a7f7490774c87f2052d146d1e0e64518d32e6848184a18654e8d0bb57883242"
2017-03-23 17:12:23 +00:00
SOURCE_DIR="libXfont-$portVersion"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86"
2018-08-06 13:04:59 +00:00
libVersion="1.4.1"
2018-01-01 18:17:06 +00:00
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
2017-03-23 17:12:23 +00:00
PROVIDES="
libxfont$secondaryArchSuffix = $portVersion
2018-01-01 18:17:06 +00:00
lib:libXfont$secondaryArchSuffix = $libVersionCompat
2017-03-23 17:12:23 +00:00
"
REQUIRES="
haiku$secondaryArchSuffix
2018-01-01 18:17:06 +00:00
lib:libfontenc$secondaryArchSuffix
2018-08-08 15:34:16 +00:00
lib:libfreetype$secondaryArchSuffix
2017-03-23 17:12:23 +00:00
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
libxfont${secondaryArchSuffix}_devel = $portVersion
devel:libXfont$secondaryArchSuffix = $libVersionCompat
2017-03-23 17:12:23 +00:00
"
REQUIRES_devel="
libxfont$secondaryArchSuffix == $portVersion base
devel:fontsproto
devel:libfontenc$secondaryArchSuffix
devel:libfreetype$secondaryArchSuffix
devel:xproto
2017-03-23 17:12:23 +00:00
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
docbook_xml_dtd
docbook_xsl_stylesheets
devel:fontsproto
2017-03-23 17:12:23 +00:00
devel:libfontenc$secondaryArchSuffix
devel:libfreetype$secondaryArchSuffix
devel:libz$secondaryArchSuffix
devel:util_macros
devel:xorg_sgml_doctools
devel:xproto
devel:xtrans
2017-03-23 17:12:23 +00:00
"
BUILD_PREREQUIRES="
cmd:aclocal
2018-01-01 18:17:06 +00:00
cmd:autoconf
2017-03-23 17:12:23 +00:00
cmd:gcc$secondaryArchSuffix
2018-01-01 18:17:06 +00:00
cmd:libtoolize$secondaryArchSuffix
cmd:make
2017-03-23 17:12:23 +00:00
cmd:pkg_config$secondaryArchSuffix
cmd:xmlto
2017-03-23 17:12:23 +00:00
"
2018-01-01 18:17:06 +00:00
defineDebugInfoPackage libxfont$secondaryArchSuffix \
$libDir/libXfont.so.$libVersion
2017-03-23 17:12:23 +00:00
BUILD()
{
export LDFLAGS="-lnetwork"
2018-01-01 18:17:06 +00:00
autoreconf -vfi
2017-03-23 17:12:23 +00:00
runConfigure ./configure
2018-01-01 18:17:06 +00:00
make $jobArgs
2017-03-23 17:12:23 +00:00
}
INSTALL()
{
make install
2018-01-01 18:17:06 +00:00
rm -f $libDir/*.la
2017-03-23 17:12:23 +00:00
prepareInstalledDevelLib libXfont
2018-01-01 18:17:06 +00:00
fixPkgconfig
2017-03-23 17:12:23 +00:00
# devel package
packageEntries devel \
$developDir
}