Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Nov 2013 00:39:45 +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: r332794 - head/games/phalanx
Message-ID:  <201311050039.rA50djH9012674@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Tue Nov  5 00:39:45 2013
New Revision: 332794
URL: http://svnweb.freebsd.org/changeset/ports/332794

Log:
  - Convert USE_GMAKE to USES
  - Add DOCS option
  - Add stage support

Modified:
  head/games/phalanx/Makefile

Modified: head/games/phalanx/Makefile
==============================================================================
--- head/games/phalanx/Makefile	Tue Nov  5 00:33:17 2013	(r332793)
+++ head/games/phalanx/Makefile	Tue Nov  5 00:39:45 2013	(r332794)
@@ -16,7 +16,7 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 
 WRKSRC=		${WRKDIR}/${DISTNAME:S/-beta//}
 
-USE_GMAKE=	yes
+USES=		gmake
 MAKEFILE=	makefile
 MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}"
 ALL_TARGET=	# empty
@@ -34,16 +34,15 @@ PLIST_FILES=	bin/phalanx \
 		%%DATADIR%%/sbook.phalanx
 PLIST_DIRS=	%%DATADIR%%
 
-NO_STAGE=	yes
+OPTIONS_DEFINE=	DOCS
+
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/phalanx ${PREFIX}/bin
-	@${MKDIR} ${DATADIR}
-	${INSTALL_DATA} ${WRKSRC}/*.phalanx ${DATADIR}
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
+	${INSTALL_PROGRAM} ${WRKSRC}/phalanx ${STAGEDIR}${PREFIX}/bin
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/*.phalanx ${STAGEDIR}${DATADIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for file in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
 .endfor
-.endif
 
 .include <bsd.port.mk>



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