aboutsummaryrefslogtreecommitdiff
path: root/games/cosmosmash/Makefile
diff options
context:
space:
mode:
authorGanael LAPLANCHE <martymac@FreeBSD.org>2012-06-15 09:57:55 +0000
committerGanael LAPLANCHE <martymac@FreeBSD.org>2012-06-15 09:57:55 +0000
commit4bab0482f00b8582cd04478ac5aa5bbae55a9b7c (patch)
tree1c030d896c81f83eb509240ebc1b49f2e3900d55 /games/cosmosmash/Makefile
parente934bb942b4755e171622c3e942d622c1f20b53d (diff)
downloadports-4bab0482f00b8582cd04478ac5aa5bbae55a9b7c.tar.gz
ports-4bab0482f00b8582cd04478ac5aa5bbae55a9b7c.zip
- Switch to OptionsNg
- Swap LICENSE and *_DEPENDS to make portlint happy
Notes
Notes: svn path=/head/; revision=299329
Diffstat (limited to 'games/cosmosmash/Makefile')
-rw-r--r--games/cosmosmash/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/games/cosmosmash/Makefile b/games/cosmosmash/Makefile
index 0db91162440b..03ee6d1dca87 100644
--- a/games/cosmosmash/Makefile
+++ b/games/cosmosmash/Makefile
@@ -15,13 +15,13 @@ MASTER_SITES= http://perso.b2b2c.ca/sarrazip/dev/ \
MAINTAINER= martymac@FreeBSD.org
COMMENT= A clone of the Intellivision(TM) game Astrosmash(TM)
+LICENSE= GPLv2
+
LIB_DEPENDS= flatzebra:${PORTSDIR}/devel/flatzebra \
aa:${PORTSDIR}/graphics/aalib \
mikmod:${PORTSDIR}/audio/libmikmod \
audiofile:${PORTSDIR}/audio/libaudiofile
-LICENSE= GPLv2
-
USE_SDL= sdl image mixer
USE_XORG= x11 xau xdmcp
USE_ICONV= yes
@@ -32,12 +32,14 @@ LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} `${SDL_CONFIG} --libs`
MAN6= cosmosmash.6
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} 's|^pkgsounddir = .*|pkgsounddir = ${DATADIR}/sounds|' \
${WRKSRC}/src/Makefile.in
@${REINPLACE_CMD} 's|^docdir = .*|docdir = ${DOCSDIR}|' \
${WRKSRC}/Makefile.in
-.if defined(NOPORTDOCS)
+.if empty(PORT_OPTIONS:MDOCS)
@${REINPLACE_CMD} 's|^install-data-am: .*|install-data-am: install-man|' \
${WRKSRC}/Makefile.in
.endif