mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
6c3e67a3de
- Support STAGEDIR - Add files/empire.desktop Approved by: pawel / wg (mentors, implicit)
40 lines
1.1 KiB
Makefile
40 lines
1.1 KiB
Makefile
# Created by: Andrey Zakhvatov
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= empire
|
|
PORTVERSION= 1.10
|
|
PORTREVISION= 1
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://www.catb.org/~esr/vms-empire/
|
|
DISTNAME= vms-${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= nemysis@FreeBSD.org
|
|
COMMENT= Simulation of a full-scale war between two emperors
|
|
|
|
LICENSE= GPLv2
|
|
|
|
PORTDOCS= AUTHORS BUGS NEWS README
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
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/ ; \
|
|
s/-lncurses/-lcurses/' ${WRKSRC}/Makefile
|
|
@${REINPLACE_CMD} -e 's/static void/void/g' ${WRKSRC}/game.c
|
|
|
|
do-install:
|
|
${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>
|