1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00
freebsd-ports/games/empire/Makefile
Rusmir Dusko 79f33ca70f - Disable all warnings with -w
- Set PORTSCOUT
- Break lines around 80 characters
2014-01-15 17:19:34 +00:00

46 lines
1.2 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
CFLAGS+= -w
PORTDOCS= AUTHORS BUGS NEWS README
OPTIONS_DEFINE= DOCS
# Wrong versioning upstream
PORTSCOUT= skipv:1.11
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>