Index: games/tome/Makefile =================================================================== RCS file: /home/pcvs/ports/games/tome/Makefile,v retrieving revision 1.21 diff -u -r1.21 Makefile --- games/tome/Makefile 25 Jan 2010 22:49:44 -0000 1.21 +++ games/tome/Makefile 13 Jul 2011 22:33:56 -0000 @@ -7,7 +7,7 @@ PORTNAME= tome PORTVERSION= 2.3.5 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= http://t-o-m-e.net/dl/src/ DISTNAME= tome-235-src @@ -15,7 +15,7 @@ MAINTAINER= ports@FreeBSD.org COMMENT= Roguelike dungeon exploration game based on JRR Tolkien's works -SUB_FILES= pkg-deinstall +SUB_FILES= pkg-deinstall tome.desktop ALL_TARGET= # empty MAKEFILE= makefile.bsd @@ -24,10 +24,6 @@ WRKSRC= ${WRKDIR}/${DISTNAME}/src OPTIONS= X11 "Turn on support for X" on -DESKTOP_ENTRIES= "ToME" "Roguelike game based on JRR Tolkien's work" \ - "${DATADIR}/xtra/graf/tome-128.png" \ - "tome -v -g" "Application;Game;RolePlaying;" \ - false .include @@ -43,4 +39,8 @@ ${REINPLACE_CMD} -e 's@-I$$(LOCALBASE)/include@@g' ${WRKSRC}/${MAKEFILE} .endif +post-install: + ${MKDIR} ${DESKTOPDIR} + ${INSTALL_DATA} ${WRKDIR}/tome.desktop ${DESKTOPDIR} + .include Index: games/tome/pkg-plist =================================================================== RCS file: /home/pcvs/ports/games/tome/pkg-plist,v retrieving revision 1.11 diff -u -r1.11 pkg-plist --- games/tome/pkg-plist 5 Jul 2008 02:49:58 -0000 1.11 +++ games/tome/pkg-plist 13 Jul 2011 22:33:56 -0000 @@ -1,6 +1,7 @@ bin/tome @exec chown root:games %F @exec chmod 2755 %F +share/applications/tome.desktop %%DATADIR%%/apex/.cvsignore %%DATADIR%%/apex/delete.me %%DATADIR%%/apex/scores.raw Index: games/tome/files/tome.desktop.in =================================================================== RCS file: games/tome/files/tome.desktop.in diff -N games/tome/files/tome.desktop.in --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ games/tome/files/tome.desktop.in 13 Jul 2011 22:33:56 -0000 @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Version=0.9.4 +Encoding=UTF-8 +Name=ToME +Comment=Roguelike game based on JRR Tolkien's work +Icon=%%DATADIR%%/xtra/graf/tome-128.png +Exec=tome -v -g +Categories=Application;Game;RolePlaying; +StartupNotify=false