Files
haikuports/media-libs/sdl2_ttf/sdl2_ttf-2.0.18.recipe
Jerome Duval 826c557cdd sdl2_ttf: bump version
disable x86_gcc2 for harfbuzz
2022-02-26 16:14:59 +01: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="1"
SOURCE_URI="http://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-$portVersion.tar.gz"
CHECKSUM_SHA256="7234eb8883514e019e7747c703e4a774575b18d435c22a4a29d068cb768a2251"
SOURCE_DIR="SDL2_ttf-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
sdl2_ttf$secondaryArchSuffix = $portVersion compat >= 2.0
lib:libSDL2_ttf$secondaryArchSuffix = $portVersion compat >= 2.0
lib:libSDL2_ttf_2.0$secondaryArchSuffix = 0.18.0 compat >= 0
"
REQUIRES="
haiku${secondaryArchSuffix}
lib:libfreetype$secondaryArchSuffix
lib:libharfbuzz$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.18.0 compat >= 0
"
REQUIRES_devel="
sdl2_ttf$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libfreetype$secondaryArchSuffix
devel:libGL$secondaryArchSuffix
devel:libglu$secondaryArchSuffix
devel:libharfbuzz$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 --disable-freetype-builtin \
--disable-harfbuzz-builtin
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
}