From 3034736b200aabbd8f0096c2888014e53cac172b Mon Sep 17 00:00:00 2001 From: miqlas Date: Thu, 23 Mar 2017 18:12:23 +0100 Subject: [PATCH] libXfont: new recipe (#1189) --- x11-libs/libxfont/libxfont-1.5.2.recipe | 80 +++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 x11-libs/libxfont/libxfont-1.5.2.recipe diff --git a/x11-libs/libxfont/libxfont-1.5.2.recipe b/x11-libs/libxfont/libxfont-1.5.2.recipe new file mode 100644 index 000000000..e60c02cd2 --- /dev/null +++ b/x11-libs/libxfont/libxfont-1.5.2.recipe @@ -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 +}