aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRusmir Dusko <nemysis@FreeBSD.org>2014-03-11 02:07:28 +0000
committerRusmir Dusko <nemysis@FreeBSD.org>2014-03-11 02:07:28 +0000
commit6c9f434f44ef2ae604f6988ff04670bb7847c68a (patch)
tree70182069e9539b64b9c3c7c0b29bce154d34d2eb
parent02a9a8d5933f5c11fb4ed05e934885a7982ea130 (diff)
downloadports-6c9f434f44ef2ae604f6988ff04670bb7847c68a.tar.gz
ports-6c9f434f44ef2ae604f6988ff04670bb7847c68a.zip
Notes
-rw-r--r--games/icebreaker/Makefile33
-rw-r--r--games/icebreaker/files/pkg-message.in13
2 files changed, 31 insertions, 15 deletions
diff --git a/games/icebreaker/Makefile b/games/icebreaker/Makefile
index 07b63cafbadd..e3d66b082c92 100644
--- a/games/icebreaker/Makefile
+++ b/games/icebreaker/Makefile
@@ -21,28 +21,31 @@ USES= gmake
USE_SDL= mixer sdl
PORTDOCS= ChangeLog README README.SDL README.ifyoumakechanges \
- README.themes TODO
+ README.themes
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)|' \
+ @${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}
diff --git a/games/icebreaker/files/pkg-message.in b/games/icebreaker/files/pkg-message.in
new file mode 100644
index 000000000000..219d2e629116
--- /dev/null
+++ b/games/icebreaker/files/pkg-message.in
@@ -0,0 +1,13 @@
+===============================================================================
+
+IceBreaker has been installed.
+
+
+When you have problems with usage please reinstall
+
+cd /usr/ports/games/icebreaker ; make deinstall ; make clean ; make reinstall
+
+
+Have fun!
+
+===============================================================================