From 6c3e67a3deb244f9ac528230bba451d70c1ce470 Mon Sep 17 00:00:00 2001 From: Rusmir Dusko Date: Fri, 6 Dec 2013 23:16:46 +0000 Subject: [PATCH] - Bump PORTREVISION - Support STAGEDIR - Add files/empire.desktop Approved by: pawel / wg (mentors, implicit) --- games/empire/Makefile | 25 +++++++++++-------------- games/empire/files/empire.desktop | 10 ++++++++++ 2 files changed, 21 insertions(+), 14 deletions(-) create mode 100644 games/empire/files/empire.desktop diff --git a/games/empire/Makefile b/games/empire/Makefile index 47f5dfc5aec7..b19e5dc84f87 100644 --- a/games/empire/Makefile +++ b/games/empire/Makefile @@ -3,6 +3,7 @@ PORTNAME= empire PORTVERSION= 1.10 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= http://www.catb.org/~esr/vms-empire/ DISTNAME= vms-${PORTNAME}-${PORTVERSION} @@ -12,17 +13,14 @@ COMMENT= Simulation of a full-scale war between two emperors LICENSE= GPLv2 -MAN6= empire.6 - PORTDOCS= AUTHORS BUGS NEWS README -PLIST_FILES= bin/empire \ - share/pixmaps/empire.png - OPTIONS_DEFINE= DOCS -NO_STAGE= yes -.include +PLIST_FILES= bin/${PORTNAME} \ + man/man6/${PORTNAME}.6.gz \ + share/applications/${PORTNAME}.desktop \ + share/pixmaps/${PORTNAME}.png post-patch: @${REINPLACE_CMD} -e 's/^CFLAGS/#CFLAGS/ ; \ @@ -30,13 +28,12 @@ post-patch: @${REINPLACE_CMD} -e 's/static void/void/g' ${WRKSRC}/game.c do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/vms-empire ${PREFIX}/bin/${PORTNAME} - ${INSTALL_MAN} ${MAN6:S|^|${WRKSRC}/|} ${MAN6PREFIX}/man/man6 - ${INSTALL_DATA} ${WRKSRC}/empire-logo.png ${PREFIX}/share/pixmaps/${PORTNAME}.png + ${INSTALL_PROGRAM} ${WRKSRC}/vms-empire ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + ${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR} + ${INSTALL_DATA} ${WRKSRC}/empire-logo.png ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png + ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.6 ${STAGEDIR}${MAN6PREFIX}/man/man6/ -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include diff --git a/games/empire/files/empire.desktop b/games/empire/files/empire.desktop new file mode 100644 index 000000000000..3d1773ff3480 --- /dev/null +++ b/games/empire/files/empire.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Version=1.0 +Name=Empire +GenericName=Empire +Comment=Simulation of a full-scale war between two emperors +Icon=empire +Exec=empire +Categories=Game;ArcadeGame; +Terminal=true