svn commit: r351081 - head/games/magiccube4d
Pawel Pekala
pawel at FreeBSD.org
Sat Apr 12 09:46:22 UTC 2014
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>
More information about the svn-ports-all
mailing list