Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Apr 2014 09:46:22 +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: r351081 - head/games/magiccube4d
Message-ID:  <201404120946.s3C9kMqf062006@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Sat Apr 12 09:46:21 2014
New Revision: 351081
URL: http://svnweb.freebsd.org/changeset/ports/351081
QAT: https://qat.redports.org/buildarchive/r351081/

Log:
  - Add staging support
  - Switch to PLIST_FILES, PORTDOCS
  - Define DOCS option
  - Respect CXXFLAGS

Deleted:
  head/games/magiccube4d/pkg-plist
Modified:
  head/games/magiccube4d/Makefile

Modified: head/games/magiccube4d/Makefile
==============================================================================
--- head/games/magiccube4d/Makefile	Sat Apr 12 09:19:28 2014	(r351080)
+++ head/games/magiccube4d/Makefile	Sat Apr 12 09:46:21 2014	(r351081)
@@ -15,19 +15,19 @@ COMMENT=	MagicCube4D is a four-dimension
 USE_XORG=	x11 xext xt sm ice xaw
 GNU_CONFIGURE=	yes
 WRKSRC=		${WRKDIR}/${PORTNAME}-src-${PORTVERSION:S/./_/}
-DOCS=		ChangeLog Intro.txt MagicCube4D-unix.txt \
+
+PLIST_FILES=	bin/magiccube4d
+PORTDOCS=	ChangeLog Intro.txt MagicCube4D-unix.txt \
 		ideas.txt readme-unix.txt
 
-NO_STAGE=	yes
-do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/magiccube4d ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
-	@${INSTALL} -d -m 0755 ${DOCSDIR}
-.for f in ${DOCS}
-	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
-.endfor
-.endif
+OPTIONS_DEFINE=	DOCS
 
-.include <bsd.port.pre.mk>
+post-patch:
+	@${REINPLACE_CMD} 's|@DFLAGS@|${CXXFLAGS}|' ${WRKSRC}/Makefile.in
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/magiccube4d ${STAGEDIR}${PREFIX}/bin
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



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