aboutsummaryrefslogtreecommitdiff
path: root/games/icebreaker/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/icebreaker/Makefile')
-rw-r--r--games/icebreaker/Makefile25
1 files changed, 3 insertions, 22 deletions
diff --git a/games/icebreaker/Makefile b/games/icebreaker/Makefile
index 6feef77cd78c..af26748ee66b 100644
--- a/games/icebreaker/Makefile
+++ b/games/icebreaker/Makefile
@@ -14,7 +14,8 @@ EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Game similar to Jezzball or Barrack
-LICENSE= GPLv2
+LICENSE= GPLv2 # or later
+LICENSE_FILE= ${WRKSRC}/LICENSE
USES= gmake tar:tgz
USE_SDL= mixer sdl
@@ -24,32 +25,12 @@ PORTDOCS= ChangeLog README README.SDL README.ifyoumakechanges \
OPTIONS_DEFINE= DOCS
-SUB_FILES= pkg-message
-
-post-patch:
- @${REINPLACE_CMD} -e \
- 's|CC=gcc|CC?=gcc|; \
- s|sdl-config|$(SDL_CONFIG)|; \
- s|prefix=/usr/local|prefix=${STAGEDIR}${PREFIX}|; \
- s|datadir=$$(prefix)/share|datadir=${STAGEDIR}${PREFIX}/share|; \
- s|mandir=$$(prefix)/share/man|mandir=${STAGEDIR}${PREFIX}/man|; \
- s|highscoredir=/var/local/lib/games|highscoredir=/var/games|; \
- s|CFLAGS=|CFLAGS+=|; \
- s|OPTIMIZE=-O3|OPTIMIZE=|; \
- s|$$(CC) $$(CFLAGS)|$$(CC) $$(LDFLAGS) $$(CFLAGS)|; \
- s|install -s -g games|install -g games|; \
- s|install -s -m 755|install -m 755|; \
- s|chown -f games:games|chown -f root:games|; \
- s|$$(SRC:.c=.d)|$$(SRC:.c)|' \
- ${WRKSRC}/Makefile
-
post-install:
- ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>