Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Nov 2013 14:54:31 +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: r334423 - head/games/ftjava
Message-ID:  <201311201454.rAKEsVoM038043@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Wed Nov 20 14:54:31 2013
New Revision: 334423
URL: http://svnweb.freebsd.org/changeset/ports/334423

Log:
  - Add DOCS option
  - Add stage support

Modified:
  head/games/ftjava/Makefile

Modified: head/games/ftjava/Makefile
==============================================================================
--- head/games/ftjava/Makefile	Wed Nov 20 14:25:28 2013	(r334422)
+++ head/games/ftjava/Makefile	Wed Nov 20 14:54:31 2013	(r334423)
@@ -29,9 +29,7 @@ DATAFILES=	Images IncomingGames Outgoing
 		mailapi.jar png.jar pop3.jar skeetutil.jar smtp.jar xerces.jar \
 		xercesImpl.jar xmlParserAPIs.jar
 
-.if !defined(NOPORTDOCS)
 PORTDOCS=	FTJava_Linux.html faq.html FTJava_Documentation.html
-.endif
 
 SUB_FILES=	ftjava.sh
 
@@ -40,17 +38,16 @@ DESKTOP_ENTRIES=	"FTJava" "A PBEM client
 			"ftjava" "Game;BoardGame;StrategyGame;" \
 			false
 
-NO_STAGE=	yes
+OPTIONS_DEFINE=	DOCS
+
 do-install:
-	${MKDIR} ${DATADIR}
-	cd ${WRKSRC} && ${FIND} ${DATAFILES} -type d -exec ${MKDIR} ${DATADIR}/{} ";"
-	cd ${WRKSRC} && ${FIND} ${DATAFILES} -type f -exec ${INSTALL_DATA} {} ${DATADIR}/{} ";"
-	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME:L}
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	cd ${WRKSRC} && ${FIND} ${DATAFILES} -type d -exec ${MKDIR} ${STAGEDIR}${DATADIR}/{} ";"
+	cd ${WRKSRC} && ${FIND} ${DATAFILES} -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/{} ";"
+	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME:L}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for doc in ${PORTDOCS}
-	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${doc} ${DOCSDIR}
+	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${doc} ${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?201311201454.rAKEsVoM038043>