blob: 65b9cc7b58726f15d5e3fab1179f255a795a7c56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
PORTNAME= mandelbulber
PORTVERSION= 2.28
CATEGORIES= graphics
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= 3D Mandelbrot fractal renderer
WWW= https://mandelbulber.com/
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libgsl.so:math/gsl \
libpng.so:graphics/png \
libtiff.so:graphics/tiff \
liblzo2.so:archivers/lzo2 \
libOpenEXR.so:graphics/openexr
BUILD_DEPENDS= ${LOCALBASE}/include/stb/stb_image.h:devel/stb
USE_GITHUB= yes
GH_ACCOUNT= buddhi1980
GH_PROJECT= ${PORTNAME}2
USES= cmake compiler:c++11-lang gnome jpeg localbase:ldflags \
pkgconfig qt:5
USE_QT= core widgets network gui multimedia testlib concurrent \
qmake_build buildtools_build uitools_build
CMAKE_SOURCE_PATH= ${WRKSRC}/mandelbulber2/cmake
PORTDOCS= CONTRIBUTING.md README.md RESOURCES.md
PORTDATA= *
DATADIR= ${PREFIX}/share/${PORTNAME}2
OPTIONS_DEFINE= OPENCL OPENMP DOCS
OPTIONS_EXCLUDE= OPENMP # not properly supported yet
OPENCL_BUILD_DEPENDS= opencl>=0:devel/opencl
post-extract:
@${RM} -rf ${WRKSRC}/mandelbulber2/third-party
post-patch-OPENMP-off:
@${REINPLACE_CMD} -e 's|-fopenmp||' \
${CMAKE_SOURCE_PATH}/CMakeLists.txt
post-patch-OPENCL-off:
@${REINPLACE_CMD} -e '/find_package.*OpenCL/ d' \
${CMAKE_SOURCE_PATH}/CMakeLists.txt
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
.endfor
.include <bsd.port.mk>
|