mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-03 05:28:53 +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.
84 lines
2.3 KiB
Bash
84 lines
2.3 KiB
Bash
SUMMARY="A TrueType font rendering library for SDL2"
|
|
DESCRIPTION="
|
|
SDL_ttf is a TrueType font rendering library that is used with the SDL \
|
|
library, and almost as portable. It depends on freetype2 to handle the \
|
|
TrueType font data. It allows a programmer to use multiple TrueType fonts \
|
|
without having to code a font rendering routine themselves. With the power of \
|
|
outline fonts and antialiasing, high quality text output can be obtained \
|
|
without much effort."
|
|
HOMEPAGE="http://www.libsdl.org/projects/SDL_ttf"
|
|
COPYRIGHT="1997-2013 Sam Lantinga"
|
|
LICENSE="Zlib"
|
|
REVISION="1"
|
|
SOURCE_URI="http://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="a9eceb1ad88c1f1545cd7bd28e7cbc0b2c14191d40238f531a15b01b1b22cd33"
|
|
SOURCE_DIR="SDL2_ttf-$portVersion"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86 x86_gcc2"
|
|
|
|
PROVIDES="
|
|
sdl2_ttf$secondaryArchSuffix = $portVersion compat >= 2.0
|
|
lib:libSDL2_ttf$secondaryArchSuffix = $portVersion compat >= 2.0
|
|
lib:libSDL2_ttf_2.0$secondaryArchSuffix = 0.14.1 compat >= 0
|
|
"
|
|
REQUIRES="
|
|
haiku${secondaryArchSuffix}
|
|
lib:libfreetype$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libglu$secondaryArchSuffix
|
|
lib:libSDL2_2.0$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
sdl2_ttf${secondaryArchSuffix}_devel = $portVersion compat >= 2.0
|
|
devel:libSDL2_ttf$secondaryArchSuffix = $portVersion compat >= 2.0
|
|
devel:libSDL2_ttf_2.0$secondaryArchSuffix = 0.14.1 compat >= 0
|
|
"
|
|
REQUIRES_devel="
|
|
sdl2_ttf$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libfreetype$secondaryArchSuffix
|
|
devel:libGL$secondaryArchSuffix
|
|
devel:libglu$secondaryArchSuffix
|
|
devel:libSDL2$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
touch INSTALL NEWS README AUTHORS ChangeLog COPYING
|
|
autoreconf -fi
|
|
runConfigure ./configure --with-x=no
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
# remove libtool library file
|
|
rm $libDir/libSDL2_ttf.la
|
|
|
|
prepareInstalledDevelLibs libSDL2_ttf \
|
|
libSDL2_ttf-2.0
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|