aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authornemysis <nemysis@FreeBSD.org>2013-12-07 07:16:46 +0800
committernemysis <nemysis@FreeBSD.org>2013-12-07 07:16:46 +0800
commit0a9443d373515ce525935d6c60f78336560a2f2a (patch)
tree705c374a6197cfd9d96004f1239f4765dcebe86d /games
parent699acc200abde773a1d44531a1adddf28c17093c (diff)
downloadfreebsd-ports-gnome-0a9443d373515ce525935d6c60f78336560a2f2a.tar.gz
freebsd-ports-gnome-0a9443d373515ce525935d6c60f78336560a2f2a.tar.zst
freebsd-ports-gnome-0a9443d373515ce525935d6c60f78336560a2f2a.zip
- Bump PORTREVISION
- Support STAGEDIR - Add files/empire.desktop Approved by: pawel / wg (mentors, implicit)
Diffstat (limited to 'games')
-rw-r--r--games/empire/Makefile27
-rw-r--r--games/empire/files/empire.desktop10
2 files changed, 22 insertions, 15 deletions
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 <bsd.port.options.mk>
+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
-
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
-.endif
+ ${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/
+
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
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