sdl2_pango, new recipe (#6220)

This commit is contained in:
Schrijvers Luc
2021-10-01 14:06:32 +02:00
committed by GitHub
parent ad1e44e446
commit 3de46affb0

View File

@@ -0,0 +1,84 @@
SUMMARY="A placeholder for the port of Tux Paint to SDL2"
DESCRIPTION="SDL_Pango library allows you to use TrueType fonts to \
render internationalized and tagged text in SDL applications."
HOMEPAGE="https://sourceforge.net/projects/tuxpaint-sdl2/files/SDL2_Pango/"
COPYRIGHT="2004 NAKAMURA Ken'ichi'"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://sourceforge.net/projects/tuxpaint-sdl2/files/SDL2_Pango/SDL2_Pango-0.1.2.tar.gz"
CHECKSUM_SHA256="32eae8044c8ccd454dcf1948e669e63f9806fa7aa30a3de3125da23e4d37826a"
SOURCE_DIR="SDL2_Pango-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="1.1.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
sdl2_pango$secondaryArchSuffix = $portVersion
lib:libSDL2_Pango$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libSDL2_2.0$secondaryArchSuffix
lib:libpango_1.0$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libfreetype$secondaryArchSuffix
lib:libgl$secondaryArchSuffix
#needed for pango
lib:libglib_2.0$secondaryArchSuffix
#needed for pangoft2
lib:libfontconfig$secondaryArchSuffix
lib:libgraphite2$secondaryArchSuffix
"
PROVIDES_devel="
sdl2_pango${secondaryArchSuffix}_devel = $portVersion
devel:libSDL2_Pango$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
sdl2_pango$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libSDL2_2.0$secondaryArchSuffix
devel:libpango_1.0$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
devel:libfreetype$secondaryArchSuffix
devel:libgl$secondaryArchSuffix
#needed for pango
devel:libglib_2.0$secondaryArchSuffix
#needed for pangoft2
devel:libfontconfig$secondaryArchSuffix
devel:libgraphite2$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:gcc$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
autoreconf -vfi
runConfigure ./configure --prefix=$prefix
make $jobArgs
}
INSTALL()
{
make install
# remove libtool library file
rm $libDir/libSDL2_Pango.la
prepareInstalledDevelLib libSDL2_Pango
fixPkgconfig
packageEntries devel $developDir
}