1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00
freebsd-ports/games/tornado/Makefile
Martin Wilke 7464c85dd5 - Update MASTER_SITES and WWW: line
- Support CC/CFLAGS properly
- Support ncurses USES macro
- Stage support

PR:		185341
Submitted by:	Ports Fury
2014-01-25 16:58:46 +00:00

61 lines
1.6 KiB
Makefile

# Created by: minter@lunenburg.org
# $FreeBSD$
PORTNAME= tornado
PORTVERSION= 1.4
PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= https://kiza.eu/media/software/tornado/
MAINTAINER= ports@FreeBSD.org
COMMENT= Ccurses-based game of weather destruction
LICENSE= GPLv2 # (or later)
USES= gettext gmake ncurses
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lintl
post-patch:
.for i in Makefile Makefile.inc
@${REINPLACE_CMD} -e \
'/^CC/s| =| ?=| ; \
/^MAKE/s| =| ?=| ; \
/^LDFLAGS/s| =| +=| ; \
/^PREFIX/s| =| ?=| ; \
/^LOCALEPATH/s|/usr/local|$$(PREFIX)| ; \
/^CFLAGS/s| =| +=| ; \
s|-O2||' ${WRKSRC}/${i}
.endfor
@${REINPLACE_CMD} -e \
's|/usr/local|PREFIX|' ${WRKSRC}/doc/man/tornado.6.in
.for i in de fr it nl no ru
@${REINPLACE_CMD} -e \
's|/usr/local|PREFIX|' ${WRKSRC}/doc/man/${i}/tornado.6.${i}.in
.endfor
post-build:
@${LN} -sf tornado.scores ${WRKSRC}/tornado.scores.init
do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} tornado \
${STAGEDIR}${PREFIX}/bin)
(cd ${WRKSRC}/doc/man && ${INSTALL_MAN} tornado.6 \
${STAGEDIR}${MAN6PREFIX}/man/man6)
.for i in de fr it nl no ru
@${MKDIR} ${STAGEDIR}${MAN6PREFIX}/man/${i}/man6
(cd ${WRKSRC}/doc/man/${i} && ${INSTALL_MAN} tornado.6 \
${STAGEDIR}${MAN6PREFIX}/man/${i}/man6)
.endfor
.for i in de es fr it nl no pt ru
@${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/${i}/LC_MESSAGES
(cd ${WRKSRC}/po && ${INSTALL_DATA} ${i}.mo \
${STAGEDIR}${PREFIX}/share/locale/${i}/LC_MESSAGES/tornado.mo)
.endfor
@${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKSRC} && ${INSTALL_DATA} tornado.scores.init \
${STAGEDIR}${DATADIR})
.include <bsd.port.mk>