svn commit: r330841 - head/games/moonlander
Dmitry Marakasov
amdmi3 at FreeBSD.org
Sat Oct 19 03:04:35 UTC 2013
Author: amdmi3
Date: Sat Oct 19 03:04:34 2013
New Revision: 330841
URL: http://svnweb.freebsd.org/changeset/ports/330841
Log:
- Support staging
Deleted:
head/games/moonlander/pkg-plist
Modified:
head/games/moonlander/Makefile
Modified: head/games/moonlander/Makefile
==============================================================================
--- head/games/moonlander/Makefile Sat Oct 19 03:00:27 2013 (r330840)
+++ head/games/moonlander/Makefile Sat Oct 19 03:04:34 2013 (r330841)
@@ -5,47 +5,38 @@ PORTNAME= moonlander
PORTVERSION= 1.0
PORTREVISION= 12
CATEGORIES= games
-MASTER_SITES= ${MASTER_SITE_DEBIAN}
-MASTER_SITE_SUBDIR=pool/main/m/moon-lander
-DISTNAME= moon-lander_1.0.orig
+MASTER_SITES= DEBIAN/pool/main/m/moon-lander
+DISTNAME= moon-lander_${PORTVERSION}.orig
MAINTAINER= amdmi3 at FreeBSD.org
COMMENT= Land a spacecraft on the moon
LICENSE= BSD
-LICENSE_FILE= ${WRKSRC}/README.txt
USE_SDL= mixer image sdl
WRKSRC= ${WRKDIR}/moon-lander
+SOUNDS= sounds
+
+PLIST_FILES= bin/${PORTNAME}
+PORTDATA= *
+
OPTIONS_DEFINE= SOUND
+OPTIONS_DEFAULT=SOUND
-NO_STAGE= yes
.include <bsd.port.options.mk>
-install_dirs= fonts images
-.if ${PORT_OPTIONS:MSOUND}
-PLIST_SUB+= SOUND=
-install_dirs+= sounds
-.else
+.if ! ${PORT_OPTIONS:MSOUND}
+SOUNDS= # empty
CFLAGS+= -DNOSOUND
-PLIST_SUB+= SOUND="@comment "
.endif
do-configure:
- ${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/moon_lander.c
+ @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/moon_lander.c
do-install:
- @${MKDIR} ${PREFIX}/bin; \
- ${INSTALL_PROGRAM} ${WRKSRC}/moonlander ${PREFIX}/bin; \
- ${MKDIR} ${DATADIR}
-.for i in ${install_dirs}
- @${CP} -R ${WRKSRC}/${i} ${DATADIR}
-.endfor
-
-post-install:
- @${FIND} ${PREFIX}/share/moonlander -type f -print0 | \
- ${XARGS} -0 ${CHMOD} 444
+ ${INSTALL_PROGRAM} ${WRKSRC}/moonlander ${STAGEDIR}${PREFIX}/bin/
+ cd ${WRKSRC} && ${COPYTREE_SHARE} "fonts images ${SOUNDS}" ${STAGEDIR}${DATADIR}/
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list