0
0
Fork 0
haikuports/dev-games/t4k_common/t4k_common-0.1.1.recipe

99 lines
2.6 KiB
Bash

SUMMARY="The common library for tuxmath and tuxtype"
DESCRIPTION="t4k_common, a library of code shared between tuxmath and tuxtype"
HOMEPAGE="http://tux4kids.alioth.debian.org/"
COPYRIGHT="2007 Free Software Foundation, Inc."
LICENSE="GNU GPL v2"
REVISION="3"
SOURCE_URI="https://downloads.sourceforge.net/project/tuxmath/t4k_common/t4k_common-0.1.1.tar.gz"
CHECKSUM_SHA256="42c155816dae2c5dad560faa50edaa1ca84536530283d37859c4b91e82675110"
PATCHES="t4k_common-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
t4k_common$secondaryArchSuffix = $portVersion
lib:libt4k_common$secondaryArchSuffix = 0.0.0 compat >= 0
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libfreetype$secondaryArchSuffix
lib:libgl$secondaryArchSuffix
lib:libglu$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libpng16$secondaryArchSuffix
lib:libSDL_1.2$secondaryArchSuffix
lib:libSDL_image_1.2$secondaryArchSuffix
lib:libSDL_mixer_1.2$secondaryArchSuffix
lib:libSDL_net_1.2$secondaryArchSuffix
lib:libSDL_pango$secondaryArchSuffix
lib:libSDL_ttf_2.0$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
t4k_common${secondaryArchSuffix}_devel = $portVersion
devel:libt4k_common$secondaryArchSuffix = 0.0.0 compat >= 0
"
REQUIRES_devel="
t4k_common$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libfreetype$secondaryArchSuffix
devel:libgl$secondaryArchSuffix
devel:libglu$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
devel:libpng16$secondaryArchSuffix
devel:libSDL_1.2$secondaryArchSuffix
devel:libSDL_image_1.2$secondaryArchSuffix
devel:libSDL_mixer_1.2$secondaryArchSuffix
devel:libSDL_net_1.2$secondaryArchSuffix
devel:libSDL_pango$secondaryArchSuffix
devel:libSDL_ttf_2.0$secondaryArchSuffix
devel:libxml2$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:gcc$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
libtoolize -fci
aclocal -I m4
automake --add-missing --force-missing
autoconf
runConfigure ./configure --without-rsvg \
#--without-sdlpango #sdl_pango doesn't work on gcc2
#build can be done by passing --without-sdl_pango
#and without the lib and devel for sdl_pango
make $jobArgs
}
INSTALL()
{
make install
# remove libtool library files
rm $libDir/*.la
prepareInstalledDevelLib \
libt4k_common
fixPkgconfig
# devel package
packageEntries devel \
$developDir
}