Files
haikuports/media-libs/sdl2_ttf/sdl2_ttf-2.0.14.recipe
Jerome Duval fc0936b040 Bump revisions for x86_64 rebuild after time_t change.
* a few apps needed build fix for time_t.
* disable compatibility packages for x86_64.
2017-06-27 15:46:25 +02:00

87 lines
2.4 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="6"
SOURCE_URI="http://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-$portVersion.tar.gz"
CHECKSUM_SHA256="34db5e20bcf64e7071fe9ae25acaa7d72bdc4f11ab3ce59acc768ab62fe39276"
SOURCE_DIR="SDL2_ttf-$portVersion"
ARCHITECTURES="x86 x86_gcc2 x86_64"
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.0 compat >= 0
"
REQUIRES="
haiku${secondaryArchSuffix}
lib:libfreetype$secondaryArchSuffix
lib:libSDL2_2.0$secondaryArchSuffix
lib:libz$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libglu$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.0 compat >= 0
"
REQUIRES_devel="
sdl2_ttf$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libfreetype$secondaryArchSuffix
devel:libSDL2$secondaryArchSuffix
devel:libz$secondaryArchSuffix
devel:libGL$secondaryArchSuffix
devel:libglu$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:libtoolize$secondaryArchSuffix
cmd:aclocal_1.13
cmd:automake_1.13
cmd:autoconf
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
touch INSTALL NEWS README AUTHORS ChangeLog COPYING
libtoolize --copy --force --install
aclocal-1.13 --install -I acinclude
autoconf
automake-1.13
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
}