libXfont: new recipe (#1189)

This commit is contained in:
miqlas
2017-03-23 18:12:23 +01:00
committed by waddlesplash
parent 5443f7449f
commit 3034736b20

View File

@@ -0,0 +1,80 @@
SUMMARY="X Font rasterisation library"
DESCRIPTION="libXfont provides various services for X servers, most notably \
font selection and rasterisation (through external libraries such as freetype)."
HOMEPAGE="http://xorg.freedesktop.org/releases/individual/lib/"
COPYRIGHT="1994-1996 Silicon Graphics Computer Systems, Inc."
LICENSE="MIT (no promotion)"
REVISION="1"
SOURCE_URI="https://www.x.org/archive/individual/lib/libXfont-$portVersion.tar.gz"
CHECKSUM_SHA256="a7350c75171d03d06ae0d623e42240356d6d3e1ac7dfe606639bf20f0d653c93"
SOURCE_DIR="libXfont-$portVersion"
ARCHITECTURES="?x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
libxfont$secondaryArchSuffix = $portVersion
lib:libxfont$secondaryArchSuffix = 1.4.1 compat >= 1
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libfontenc$secondaryArchSuffix
lib:libfreetype$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
libxfont${secondaryArchSuffix}_devel = $portVersion
devel:libxfont$secondaryArchSuffix = 1.4.1 compat >= 1
"
REQUIRES_devel="
libxfont$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:fontsproto$secondaryArchSuffix
devel:libfontenc$secondaryArchSuffix
devel:libfreetype$secondaryArchSuffix
devel:libz$secondaryArchSuffix
devel:xproto$secondaryArchSuffix
devel:xtrans$secondaryArchSuffix
"
BUILD_PREREQUIRES="
devel:util_macros$secondaryArchSuffix
cmd:autoconf
cmd:libtool
cmd:aclocal
cmd:make
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
export LDFLAGS="-lnetwork"
libtoolize --force --copy --install
autoreconf -i
runConfigure ./configure
}
INSTALL()
{
make install
rm -rf $libDir/libXfont.la
fixPkgconfig
prepareInstalledDevelLib libXfont
# devel package
packageEntries devel \
$developDir
}
TEST()
{
make check
}