Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Nov 2013 03:07:23 +0000 (UTC)
From:      Danilo Egea Gondolfo <danilo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r332340 - head/games/digger-vgl
Message-ID:  <201311010307.rA137NlU086985@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Fri Nov  1 03:07:22 2013
New Revision: 332340
URL: http://svnweb.freebsd.org/changeset/ports/332340

Log:
  - Add stage support
  - Add SOUND option

Modified:
  head/games/digger-vgl/Makefile

Modified: head/games/digger-vgl/Makefile
==============================================================================
--- head/games/digger-vgl/Makefile	Fri Nov  1 02:59:24 2013	(r332339)
+++ head/games/digger-vgl/Makefile	Fri Nov  1 03:07:22 2013	(r332340)
@@ -14,30 +14,24 @@ ONLY_FOR_ARCHS=	i386	# Alphas don't have
 
 MAKEFILE=	Makefile.fbsd
 
-.if defined(WITH_SOUND)
+OPTIONS_DEFINE=	SOUND
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MSOUND}
 USE_SDL=	yes
 MAKE_ENV=	SOUND=yes
 .endif
 
-NO_STAGE=	yes
-pre-everything::
-.if !defined(WITH_SOUND)
-	@${ECHO_MSG} ""
-	@${ECHO_MSG} "Please use \"make -DWITH_SOUND\" if you want to build the game with sound support."
-	@${ECHO_MSG} ""
-.endif
-
 post-patch:
 	@${REINPLACE_CMD} -e 's|Software|Software\\n\\|g' ${WRKSRC}/alpha.c
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/digger ${PREFIX}/bin
-	@${MKDIR} /var/games/digger
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_MAN} ${WRKSRC}/digger.txt ${DOCSDIR}
-.endif
-.if defined(WITH_SOUND)
+	${INSTALL_PROGRAM} ${WRKSRC}/digger ${STAGEDIR}${PREFIX}/bin
+	@${MKDIR} ${STAGEDIR}/var/games/digger
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_MAN} ${WRKSRC}/digger.txt ${STAGEDIR}${DOCSDIR}
+.if ${PORT_OPTIONS:MSOUND}
 	@${ECHO_MSG}
 	@${ECHO_MSG} "Use \"digger /A\" command to run Digger with sound enabled."
 	@${ECHO_MSG}



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