aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorArmin Pirkovitsch <sperber@FreeBSD.org>2012-07-19 17:33:43 +0000
committerArmin Pirkovitsch <sperber@FreeBSD.org>2012-07-19 17:33:43 +0000
commit48c78dd0a88e2766c17732f320ef462106ae7269 (patch)
tree07287d339eb4c70b312a7a798f79d22d360a1f91 /games
parenta51ff924211c379541af5be32bf3cc194d95ab16 (diff)
downloadports-48c78dd0a88e2766c17732f320ef462106ae7269.tar.gz
ports-48c78dd0a88e2766c17732f320ef462106ae7269.zip
Notes
Diffstat (limited to 'games')
-rw-r--r--games/tuxmath/Makefile5
-rw-r--r--games/tuxmath/files/patch-t4k_loaders.c18
2 files changed, 20 insertions, 3 deletions
diff --git a/games/tuxmath/Makefile b/games/tuxmath/Makefile
index 099de8c16edc..5b010b007e23 100644
--- a/games/tuxmath/Makefile
+++ b/games/tuxmath/Makefile
@@ -20,8 +20,6 @@ COMMENT= Educational arcade game starring Tux
LICENSE= GPLv3 # (or later)
-BROKEN= does not compile
-
OPTIONS_DEFINE= NLS SVG DOCS
OPTIONS_DEFAULT= SVG
@@ -39,7 +37,7 @@ CONFIGURE_ENV= T4K_COMMON_CFLAGS="-I${T4K_WRKSRC}/src" \
MAKE_JOBS_SAFE= yes
CPPFLAGS+= $$(pkg-config --cflags SDL_Pango) -I${LOCALBASE}/include \
- -DHAVE_ALPHASORT -DHAVE_SCANDIR -DHAVE_FSYNC -DICONV_CONST=""
+ -DHAVE_ALPHASORT -DHAVE_SCANDIR -DHAVE_FSYNC -DICONV_CONST=""
LDFLAGS+= $$(pkg-config --libs SDL_Pango) -L${LOCALBASE}/lib
T4K_NAME= t4k_common
@@ -50,6 +48,7 @@ T4K_WRKSRC= ${WRKDIR}/${T4K_NAME}-${T4K_VERSION}
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
+USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
diff --git a/games/tuxmath/files/patch-t4k_loaders.c b/games/tuxmath/files/patch-t4k_loaders.c
new file mode 100644
index 000000000000..6dd1eb12f979
--- /dev/null
+++ b/games/tuxmath/files/patch-t4k_loaders.c
@@ -0,0 +1,18 @@
+--- ../t4k_common/src/t4k_loaders.c.orig 2011-04-08 11:46:07.000000000 +0900
++++ ../t4k_common/src/t4k_loaders.c 2012-06-17 18:57:09.000000000 +0900
+@@ -1028,12 +1028,9 @@
+ {
+ png_init_io(png_ptr, fi);
+
+- info_ptr->width = surf->w;
+- info_ptr->height = surf->h;
+- info_ptr->bit_depth = 8;
+- info_ptr->color_type = PNG_COLOR_TYPE_RGB_ALPHA;
+- info_ptr->interlace_type = 1;
+- info_ptr->valid = 0; /* will be updated by various png_set_FOO() functions */
++ png_set_IHDR(png_ptr, info_ptr, surf->w, surf->h, 8,
++ PNG_COLOR_TYPE_RGB_ALPHA, 1,
++ PNG_COMPRESSION_TYPE_BASE, PNG_FILTER_TYPE_BASE);
+
+ png_set_sRGB_gAMA_and_cHRM(png_ptr, info_ptr,
+ PNG_sRGB_INTENT_PERCEPTUAL);