aboutsummaryrefslogtreecommitdiff
path: root/graphics/meshviewer/Makefile
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2014-04-28 08:56:09 +0000
committerPawel Pekala <pawel@FreeBSD.org>2014-04-28 08:56:09 +0000
commit800bd98c44c69292923a8ad0f3703c5865235e03 (patch)
tree9d9e05ef53abd7b164a6dd201fa0baafb897003d /graphics/meshviewer/Makefile
parent4701ce6f0799d2cfcf00c65d5be7876e5529bd41 (diff)
downloadports-800bd98c44c69292923a8ad0f3703c5865235e03.tar.gz
ports-800bd98c44c69292923a8ad0f3703c5865235e03.zip
Notes
Diffstat (limited to 'graphics/meshviewer/Makefile')
-rw-r--r--graphics/meshviewer/Makefile21
1 files changed, 6 insertions, 15 deletions
diff --git a/graphics/meshviewer/Makefile b/graphics/meshviewer/Makefile
index 16ba5c9aa45a..776150f80692 100644
--- a/graphics/meshviewer/Makefile
+++ b/graphics/meshviewer/Makefile
@@ -26,8 +26,6 @@ MAKE_ARGS= QTDIR="${QT_PREFIX}" CC="${CXX}" MOC="${MOC}" \
CXXFLAGS="${CXXFLAGS}" \
LIBPATH="" LIBS_QT4="${LDFLAGS}"
-PORTDOCS= *
-
DOCSRCDIR1= ${WRKSRC}
DOC_FILES1= AUTHORS README TODO
@@ -40,27 +38,20 @@ DOCSDIR3= ${DOCSDIR}/Documentation
DOC_FILES3= *.html *.ico
PLIST_FILES= bin/${PORTNAME}
-
-NO_STAGE= yes
+PORTDOCS= *
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
post-patch:
@${REINPLACE_CMD} -e 's|make |$$(MAKE) |g' -e 's|CPPFLAGS|CXXFLAGS|g' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|<values.h>|<cmath>|g' ${WRKSRC}/mesh/mesh.cpp
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/mview ${PREFIX}/bin/${PORTNAME}
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR}
- @${MKDIR} ${DOCSDIR2}
- ${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR2}
- @${MKDIR} ${DOCSDIR3}
- ${INSTALL_DATA} ${DOC_FILES3:S|^|${DOCSRCDIR3}/|} ${DOCSDIR3}
-.endif
+ ${INSTALL_PROGRAM} ${WRKSRC}/mview ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR2}
+ ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
+ ${INSTALL_DATA} ${DOC_FILES3:S|^|${DOCSRCDIR3}/|} ${STAGEDIR}${DOCSDIR3}
.include <bsd.port.mk>