1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/games/alienwave/Makefile
Danilo Egea Gondolfo 2c25b65dcd - Add stage support
- Use options helpers
2013-10-29 20:02:18 +00:00

49 lines
1.1 KiB
Makefile

# Created by: Travis Poppe <tlp@liquidx.org>
# $FreeBSD$
PORTNAME= alienwave
PORTVERSION= 0.4.0
CATEGORIES= games
MASTER_SITES= http://www.alessandropira.org/alienwave/
MAINTAINER= ports@FreeBSD.org
COMMENT= Shoot'em up game written using ncurses
LICENSE= GPLv2
OPTIONS_DEFINE= RANDOM_LEVELS DOCS
OPTIONS_DEFAULT=LEVEL_MEDIUM
OPTIONS_SINGLE= LEVEL
OPTIONS_SINGLE_LEVEL= LEVEL_EASY LEVEL_MEDIUM LEVEL_HARD
RANDOM_LEVELS_DESC= Enable random waves
LEVEL_EASY_DESC= Killing Xzarna: easy
LEVEL_MEDIUM_DESC= Killing Xzarna: medium
LEVEL_HARD_DESC= Killing Xzarna: hard
WRKSRC= ${WRKDIR}/${PORTNAME}
ALL_TARGET= ${PORTNAME}
PORTDOCS= README STORY TO_DO
PLIST_FILES= bin/alienwave
LEVEL_EASY_CFLAGS= -DLEV_EASY
LEVEL_HARD_CFLAGS= -DLEV_HARD
RANDOM_LEVELS_CFLAGS= -DRANDOM_LEVELS
post-patch:
@${REINPLACE_CMD} -e \
'/^CC /s|^|#| ; \
/^CFLAGS /s|^|#| ; \
s|-lncurses|-lcurses| ; \
/strip /s|^|#|' ${WRKSRC}/Makefile
do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} alienwave ${STAGEDIR}${PREFIX}/bin)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
.endfor
.include <bsd.port.mk>