Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Oct 2013 03:04:34 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r330841 - head/games/moonlander
Message-ID:  <201310190304.r9J34YTu014643@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310190304.r9J34YTu014643>