SUMMARY="Tux4Kids' math tutor for kids" DESCRIPTION="TuxMath is an educational math tutor for kids starring Tux, \ the Linux penguin. This educational game comes with two different games for \ practicing math, and having a great time doing it." HOMEPAGE="https://sourceforge.net/projects/tuxmath/" COPYRIGHT="2000-2009 Sam Hart" LICENSE="GNU GPL v2" REVISION="2" SOURCE_URI="https://sourceforge.net/projects/tuxmath/files/tuxmath-source/TuxMath%202.0.1%20-%20Source/tuxmath_w_fonts-2.0.1.tar.gz" CHECKSUM_SHA256="6d26c08672edf5cce0ef2f685555867a7016c8a186282518276378b6c58774f4" SOURCE_DIR="tuxmath_w_fonts-$portVersion" PATCHES="tuxmath-$portVersion.patchset" ADDITIONAL_FILES="tuxmath.rdef" ARCHITECTURES="!x86_gcc2 x86 x86_64" SECONDARY_ARCHITECTURES="x86" PROVIDES=" tuxmath$secondaryArchSuffix cmd:generate_lesson$secondaryArchSuffix cmd:tuxmath$secondaryArchSuffix cmd:tuxmathadmin$secondaryArchSuffix cmd:tuxmathserver$secondaryArchSuffix cmd:tuxmathtestclient$secondaryArchSuffix " REQUIRES=" haiku$secondaryArchSuffix lib:libiconv$secondaryArchSuffix lib:libintl$secondaryArchSuffix lib:libsdl$secondaryArchSuffix lib:libsdl_image$secondaryArchSuffix lib:libsdl_mixer$secondaryArchSuffix lib:libsdl_net_1.2$secondaryArchSuffix lib:libt4k_common$secondaryArchSuffix lib:libxml2$secondaryArchSuffix " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:libiconv$secondaryArchSuffix devel:libintl$secondaryArchSuffix devel:libsdl$secondaryArchSuffix devel:libsdl_image$secondaryArchSuffix devel:libsdl_mixer$secondaryArchSuffix devel:libsdl_net_1.2$secondaryArchSuffix devel:libt4k_common$secondaryArchSuffix devel:libxml2$secondaryArchSuffix " BUILD_PREREQUIRES=" cmd:aclocal cmd:autoconf cmd:awk cmd:bison cmd:find cmd:gcc$secondaryArchSuffix cmd:ld$secondaryArchSuffix cmd:make cmd:pkg_config$secondaryArchSuffix " BUILD() { autoreconf -vfi LDFLAGS="-lintl -lnetwork" runConfigure ./configure --without-rsvg echo "#define ICONV_CONST const" >> config.h make $jobArgs } INSTALL() { mkdir -p $appsDir make install local MAJOR="`echo "$portVersion" | cut -d. -f1`" local MIDDLE="`echo "$portVersion" | cut -d. -f2`" local MINOR="`echo "$portVersion" | cut -d. -f3`" sed \ -e "s|@MAJOR@|$MAJOR|" \ -e "s|@MIDDLE@|$MIDDLE|" \ -e "s|@MINOR@|$MINOR|" \ $portDir/additional-files/tuxmath.rdef > tuxmath.rdef addResourcesToBinaries tuxmath.rdef \ $binDir/tuxmath ln -s $binDir/tuxmath $appsDir/TuxMath addAppDeskbarSymlink $binDir/tuxmath TuxMath }