mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
- Add staging support
- Switch to PLIST_FILES, PORTDOCS - Define DOCS option - Respect CXXFLAGS
This commit is contained in:
parent
e55947e28f
commit
5a62655623
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=351081
@ -15,19 +15,19 @@ COMMENT= MagicCube4D is a four-dimensional analog of Rubik's cube
|
||||
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
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} 's|@DFLAGS@|${CXXFLAGS}|' ${WRKSRC}/Makefile.in
|
||||
|
||||
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
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/magiccube4d ${STAGEDIR}${PREFIX}/bin
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,7 +0,0 @@
|
||||
bin/magiccube4d
|
||||
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
|
||||
%%PORTDOCS%%%%DOCSDIR%%/Intro.txt
|
||||
%%PORTDOCS%%%%DOCSDIR%%/MagicCube4D-unix.txt
|
||||
%%PORTDOCS%%%%DOCSDIR%%/ideas.txt
|
||||
%%PORTDOCS%%%%DOCSDIR%%/readme-unix.txt
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
Loading…
Reference in New Issue
Block a user