diff --git a/games/armagetronad/Makefile b/games/armagetronad/Makefile index efed77813d73..cd250a823c9f 100644 --- a/games/armagetronad/Makefile +++ b/games/armagetronad/Makefile @@ -1,48 +1,32 @@ PORTNAME= armagetronad -DISTVERSION= 0.2.8.3.5 -DISTVERSIONSUFFIX= .src -PORTREVISION= 4 +DISTVERSION= 0.2.9.2.5 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/stable/${DISTVERSION}/ MAINTAINER= yuri@FreeBSD.org COMMENT= Tron clone in 3D WWW= http://www.armagetronad.org/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN= Fails to build with libxml2 2.14, error: indirection requires pointer operand ('std::nullptr_t' invalid) - BUILD_DEPENDS= bash:shells/bash LIB_DEPENDS= libpng.so:graphics/png -USES= autoreconf desktop-file-utils gl gmake gnome jpeg sdl +USES= autoreconf desktop-file-utils gl gmake gnome pkgconfig sdl \ + tar:tbz USE_CXXSTD= c++14 USE_GL= gl glu USE_GNOME= libxml2 USE_SDL= image mixer sdl GNU_CONFIGURE= yes -CONFIGURE_ARGS= --disable-etc --disable-games --enable-music -CONFIGURE_ENV= CXXFLAGS="${CXXFLAGS}" +CONFIGURE_ARGS= --disable-etc --disable-games --disable-uninstall --enable-music BINARY_ALIAS= sdl11-config=sdl-config -WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION} - PORTDOCS= * OPTIONS_DEFINE= DOCS -post-install: - @${MV} ${STAGEDIR}${DATADIR}/desktop/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}/${PORTNAME}.desktop -.for SZ in 16 32 48 - @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${SZ}x${SZ}/apps -.endfor - @${MV} ${STAGEDIR}${DATADIR}/desktop/icons/small/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps/${PORTNAME}.png - @${MV} ${STAGEDIR}${DATADIR}/desktop/icons/medium/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps/${PORTNAME}.png - @${MV} ${STAGEDIR}${DATADIR}/desktop/icons/large/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png - @${RM} -r ${STAGEDIR}${DATADIR}/desktop - .include diff --git a/games/armagetronad/distinfo b/games/armagetronad/distinfo index 199035aba976..8a00678f9bc7 100644 --- a/games/armagetronad/distinfo +++ b/games/armagetronad/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1582191189 -SHA256 (armagetronad-0.2.8.3.5.src.tar.gz) = b4c993558c08806c40e3c7095437451ffe9bc3d3f8c0310e58c50a81153446fc -SIZE (armagetronad-0.2.8.3.5.src.tar.gz) = 2096771 +TIMESTAMP = 1771818181 +SHA256 (armagetronad-0.2.9.2.5.tbz) = 941d9f194340b84b1dd36d0f58c089660a15814ce37ca3813b90105dbedc5619 +SIZE (armagetronad-0.2.9.2.5.tbz) = 1867467 diff --git a/games/armagetronad/files/patch-Makefile.am b/games/armagetronad/files/patch-Makefile.am index 2aa51e4446ad..e23b1de406dd 100644 --- a/games/armagetronad/files/patch-Makefile.am +++ b/games/armagetronad/files/patch-Makefile.am @@ -1,20 +1,20 @@ ---- Makefile.am.orig 2019-07-23 16:38:02 UTC +--- Makefile.am.orig 2025-05-16 19:09:00 UTC +++ Makefile.am -@@ -23,7 +23,7 @@ SUBDIRS = src resource batch config desktop +@@ -23,7 +23,7 @@ if BUILDMASTER # special tasks to do if we're building the master server if BUILDMASTER --masterInstallTasks= cd $(DESTDIR)$(bindir); mv armagetronad_main_master$(EXEEXT) @prognamebase@-master$(executable_suffix) -+masterInstallTasks= cd $(DESTDIR)$(bindir); mv -f armagetronad_main_master$(EXEEXT) @prognamebase@-master$(executable_suffix) - masterUninstallTasks=rm -f $(DESTDIR)$(bindir)/@prognamebase@-master$(executable_suffix) +-masterInstallTasks= cd "$(DESTDIR)$(bindir)"; mv armagetronad_main_master$(EXEEXT) @prognamebase@-master$(executable_suffix) ++masterInstallTasks= cd "$(DESTDIR)$(bindir)"; mv -f armagetronad_main_master$(EXEEXT) @prognamebase@-master$(executable_suffix) + masterUninstallTasks=rm -f "$(DESTDIR)$(bindir)"/@prognamebase@-master$(executable_suffix) else masterInstallTasks=echo 'No tasks for the master server' -@@ -107,7 +107,7 @@ endif +@@ -106,7 +106,7 @@ if BUILDMAIN install-exec-hook: install-uninstall # rename executable to armagetronad-VERSION and link to armagetronad if BUILDMAIN -- cd $(DESTDIR)${bindir}; mv armagetronad_main$(EXEEXT) @progname@$(executable_suffix) -+ cd $(DESTDIR)${bindir}; mv -f armagetronad_main$(EXEEXT) @progname@$(executable_suffix) +- cd "$(DESTDIR)${bindir}"; mv armagetronad_main$(EXEEXT) @progname@$(executable_suffix) ++ cd "$(DESTDIR)${bindir}"; mv -f armagetronad_main$(EXEEXT) @progname@$(executable_suffix) endif # delegate to special tasks diff --git a/games/armagetronad/files/patch-batch_sysinstall.in b/games/armagetronad/files/patch-batch_sysinstall.in index adbca77707a3..b56b537d7ed1 100644 --- a/games/armagetronad/files/patch-batch_sysinstall.in +++ b/games/armagetronad/files/patch-batch_sysinstall.in @@ -1,11 +1,11 @@ --- batch/sysinstall.in.orig 2011-09-11 10:41:39 UTC +++ batch/sysinstall.in -@@ -205,7 +205,7 @@ if test $MODE = install; then - for script in $DESTDIR$SCRIPTDIR/* $DESTDIR$CONFIGDIR/rc.config; do - if test $script != $DESTDIR$SCRIPTDIR/sysinstall; then - sed -e ${sedcommands} < $script > $script.trans || exit 1 -- mv $script.trans $script -+ mv -f $script.trans $script - chmod 755 $script +@@ -235,7 +235,7 @@ if test $MODE = install; then + for script in "$DESTDIR$SCRIPTDIR"/* "$DESTDIR$CONFIGDIR"/rc.config; do + if test "$script" != "$DESTDIR$SCRIPTDIR"/sysinstall; then + sed -e ${sedcommands} < "$script" > "$script.trans" || exit 1 +- mv "$script.trans" "$script" ++ mv -f "$script.trans" "$script" + chmod 755 "$script" fi done diff --git a/games/armagetronad/files/patch-desktop_armagetronad.desktop.in b/games/armagetronad/files/patch-desktop_armagetronad.desktop.in deleted file mode 100644 index 6895b237c92a..000000000000 --- a/games/armagetronad/files/patch-desktop_armagetronad.desktop.in +++ /dev/null @@ -1,11 +0,0 @@ ---- desktop/armagetronad.desktop.in.orig 2019-07-23 16:43:09 UTC -+++ desktop/armagetronad.desktop.in -@@ -3,7 +3,7 @@ Type=Application - Name=@progtitle@@progtitle_server@ - Exec=@progname@ - Comment=3d light cycle game --Icon=@progname@.png -+Icon=@progname@ - Terminal=@build_dedicated@ - Path=@prefix@/bin - Categories=Game;ActionGame; diff --git a/games/armagetronad/pkg-plist b/games/armagetronad/pkg-plist index d1d12a1a270a..36a056a51e00 100644 --- a/games/armagetronad/pkg-plist +++ b/games/armagetronad/pkg-plist @@ -1,76 +1,90 @@ bin/armagetronad +bin/armagetronad-master %%ETCDIR%%/aiplayers.cfg %%ETCDIR%%/default.cfg %%ETCDIR%%/examples/breakfast_in_hell.cfg %%ETCDIR%%/examples/cvs_test/fortress_complete.cfg %%ETCDIR%%/examples/cvs_test/fortress_physics.cfg %%ETCDIR%%/examples/cvs_test/fortress_politics.cfg %%ETCDIR%%/examples/cvs_test/fortress_scoring.cfg %%ETCDIR%%/examples/cvs_test/sumo_complete.cfg %%ETCDIR%%/examples/death_zone.cfg %%ETCDIR%%/examples/fortress_soccer.cfg %%ETCDIR%%/examples/single_use_turbo.cfg %%ETCDIR%%/examples/teamsumo.cfg +%%ETCDIR%%/keys_cursor.cfg +%%ETCDIR%%/keys_cursor_single.cfg +%%ETCDIR%%/keys_twohand.cfg +%%ETCDIR%%/keys_wasd.cfg +%%ETCDIR%%/keys_x.cfg +%%ETCDIR%%/keys_zqsd.cfg %%ETCDIR%%/master.srv %%ETCDIR%%/rc.config %%ETCDIR%%/settings.cfg %%ETCDIR%%/settings_authentication.cfg %%ETCDIR%%/settings_dedicated.cfg %%ETCDIR%%/settings_visual.cfg %%ETCDIR%%/subcultures.srv -share/applications/armagetronad.desktop +share/appdata/org.armagetronad.armagetronad.appdata.xml +share/applications/org.armagetronad.armagetronad.desktop +%%DATADIR%%/desktop/icons/128x128/armagetronad.png +%%DATADIR%%/desktop/icons/16x16/armagetronad.png +%%DATADIR%%/desktop/icons/32x32/armagetronad.png +%%DATADIR%%/desktop/icons/48x48/armagetronad.png +%%DATADIR%%/desktop/icons/64x64/armagetronad.png %%DATADIR%%/language/american.txt %%DATADIR%%/language/british.txt %%DATADIR%%/language/deutsch.txt %%DATADIR%%/language/english_base.txt %%DATADIR%%/language/english_base_notranslate.txt %%DATADIR%%/language/french.txt %%DATADIR%%/language/languages.txt -%%DATADIR%%/language/languages.txt.in %%DATADIR%%/language/polish.txt %%DATADIR%%/language/polish_transliterated.txt %%DATADIR%%/language/spanish.txt -%%DATADIR%%/language/update.py %%DATADIR%%/models/cycle_body.mod %%DATADIR%%/models/cycle_front.mod %%DATADIR%%/models/cycle_rear.mod %%DATADIR%%/resource/included/AATeam/map-0.2.8.0.dtd %%DATADIR%%/resource/included/AATeam/map-0.2.8.0_rc4.dtd %%DATADIR%%/resource/included/Anonymous/README %%DATADIR%%/resource/included/Anonymous/polygon/README %%DATADIR%%/resource/included/Anonymous/polygon/regular/40-gon-0.2.aamap.xml %%DATADIR%%/resource/included/Anonymous/polygon/regular/README %%DATADIR%%/resource/included/Anonymous/polygon/regular/diamond-1.0.2.aamap.xml %%DATADIR%%/resource/included/Anonymous/polygon/regular/square-1.0.1.aamap.xml %%DATADIR%%/resource/included/Your_mom/clever/inaktek-0.7.2.aamap.xml %%DATADIR%%/resource/included/Your_mom/clever/repeat-0.3.2.aamap.xml %%DATADIR%%/resource/included/Z-Man/fortress/for_old_clients-0.1.0.aamap.xml %%DATADIR%%/resource/included/Z-Man/fortress/fourfold_for_old_clients-0.1.0.aamap.xml %%DATADIR%%/resource/included/Z-Man/fortress/sumo_4x4-0.1.1.aamap.xml %%DATADIR%%/resource/included/Z-Man/fortress/sumo_8x2-0.1.0.aamap.xml %%DATADIR%%/resource/included/Z-Man/fortress/zonetest-0.1.0.aamap.xml %%DATADIR%%/resource/included/map-0.1-exp.dtd %%DATADIR%%/resource/included/map-0.1.dtd %%DATADIR%%/resource/included/map-0.2.8_beta3.dtd +%%DATADIR%%/scripts/rcd_config +%%DATADIR%%/scripts/rcd_startstop %%DATADIR%%/scripts/relocate %%DATADIR%%/scripts/sysinstall %%DATADIR%%/sound/cyclrun.wav %%DATADIR%%/sound/expl.wav -%%DATADIR%%/textures/KGN_logo.png %%DATADIR%%/textures/cycle_body.png %%DATADIR%%/textures/cycle_wheel.png %%DATADIR%%/textures/dir_wall.png %%DATADIR%%/textures/floor.png %%DATADIR%%/textures/floor_a.png %%DATADIR%%/textures/floor_b.png %%DATADIR%%/textures/font.png %%DATADIR%%/textures/font_extra.png %%DATADIR%%/textures/font_s.png %%DATADIR%%/textures/icon.png %%DATADIR%%/textures/rim_wall.png %%DATADIR%%/textures/shadow.png %%DATADIR%%/textures/sky.png %%DATADIR%%/textures/title.jpg -share/icons/hicolor/16x16/apps/armagetronad.png -share/icons/hicolor/32x32/apps/armagetronad.png -share/icons/hicolor/48x48/apps/armagetronad.png +share/icons/hicolor/128x128/apps/org.armagetronad.armagetronad.png +share/icons/hicolor/16x16/apps/org.armagetronad.armagetronad.png +share/icons/hicolor/32x32/apps/org.armagetronad.armagetronad.png +share/icons/hicolor/48x48/apps/org.armagetronad.armagetronad.png +share/icons/hicolor/64x64/apps/org.armagetronad.armagetronad.png