Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Apr 2014 22:10:10 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r350863 - head/games/atris
Message-ID:  <201404102210.s3AMAAiO064415@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Thu Apr 10 22:10:10 2014
New Revision: 350863
URL: http://svnweb.freebsd.org/changeset/ports/350863
QAT: https://qat.redports.org/buildarchive/r350863/

Log:
  - Add staging support
  - Define DOCS option

Modified:
  head/games/atris/Makefile

Modified: head/games/atris/Makefile
==============================================================================
--- head/games/atris/Makefile	Thu Apr 10 22:02:00 2014	(r350862)
+++ head/games/atris/Makefile	Thu Apr 10 22:10:10 2014	(r350863)
@@ -19,13 +19,14 @@ CONFIGURE_ARGS=	--program-transform-name
 MAKE_ARGS=	ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
 		AUTOHEADER="${TRUE}"
 
-NO_STAGE=	yes
+OPTIONS_DEFINE=	DOCS
 post-patch:
 # Fix path to ${DATADIR}
 	${REINPLACE_CMD} -e 's|\(GAME_INSTALLDIR=\).*|\1"${DATADIR}"|' \
 			${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
 # Fix install target to use gmake
 	${REINPLACE_CMD} -e '/^install:/,/^$$/s/make/$$(MAKE)/' \
+		-e '/install_gamedata/ s|target=|&$$(DESTDIR)|' \
 		${WRKSRC}/Makefile.in
 
 # Fix SDL include statement
@@ -35,12 +36,9 @@ post-patch:
 		's|\(#include.*\)SDL/\(SDL.*\)|\1\2|'
 .endfor
 
-.if !defined(NOPORTDOCS)
 post-install:
-# Install documentation (optional)
-	@${MKDIR} ${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	@${RM} -f ${WRKSRC}/Docs/Makefile*
-	@${CP} -R ${WRKSRC}/Docs/* ${DOCSDIR}
-.endif
+	${CP} -R ${WRKSRC}/Docs/* ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>



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