1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

- Bump PORTREVISION

- Support STAGEDIR
- Add files/empire.desktop

Approved by:	pawel / wg (mentors, implicit)
This commit is contained in:
Rusmir Dusko 2013-12-06 23:16:46 +00:00
parent 0d585ac82e
commit 6c3e67a3de
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=335788
2 changed files with 21 additions and 14 deletions

View File

@ -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
${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 <bsd.port.mk>

View File

@ -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