View | Details | Raw Unified | Return to bug 229874
Collapse All | Expand All

(-)fracplanet/Makefile (-42 / +37 lines)
Lines 2-12 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	fracplanet
4
PORTNAME=	fracplanet
5
PORTVERSION=	0.4.0
5
PORTVERSION=	0.5.1
6
PORTREVISION=	16
7
CATEGORIES=	graphics
6
CATEGORIES=	graphics
8
MASTER_SITES=	SF \
7
MASTER_SITES=	SF \
9
		SF/nemysisfreebsdp/:icons
8
		SF/nemysisfreebsdp/:icons
9
PKGNAMESUFFIX=	-${FLAVOR}
10
DISTFILES=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
10
DISTFILES=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
11
		${PORTNAME}_icons.tar.gz:icons
11
		${PORTNAME}_icons.tar.gz:icons
12
12
Lines 18-71 Link Here
18
18
19
BROKEN_powerpc64=	fails to link: obj/fracplanet.o:(.text+0x250): undefined reference to boost::program_options::options_description::options_description
19
BROKEN_powerpc64=	fails to link: obj/fracplanet.o:(.text+0x250): undefined reference to boost::program_options::options_description::options_description
20
20
21
BUILD_DEPENDS=	xsltproc:textproc/libxslt
22
LIB_DEPENDS=	libboost_program_options.so:devel/boost-libs
21
LIB_DEPENDS=	libboost_program_options.so:devel/boost-libs
23
22
24
WRKSRC=		${WRKDIR}/${PORTNAME}
23
FLAVORS=	qt4 qt5
24
FLAVOR?=	${FLAVORS:[1]}
25
25
26
USES=		gmake qmake:no_env qt:4
26
USES=		qmake:outsource
27
USE_GL=		glu
27
USE_GL=		gl glu
28
USE_QT=		corelib moc_build qmake_build gui opengl
28
QMAKE_ARGS=	VERSION_NUMBER=${PORTVERSION}
29
HAS_CONFIGURE=	yes
30
CONFIGURE_ENV=	QTDIR="${PREFIX}"
31
CONFIGURE_ARGS=	-spec ${QMAKESPEC}
32
29
33
CXXFLAGS+=	-include ${WRKSRC}/precompiled.h
30
DESKTOP_ENTRIES=	"Fracplanet" \
34
31
		       	"" \
32
		       	"${PORTNAME}" \
33
		       	"${PORTNAME}" \
34
		       	"Graphics;" \
35
		       	""
36
INSTALLS_ICONS=	yes
35
PORTDOCS=	*
37
PORTDOCS=	*
38
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
36
39
37
INSTALLS_ICONS=	yes
38
ICON_SIZES=	32x32 48x48 64x64 72x72 96x96
39
40
DESKTOP_ENTRIES="Fracplanet" "" "${PORTNAME}" \
41
		"${PORTNAME}" "Graphics;" ""
42
43
OPTIONS_DEFINE=	DOXYGEN DOCS
40
OPTIONS_DEFINE=	DOXYGEN DOCS
41
DOXYGEN_BUILD_DEPENDS=	doxygen:devel/doxygen
42
DOXYGEN_IMPLIES=	DOCS
44
43
45
.include <bsd.port.pre.mk>
44
DOCFILES=	BUGS NEWS README THANKS fracplanet.css fracplanet.htm
45
ICON_SIZES=	32x32 48x48 64x64 72x72 96x96
46
46
47
.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MDOXYGEN}
47
.if ${FLAVOR} == qt4
48
BUILD_DEPENDS+=	doxygen:devel/doxygen
48
USES+=	qt:4
49
USE_QT=		corelib gui moc_build opengl
50
.else
51
USES+=	qt:5
52
USE_QT=		buildtools_build core gui opengl
53
QTVER_SUFFIX=	5
49
.endif
54
.endif
50
55
51
post-patch:
56
post-patch:
52
.for f in BUILD VERSION configure
57
	@${REINPLACE_CMD} -Ee 's|(OBJECTS_DIR)|#\1|' ${WRKSRC}/fracplanet.pro
53
	@${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|g' \
54
		${WRKSRC}/${f}
55
.endfor
56
	@${REINPLACE_CMD} -e 's|qmake-qt4|${QMAKE} ${QMAKE_ARGS}|' \
57
		${WRKSRC}/configure
58
	@${REINPLACE_CMD} -e \
59
		's|-lboost_program_options|-lboost_program_options -lGLU|' \
60
		${WRKSRC}/fracplanet.pro
61
58
62
.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MDOXYGEN}
59
post-build-DOXYGEN-on:
63
post-build:
64
	cd ${WRKSRC} && doxygen .
60
	cd ${WRKSRC} && doxygen .
65
.endif
66
61
67
do-install:
62
do-install:
68
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
63
	${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${PORTNAME} \
64
	       	${STAGEDIR}${PREFIX}/bin/
69
	${INSTALL_MAN} ${WRKSRC}/man/man1/${PORTNAME}.1 \
65
	${INSTALL_MAN} ${WRKSRC}/man/man1/${PORTNAME}.1 \
70
		${STAGEDIR}${MAN1PREFIX}/man/man1/
66
		${STAGEDIR}${MAN1PREFIX}/man/man1/
71
67
Lines 77-89 Link Here
77
	${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
73
	${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
78
		${STAGEDIR}${PREFIX}/share/pixmaps
74
		${STAGEDIR}${PREFIX}/share/pixmaps
79
75
80
.if ${PORT_OPTIONS:MDOCS}
76
post-install-DOCS-on:
81
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
77
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
82
	cd ${WRKSRC} && ${INSTALL_DATA} BUGS NEWS README THANKS \
78
	(cd ${WRKSRC} && ${INSTALL_DATA} ${DOCFILES} ${STAGEDIR}${DOCSDIR})
83
		fracplanet.css fracplanet.htm ${STAGEDIR}${DOCSDIR}
84
. if ${PORT_OPTIONS:MDOXYGEN}
85
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} "html latex" ${STAGEDIR}${DOCSDIR})
86
. endif
87
.endif
88
79
89
.include <bsd.port.post.mk>
80
post-install-DOXYGEN-on:
81
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
82
	(cd ${WRKSRC} && ${COPYTREE_SHARE} "html latex" ${STAGEDIR}${DOCSDIR})
83
84
.include <bsd.port.mk>
(-)fracplanet/distinfo (-2 / +3 lines)
Lines 1-4 Link Here
1
SHA256 (fracplanet-0.4.0.tar.gz) = 38d56aba3c5cf19d4f2c218bece471d3860b161d2210a24ba94550356723482a
1
TIMESTAMP = 1529683211
2
SIZE (fracplanet-0.4.0.tar.gz) = 101700
2
SHA256 (fracplanet-0.5.1.tar.gz) = 435dd07e1798f810280260d09d2ee85e870eb466411e49b859eb1bef6f336ade
3
SIZE (fracplanet-0.5.1.tar.gz) = 111911
3
SHA256 (fracplanet_icons.tar.gz) = 99eeb8ed62d45083138402c41b2af79a4b432bfcb8e63cbe83090bb2d235063b
4
SHA256 (fracplanet_icons.tar.gz) = 99eeb8ed62d45083138402c41b2af79a4b432bfcb8e63cbe83090bb2d235063b
4
SIZE (fracplanet_icons.tar.gz) = 51712
5
SIZE (fracplanet_icons.tar.gz) = 51712
(-)fracplanet/files/patch-fracplanet.pro (-11 lines)
Lines 1-11 Link Here
1
--- fracplanet.pro.orig	2015-06-11 10:31:19 UTC
2
+++ fracplanet.pro
3
@@ -1,7 +1,7 @@
4
 TARGET = fracplanet
5
 TEMPLATE = app
6
 
7
-CONFIG+= qt stl precompile_header exceptions release  # debug/release
8
+CONFIG+= qt stl exceptions release  # debug/release
9
 QT += opengl
10
 
11
 PRECOMPILED_HEADER = precompiled.h
(-)fracplanet/files/patch-triangle_mesh_viewer_display.cpp (-11 lines)
Lines 1-11 Link Here
1
--- triangle_mesh_viewer_display.cpp.orig	2009-10-04 22:26:36 UTC
2
+++ triangle_mesh_viewer_display.cpp
3
@@ -24,6 +24,8 @@
4
 #include "matrix33.h"
5
 #include "triangle_mesh_viewer.h"
6
 
7
+#include <GL/glu.h>
8
+
9
 TriangleMeshViewerDisplay::TriangleMeshViewerDisplay(TriangleMeshViewer* parent,const QGLFormat& format,const ParametersRender* param,const std::vector<const TriangleMesh*>& m,bool verbose)
10
   :QGLWidget(format,parent)
11
   ,_notify(*parent)

Return to bug 229874