diff --git a/x11-libs/libxft/libxft-2.3.2.recipe b/x11-libs/libxft/libxft-2.3.2.recipe new file mode 100644 index 000000000..c61d6edfd --- /dev/null +++ b/x11-libs/libxft/libxft-2.3.2.recipe @@ -0,0 +1,99 @@ +SUMMARY="FreeType-based font drawing library for X" +DESCRIPTION="Xft provides a client-side font API for X applications, making \ +the FreeType font rasterizer available to X clients. Fontconfig is used for \ +font specification resolution. Where available, the RENDER extension handles \ +glyph drawing; otherwise, the core X protocol is used." +HOMEPAGE="https://www.x.org/" +COPYRIGHT="2000-2003 Keith Packard" +LICENSE="libXft" +REVISION="1" +SOURCE_URI="https://www.x.org/releases/individual/lib/libXft-$portVersion.tar.bz2" +CHECKSUM_SHA256="f5a3c824761df351ca91827ac221090943ef28b248573486050de89f4bfcdc4c" +SOURCE_DIR="libXft-$portVersion" + +ARCHITECTURES="x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="?x86_gcc2 x86" + +libVersion="$portVersion" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +PROVIDES=" + libxft$secondaryArchSuffix = $portVersion + lib:libxft$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libfontconfig$secondaryArchSuffix + lib:libfreetype$secondaryArchSuffix + lib:libx11$secondaryArchSuffix + lib:libxrender$secondaryArchSuffix + " + +PROVIDES_devel=" + libxft${secondaryArchSuffix}_devel = $portVersion + devel:libxft$secondaryArchSuffix = $libVersionCompat + " +REQUIRES_devel=" + libxft$secondaryArchSuffix == $portVersion base + devel:libx11$secondaryArchSuffix + devel:libxau$secondaryArchSuffix + devel:libxcb$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:kbproto$secondaryArchSuffix + devel:libfontconfig$secondaryArchSuffix + devel:libpthread_stubs$secondaryArchSuffix + devel:libx11$secondaryArchSuffix + devel:libxrender$secondaryArchSuffix + devel:renderproto$secondaryArchSuffix + devel:util_macros$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:autoconf + cmd:automake + cmd:autoreconf + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:libtoolize$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +defineDebugInfoPackage libxft$secondaryArchSuffix \ + "$libDir"/libXft.so.$libVersion + +BUILD() +{ + autoreconf -i + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + + # remove libtool library file + rm -f "$libDir"/libXft.la + + prepareInstalledDevelLib libXft + fixPkgconfig + + if [ -n "$secondaryArchSuffix" ]; then + rm -rf "$documentationDir" + maybe_manDir= + else + maybe_manDir="$manDir" + fi + + packageEntries devel \ + "$developDir" \ + ${maybe_manDir:+"$maybe_manDir"} +} + +TEST() +{ + make check +} diff --git a/x11-libs/libxft/licenses/libXft b/x11-libs/libxft/licenses/libXft new file mode 100644 index 000000000..e506314ae --- /dev/null +++ b/x11-libs/libxft/licenses/libXft @@ -0,0 +1,21 @@ + +Copyright © 2001,2003 Keith Packard + +Permission to use, copy, modify, distribute, and sell this software and its +documentation for any purpose is hereby granted without fee, provided that +the above copyright notice appear in all copies and that both that +copyright notice and this permission notice appear in supporting +documentation, and that the name of Keith Packard not be used in +advertising or publicity pertaining to distribution of the software without +specific, written prior permission. Keith Packard makes no +representations about the suitability of this software for any purpose. It +is provided "as is" without express or implied warranty. + +KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, +INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO +EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR +CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, +DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER +TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +