diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2015-06-11 14:22:37 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2015-06-11 14:22:37 +0000 |
commit | c3366746d2cda18c1de55a786d9fbd151eb9e9a6 (patch) | |
tree | a03e28b79b499d15c1e1e84167d4768853b07303 /graphics/fracplanet | |
parent | 63197463d0403428076c7f914d03611396e1f38d (diff) |
- Add LICENSE_FILE
- Simplify documentation installation
- Disable precompiled headers to fix build with old gcc on -current kernel
MFH: 2015Q2
Notes
Notes:
svn path=/head/; revision=389217
Diffstat (limited to 'graphics/fracplanet')
-rw-r--r-- | graphics/fracplanet/Makefile | 44 | ||||
-rw-r--r-- | graphics/fracplanet/files/patch-fracplanet.pro | 11 | ||||
-rw-r--r-- | graphics/fracplanet/files/patch-triangle_mesh_viewer_display.cpp | 4 |
3 files changed, 30 insertions, 29 deletions
diff --git a/graphics/fracplanet/Makefile b/graphics/fracplanet/Makefile index ca949415540a..703a3768e4cd 100644 --- a/graphics/fracplanet/Makefile +++ b/graphics/fracplanet/Makefile @@ -14,6 +14,7 @@ MAINTAINER= ports@FreeBSD.org COMMENT= Interactive tool for creating random fractal planets and terrain LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= xsltproc:${PORTSDIR}/textproc/libxslt LIB_DEPENDS= libboost_program_options.so:${PORTSDIR}/devel/boost-libs @@ -28,10 +29,9 @@ HAS_CONFIGURE= yes CONFIGURE_ENV= QTDIR="${QT_PREFIX}" CONFIGURE_ARGS= -spec ${QMAKESPEC} -PORTDOCS= * +CXXFLAGS+= -include ${WRKSRC}/precompiled.h -DOCSRCDIR1= ${WRKSRC} -DOC_FILES1= BUGS NEWS README THANKS ${PORTNAME}.css ${PORTNAME}.htm +PORTDOCS= * INSTALLS_ICONS= yes ICON_SIZES= 32x32 48x48 64x64 72x72 96x96 @@ -39,18 +39,11 @@ ICON_SIZES= 32x32 48x48 64x64 72x72 96x96 DESKTOP_ENTRIES="Fracplanet" "" "${PORTNAME}" \ "${PORTNAME}" "Graphics;" "" -OPTIONS_DEFINE= DOCS -OPTIONS_GROUP= DOXYGEN -OPTIONS_GROUP_DOXYGEN= HTML LATEX - -OPTIONS_DEFAULT= HTML +OPTIONS_DEFINE= DOXYGEN DOCS -HTML_DESC= Install HTML Doxygen files -LATEX_DESC= Install LaTeX Doxygen files +.include <bsd.port.pre.mk> -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MHTML} || ${PORT_OPTIONS:MLATEX} +.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MDOXYGEN} BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen .endif @@ -65,6 +58,11 @@ post-patch: 's|-lboost_program_options|-lboost_program_options -lGLU|' \ ${WRKSRC}/fracplanet.pro +.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MDOXYGEN} +post-build: + cd ${WRKSRC} && doxygen . +.endif + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ ${INSTALL_MAN} ${WRKSRC}/man/man1/${PORTNAME}.1 \ @@ -80,19 +78,11 @@ do-install: .if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR} -.endif - -.if ${PORT_OPTIONS:MHTML} || ${PORT_OPTIONS:MLATEX} - @cd ${WRKSRC} && doxygen . -.endif - -.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MHTML} - @(cd ${WRKSRC} && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR}) -.endif - -.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MLATEX} - @(cd ${WRKSRC} && ${COPYTREE_SHARE} latex ${STAGEDIR}${DOCSDIR}) + cd ${WRKSRC} && ${INSTALL_DATA} BUGS NEWS README THANKS \ + fracplanet.css fracplanet.htm ${STAGEDIR}${DOCSDIR} +. if ${PORT_OPTIONS:MDOXYGEN} + @(cd ${WRKSRC} && ${COPYTREE_SHARE} "html latex" ${STAGEDIR}${DOCSDIR}) +. endif .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/graphics/fracplanet/files/patch-fracplanet.pro b/graphics/fracplanet/files/patch-fracplanet.pro new file mode 100644 index 000000000000..67e0cae3ae37 --- /dev/null +++ b/graphics/fracplanet/files/patch-fracplanet.pro @@ -0,0 +1,11 @@ +--- fracplanet.pro.orig 2015-06-11 10:31:19 UTC ++++ fracplanet.pro +@@ -1,7 +1,7 @@ + TARGET = fracplanet + TEMPLATE = app + +-CONFIG+= qt stl precompile_header exceptions release # debug/release ++CONFIG+= qt stl exceptions release # debug/release + QT += opengl + + PRECOMPILED_HEADER = precompiled.h diff --git a/graphics/fracplanet/files/patch-triangle_mesh_viewer_display.cpp b/graphics/fracplanet/files/patch-triangle_mesh_viewer_display.cpp index ef25f80a6a96..60f2a8650cea 100644 --- a/graphics/fracplanet/files/patch-triangle_mesh_viewer_display.cpp +++ b/graphics/fracplanet/files/patch-triangle_mesh_viewer_display.cpp @@ -1,5 +1,5 @@ ---- triangle_mesh_viewer_display.cpp.orig 2009-10-05 00:26:36.000000000 +0200 -+++ triangle_mesh_viewer_display.cpp 2013-10-03 00:25:53.000000000 +0200 +--- triangle_mesh_viewer_display.cpp.orig 2009-10-04 22:26:36 UTC ++++ triangle_mesh_viewer_display.cpp @@ -24,6 +24,8 @@ #include "matrix33.h" #include "triangle_mesh_viewer.h" |