diff --git a/games/tecnoballz/Makefile b/games/tecnoballz/Makefile index 1bbbac96ee29..5b50b7375231 100644 --- a/games/tecnoballz/Makefile +++ b/games/tecnoballz/Makefile @@ -1,47 +1,46 @@ PORTNAME= tecnoballz PORTVERSION= 0.93.1 PORTREVISION= 3 CATEGORIES= games MASTER_SITES= http://linux.tlk.fr/games/TecnoballZ/download/ \ https://mirror.amdmi3.ru/distfiles/ MAINTAINER= amdmi3@FreeBSD.org COMMENT= Brick breaker (Arkanoid-like game) WWW= https://linux.tlk.fr/games/TecnoballZ/ LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libmikmod.so:audio/libmikmod \ libvorbisfile.so:audio/libvorbis \ libogg.so:audio/libogg \ libsmpeg.so:multimedia/smpeg \ libtinyxml.so:textproc/tinyxml USES= autoreconf compiler:c++11-lang gmake sdl tar:tgz USE_SDL= sdl mixer image GNU_CONFIGURE= yes GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share PORTDATA= * DESKTOP_ENTRIES="TecnoballZ" \ "A brick breaker (Arkanoid-like game)" \ "" \ "tecnoballz" \ "Game;ArcadeGame;" \ false post-patch: - @${REINPLACE_CMD} -e '/CXXFLAGS=[^$$]*$$/ s|^|#|' ${WRKSRC}/configure.ac @${REINPLACE_CMD} -e 's|$$(prefix)/games|$$(prefix)/bin|; \ /chmod/ d; /chown/ d' ${WRKSRC}/src/Makefile.am .for f in tecnoballz.cc tiles_background.cc sprite_ship.cc controller_magnetic_eyes.cc @${REINPLACE_CMD} -e '/rand/ s|(Sint32)|(intptr_t)|' ${WRKSRC}/src/${f} .endfor post-install: ${MV} ${STAGEDIR}/var/games/tecnoballz/tecnoballz.hi \ ${STAGEDIR}/var/games/tecnoballz/tecnoballz.hi.sample .include diff --git a/games/tecnoballz/files/patch-configure.ac b/games/tecnoballz/files/patch-configure.ac index 0fd065f42e3d..7877247f7fcc 100644 --- a/games/tecnoballz/files/patch-configure.ac +++ b/games/tecnoballz/files/patch-configure.ac @@ -1,20 +1,32 @@ ---- configure.ac.orig 2014-09-30 14:20:26.000000000 +0400 -+++ configure.ac 2014-12-04 03:31:46.000000000 +0300 -@@ -40,6 +40,8 @@ +--- configure.ac.orig 2014-09-30 10:20:26 UTC ++++ configure.ac +@@ -40,6 +40,8 @@ AC_SUBST(MIKMOD_LIBS) AC_SUBST(MIKMOD_FLAGS) AC_SUBST(MIKMOD_LIBS) +AC_LANG_PUSH([C++]) + AC_CHECK_LIB([tinyxml], [main], [ TINYXML_LIBS="-ltinyxml" ],[ -@@ -47,6 +49,8 @@ +@@ -47,6 +49,8 @@ AC_SUBST(TINYXML_LIBS) ]) AC_SUBST(TINYXML_LIBS) +AC_LANG_POP([C++]) + # Checks for header files. AC_CHECK_HEADERS([fcntl.h stddef.h stdlib.h string.h sys/time.h unistd.h]) +@@ -63,9 +67,9 @@ if test "x${enable_devel}" = "xyes"; then + + if test "x${enable_devel}" = "xyes"; then + AC_DEFINE(UNDER_DEVELOPMENT, 1, Define to enable development version) +- CXXFLAGS="-Werror -O2 -Wall -pedantic -Wextra -std=gnu++98 -g" ++# CXXFLAGS="-Werror -O2 -Wall -pedantic -Wextra -std=gnu++98 -g" + else +- CXXFLAGS="-O2 -Werror -Wall -pedantic -Wextra -std=gnu++98" ++# CXXFLAGS="-O2 -Werror -Wall -pedantic -Wextra -std=gnu++98" + fi + + AC_OUTPUT( diff --git a/games/tecnoballz/files/patch-include_display__text__bitmap.h b/games/tecnoballz/files/patch-include_display__text__bitmap.h new file mode 100644 index 000000000000..31952bc4d621 --- /dev/null +++ b/games/tecnoballz/files/patch-include_display__text__bitmap.h @@ -0,0 +1,10 @@ +--- include/display_text_bitmap.h.orig 2026-06-25 07:43:41 UTC ++++ include/display_text_bitmap.h +@@ -38,7 +38,6 @@ class display_text_bitmap:public virtual tecnoballz (p + class display_text_bitmap:public virtual tecnoballz + { + protected: +- static const Uint32 CHAR_WIDTH = 8; + static char ascii2code[128]; + Sint32 off_desti1; // modulo destination affichage ecran + Sint32 off_source; // modulo source page graphique diff --git a/games/tecnoballz/files/patch-src_display__text__bitmap.cc b/games/tecnoballz/files/patch-src_display__text__bitmap.cc new file mode 100644 index 000000000000..90af0915de2e --- /dev/null +++ b/games/tecnoballz/files/patch-src_display__text__bitmap.cc @@ -0,0 +1,11 @@ +--- src/display_text_bitmap.cc.orig 2026-06-25 07:44:17 UTC ++++ src/display_text_bitmap.cc +@@ -108,7 +108,7 @@ display_text_bitmap::load_bitmap_fonts (Uint32 resourc + off_desti1 = game_screen->get_row_size (); //modulo destination + off_source = bitmap_fonts->get_row_size (); //modulo source + +- char_width = CHAR_WIDTH * resolution; ++ char_width = 8 * resolution; + char_height = bitmap_fonts->get_height (); + + rect_fonts.y = 0;