aboutsummaryrefslogtreecommitdiff
path: root/games/xbomber/Makefile
diff options
context:
space:
mode:
authorAde Lovett <ade@FreeBSD.org>2000-10-13 20:25:19 +0000
committerAde Lovett <ade@FreeBSD.org>2000-10-13 20:25:19 +0000
commit7d9d46445f3e374f470acffb2fd11beb3758605a (patch)
tree0e98334dfdda04db4be2272baeb652dc3c343dfb /games/xbomber/Makefile
parent6d2fbaba1a0ff898ccde01e8b5edd39fc8533e5f (diff)
downloadports-7d9d46445f3e374f470acffb2fd11beb3758605a.tar.gz
ports-7d9d46445f3e374f470acffb2fd11beb3758605a.zip
Notes
Diffstat (limited to 'games/xbomber/Makefile')
-rw-r--r--games/xbomber/Makefile48
1 files changed, 16 insertions, 32 deletions
diff --git a/games/xbomber/Makefile b/games/xbomber/Makefile
index 9532d13d2e08..faeed4d14fdd 100644
--- a/games/xbomber/Makefile
+++ b/games/xbomber/Makefile
@@ -7,45 +7,29 @@
PORTNAME= xbomber
PORTVERSION= 0.8
-CATEGORIES= games
-MASTER_SITES= ftp://ftp.sonic.net/pub/users/nbs/unix/x/xbomber/
-DISTNAME= ${PORTNAME}.${PORTVERSION}
+CATEGORIES= games
+MASTER_SITES= ftp://ftp.sonic.net/pub/users/nbs/unix/x/xbomber/
+DISTNAME= ${PORTNAME}.${PORTVERSION}
-MAINTAINER= jclarke@cisco.com
+MAINTAINER= jclarke@cisco.com
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
USE_X_PREFIX= yes
-WRKSRC= ${WRKDIR}/xbomber
MAKEFILE= makefile
do-install:
- ${MKDIR} ${PREFIX}/lib/xbomber/
- ${INSTALL_PROGRAM} ${WRKSRC}/xbomber ${PREFIX}/lib/xbomber/
-
- ${MKDIR} ${PREFIX}/lib/xbomber/bitmaps/
- ${INSTALL_DATA} ${WRKSRC}/bitmaps/* ${PREFIX}/lib/xbomber/bitmaps/
-
- ${MKDIR} ${PREFIX}/lib/xbomber/jungle/
- ${INSTALL_DATA} ${WRKSRC}/jungle/* ${PREFIX}/lib/xbomber/jungle/
-
- ${MKDIR} ${PREFIX}/lib/xbomber/levels/
- ${INSTALL_DATA} ${WRKSRC}/levels/* ${PREFIX}/lib/xbomber/levels/
-
- ${MKDIR} ${PREFIX}/lib/xbomber/pixmaps/
- ${INSTALL_DATA} ${WRKSRC}/pixmaps/* ${PREFIX}/lib/xbomber/pixmaps/
-
- ${MKDIR} ${PREFIX}/lib/xbomber/sounds/
- ${MKDIR} ${PREFIX}/lib/xbomber/sounds/numbers/
- ${INSTALL_DATA} ${WRKSRC}/sounds/*.au ${PREFIX}/lib/xbomber/sounds/
- ${INSTALL_DATA} ${WRKSRC}/sounds/numbers/*.au ${PREFIX}/lib/xbomber/sounds/numbers/
- ${MKDIR} ${PREFIX}/share/xbomber/
+ ${INSTALL_PROGRAM} ${WRKSRC}/xbomber ${PREFIX}/bin
+ @${MKDIR} ${PREFIX}/share/xbomber
+ ${TAR} -C ${WRKSRC} -cf - bitmaps jungle levels pixmaps sounds | \
+ ${TAR} -C ${PREFIX}/share/xbomber --unlink -xf -
+ @find ${PREFIX}/share/xbomber | xargs ${CHOWN} ${SHAREOWN}:${SHAREGRP}
+ @find ${PREFIX}/share/xbomber -type f | xargs ${CHMOD} ${SHAREMODE}
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${PREFIX}/share/doc/xbomber
.for file in README.txt LEVELS.txt SOUND.txt GRAPHICS.txt
- ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/xbomber/
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/xbomber
.endfor
-
- ${MKDIR} ${PREFIX}/bin; \
- ${ECHO} "#!/bin/sh" > ${PREFIX}/bin/xbomber; \
- ${ECHO} "cd ${PREFIX}/lib/xbomber" >> ${PREFIX}/bin/xbomber; \
- ${CAT} ${SCRIPTDIR}/xbomber.sh >> ${PREFIX}/bin/xbomber; \
- ${CHMOD} 0755 ${PREFIX}/bin/xbomber
+.endif
.include <bsd.port.mk>