1SUMMARY="Tux4Kids' math tutor for kids" 2DESCRIPTION="TuxMath is an educational math tutor for kids starring Tux, \ 3the Linux penguin. This educational game comes with two different games for \ 4practicing math, and having a great time doing it." 5HOMEPAGE="https://sourceforge.net/projects/tuxmath/" 6COPYRIGHT="2000-2009 Sam Hart" 7LICENSE="GNU GPL v2" 8REVISION="3" 9SOURCE_URI="https://sourceforge.net/projects/tuxmath/files/tuxmath-source/TuxMath%202.0.1%20-%20Source/tuxmath_w_fonts-2.0.1.tar.gz" 10CHECKSUM_SHA256="6d26c08672edf5cce0ef2f685555867a7016c8a186282518276378b6c58774f4" 11SOURCE_DIR="tuxmath_w_fonts-$portVersion" 12PATCHES="tuxmath-$portVersion.patchset" 13ADDITIONAL_FILES="tuxmath.rdef" 14 15ARCHITECTURES="all !x86_gcc2" 16SECONDARY_ARCHITECTURES="x86" 17 18PROVIDES=" 19 tuxmath$secondaryArchSuffix 20 cmd:generate_lesson$secondaryArchSuffix 21 cmd:tuxmath$secondaryArchSuffix 22 cmd:tuxmathadmin$secondaryArchSuffix 23 cmd:tuxmathserver$secondaryArchSuffix 24 cmd:tuxmathtestclient$secondaryArchSuffix 25 " 26REQUIRES=" 27 haiku$secondaryArchSuffix 28 lib:libiconv$secondaryArchSuffix 29 lib:libintl$secondaryArchSuffix 30 lib:libSDL_1.2$secondaryArchSuffix 31 lib:libSDL_image_1.2$secondaryArchSuffix 32 lib:libSDL_mixer_1.2$secondaryArchSuffix 33 lib:libSDL_net_1.2$secondaryArchSuffix 34 lib:libt4k_common$secondaryArchSuffix 35 lib:libxml2$secondaryArchSuffix 36 " 37 38BUILD_REQUIRES=" 39 haiku${secondaryArchSuffix}_devel 40 devel:libiconv$secondaryArchSuffix 41 devel:libintl$secondaryArchSuffix 42 devel:libSDL_1.2$secondaryArchSuffix 43 devel:libSDL_image_1.2$secondaryArchSuffix 44 devel:libSDL_mixer_1.2$secondaryArchSuffix 45 devel:libSDL_net_1.2$secondaryArchSuffix 46 devel:libt4k_common$secondaryArchSuffix 47 devel:libxml2$secondaryArchSuffix 48 " 49BUILD_PREREQUIRES=" 50 cmd:aclocal 51 cmd:autoconf 52 cmd:awk 53 cmd:bison 54 cmd:find 55 cmd:gcc$secondaryArchSuffix 56 cmd:ld$secondaryArchSuffix 57 cmd:make 58 cmd:pkg_config$secondaryArchSuffix 59 " 60 61BUILD() 62{ 63 autoreconf -vfi 64 65 LDFLAGS="-lintl -lnetwork" runConfigure ./configure --without-rsvg 66 67 echo "#define ICONV_CONST const" >> config.h 68 make $jobArgs 69} 70 71INSTALL() 72{ 73 mkdir -p $appsDir 74 75 make install 76 77 local MAJOR="`echo "$portVersion" | cut -d. -f1`" 78 local MIDDLE="`echo "$portVersion" | cut -d. -f2`" 79 local MINOR="`echo "$portVersion" | cut -d. -f3`" 80 sed \ 81 -e "s|@MAJOR@|$MAJOR|" \ 82 -e "s|@MIDDLE@|$MIDDLE|" \ 83 -e "s|@MINOR@|$MINOR|" \ 84 $portDir/additional-files/tuxmath.rdef > tuxmath.rdef 85 86 addResourcesToBinaries tuxmath.rdef \ 87 $binDir/tuxmath 88 89 ln -s $binDir/tuxmath $appsDir/TuxMath 90 91 addAppDeskbarSymlink $binDir/tuxmath TuxMath 92} 93