Index: head/games/armagetronad/Makefile =================================================================== --- head/games/armagetronad/Makefile (revision 507236) +++ head/games/armagetronad/Makefile (revision 507237) @@ -1,34 +1,47 @@ # $FreeBSD$ PORTNAME= armagetronad DISTVERSION= 0.2.8.3.4 DISTVERSIONSUFFIX= .src +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/stable/${DISTVERSION}/ MAINTAINER= yuri@FreeBSD.org COMMENT= Tron clone in 3D LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= bash:shells/bash LIB_DEPENDS= libpng16.so:graphics/png -USES= autoreconf gl gmake gnome jpeg sdl +USES= autoreconf desktop-file-utils gl gmake gnome jpeg sdl GNU_CONFIGURE= yes USE_SDL= image mixer sdl USE_GL= gl glu USE_GNOME= libxml2 WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION} CONFIGURE_ARGS= --disable-etc --disable-games --enable-music +INSTALLS_ICONS= yes + BINARY_ALIAS= sdl11-config=sdl-config OPTIONS_DEFINE= DOCS PORTDOCS= * + +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 Index: head/games/armagetronad/files/patch-Makefile.am =================================================================== --- head/games/armagetronad/files/patch-Makefile.am (nonexistent) +++ head/games/armagetronad/files/patch-Makefile.am (revision 507237) @@ -0,0 +1,20 @@ +--- Makefile.am.orig 2019-07-23 16:38:02 UTC ++++ Makefile.am +@@ -23,7 +23,7 @@ SUBDIRS = src resource batch config desktop + + # 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) + else + masterInstallTasks=echo 'No tasks for the master server' +@@ -107,7 +107,7 @@ endif + 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) + endif + + # delegate to special tasks Property changes on: head/games/armagetronad/files/patch-Makefile.am ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/armagetronad/files/patch-desktop_armagetronad.desktop.in =================================================================== --- head/games/armagetronad/files/patch-desktop_armagetronad.desktop.in (nonexistent) +++ head/games/armagetronad/files/patch-desktop_armagetronad.desktop.in (revision 507237) @@ -0,0 +1,11 @@ +--- 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; Property changes on: head/games/armagetronad/files/patch-desktop_armagetronad.desktop.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/armagetronad/pkg-plist =================================================================== --- head/games/armagetronad/pkg-plist (revision 507236) +++ head/games/armagetronad/pkg-plist (revision 507237) @@ -1,76 +1,76 @@ bin/armagetronad %%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%%/master.srv %%ETCDIR%%/rc.config %%ETCDIR%%/settings.cfg %%ETCDIR%%/settings_authentication.cfg %%ETCDIR%%/settings_dedicated.cfg %%ETCDIR%%/settings_visual.cfg %%ETCDIR%%/subcultures.srv -%%DATADIR%%/desktop/armagetronad.desktop -%%DATADIR%%/desktop/icons/large/armagetronad.png -%%DATADIR%%/desktop/icons/medium/armagetronad.png -%%DATADIR%%/desktop/icons/small/armagetronad.png +share/applications/armagetronad.desktop %%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/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