20963ee72d
Incorporated Dennis Pinckard's fix for a Mac OS/X port bug. Added desktop file. Clean up code to modern C, apply cppcheck. Fix code typo reported as Debian bug #593434 - Don't silence warnings - Add HACKING to DOCS - Remove PORTSCOUT - Break lines around 80 characters - Remove Desktop entry file, use supplied desktop files
39 lines
1.1 KiB
Makefile
39 lines
1.1 KiB
Makefile
# Created by: Andrey Zakhvatov
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= empire
|
|
PORTVERSION= 1.12
|
|
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 HACKING 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} ${WRKSRC}/${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>
|