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

(-)i/graphics/goxel/Makefile (-8 / +5 lines)
Lines 2-10 Link Here
2
2
3
PORTNAME=	goxel
3
PORTNAME=	goxel
4
DISTVERSIONPREFIX=	v
4
DISTVERSIONPREFIX=	v
5
DISTVERSION=	0.7.1-70
5
DISTVERSION=	0.8.2
6
PORTREVISION=	2
7
DISTVERSIONSUFFIX=	-g193eded
8
CATEGORIES=	graphics
6
CATEGORIES=	graphics
9
7
10
MAINTAINER=	greg@unrelenting.technology
8
MAINTAINER=	greg@unrelenting.technology
Lines 13-32 COMMENT= Free and Open Source 3D Voxel Editor Link Here
13
LICENSE=	GPLv3
11
LICENSE=	GPLv3
14
LICENSE_FILE=	${WRKSRC}/COPYING
12
LICENSE_FILE=	${WRKSRC}/COPYING
15
13
16
BROKEN_powerpc64=	fails to build: sh: clang++: not found
17
18
LIB_DEPENDS=	libargp.so:devel/argp-standalone \
14
LIB_DEPENDS=	libargp.so:devel/argp-standalone \
19
		libglfw.so:graphics/glfw \
15
		libglfw.so:graphics/glfw \
20
		libpng.so:graphics/png
16
		libpng.so:graphics/png
21
17
22
USES=		compiler:c++11-lang pkgconfig scons
18
USES=		compiler:c++11-lang pkgconfig scons gnome gl
23
USE_GITHUB=	yes
19
USE_GITHUB=	yes
24
GH_ACCOUNT=	guillaumechereau
20
GH_ACCOUNT=	guillaumechereau
25
USE_GNOME=	cairo gtk30
21
USE_GNOME=	cairo gtk30
26
USE_GL=		gl
22
USE_GL=		gl
27
23
28
INSTALLS_ICONS=	yes
24
INSTALLS_ICONS=	yes
29
MAKE_ARGS=	clang=1 debug=0
25
MAKE_ARGS=	debug=0
26
DESKTOP_ENTRIES="Goxel" "${COMMENT}" "${PORTNAME}" \
27
	"${PORTNAME}" "Graphics;3DGraphics;" false
30
28
31
do-install:
29
do-install:
32
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
30
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
Lines 35-40 do-install: Link Here
35
	${INSTALL_DATA} ${WRKSRC}/osx/goxel/goxel/Assets.xcassets/AppIcon.appiconset/${SZ}.png \
33
	${INSTALL_DATA} ${WRKSRC}/osx/goxel/goxel/Assets.xcassets/AppIcon.appiconset/${SZ}.png \
36
		${STAGEDIR}${PREFIX}/share/icons/hicolor/${SZ}x${SZ}/apps/goxel.png
34
		${STAGEDIR}${PREFIX}/share/icons/hicolor/${SZ}x${SZ}/apps/goxel.png
37
.endfor
35
.endfor
38
	${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}
39
36
40
.include <bsd.port.mk>
37
.include <bsd.port.mk>
(-)i/graphics/goxel/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1506893291
1
TIMESTAMP = 1545486941
2
SHA256 (guillaumechereau-goxel-v0.7.1-70-g193eded_GH0.tar.gz) = b5c4fea8029543f81dff4c73377f0ef6411f87e65463604a581e3bbc277e66cf
2
SHA256 (guillaumechereau-goxel-v0.8.2_GH0.tar.gz) = 4f8297560e356cb69469e0a23bcb4e9c4e8549766a0466ffeaa0c9cfb7a04049
3
SIZE (guillaumechereau-goxel-v0.7.1-70-g193eded_GH0.tar.gz) = 1441265
3
SIZE (guillaumechereau-goxel-v0.8.2_GH0.tar.gz) = 3387515
(-)c/graphics/goxel/files/goxel.desktop (-10 lines)
Removed Link Here
1
[Desktop Entry]
2
Type=Application
3
Version=1.0
4
Name=Goxel
5
GenericName=3D Voxel Editor
6
Icon=goxel
7
Exec=goxel
8
Keywords=3d;voxel;
9
Categories=Graphics;3DGraphics;
10
Terminal=false
(-)i/graphics/goxel/files/patch-SConstruct (+35 lines)
Added Link Here
1
--- SConstruct.orig	2018-12-22 14:00:12 UTC
2
+++ SConstruct
3
@@ -28,15 +28,18 @@ clang = int(ARGUMENTS.get("clang", 0))
4
 cycles = int(ARGUMENTS.get('cycles', 1))
5
 sound = False
6
 
7
-if os.environ.get('CC') == 'clang': clang = 1
8
+import subprocess
9
+if 'clang' in subprocess.check_output([os.environ.get('CC', 'cc'), '-v'],
10
+                                      stderr=subprocess.STDOUT):
11
+    clang = 1
12
+print 'clang', clang
13
 if profile: debug = 0
14
 
15
-env = Environment(ENV = os.environ)
16
+
17
+env = Environment(ENV = os.environ, CC = os.environ.get('CC', 'cc'),
18
+                  CXX = os.environ.get('CXX', 'c++'))
19
 conf = env.Configure()
20
 
21
-if clang:
22
-    env.Replace(CC='clang', CXX='clang++')
23
-
24
 # Asan & Ubsan (need to come first).
25
 # Cycles doesn't like libasan with clang, so we only use it on
26
 # C code with clang.
27
@@ -145,7 +148,7 @@ if cycles:
28
     sources += glob.glob('ext_src/cycles/src/subd/*.cpp')
29
 
30
     env.Append(CPPPATH=['ext_src/cycles/src'])
31
-    env.Append(CPPPATH=['ext_src/cycles/third_party/atomic'])
32
+    env.Prepend(CPPPATH=['ext_src/cycles/third_party/atomic'])
33
     env.Append(CPPFLAGS=[
34
         '-DCYCLES_STD_UNORDERED_MAP',
35
         '-DCCL_NAMESPACE_BEGIN=namespace ccl {',
(-)i/graphics/goxel/files/patch-ext__src_cycles_src_util_util__path.cpp (+13 lines)
Added Link Here
1
--- ext_src/cycles/src/util/util_path.cpp.orig	2018-12-22 14:23:19 UTC
2
+++ ext_src/cycles/src/util/util_path.cpp
3
@@ -38,6 +38,10 @@
4
 #  include <shlwapi.h>
5
 #endif
6
 
7
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
8
+#include <sys/sysctl.h>
9
+#endif
10
+
11
 #include "util/util_map.h"
12
 #include "util/util_windows.h"
13
 
(-)i/graphics/goxel/pkg-plist (-1 lines)
Lines 1-5 Link Here
1
bin/goxel
1
bin/goxel
2
share/applications/goxel.desktop
3
share/icons/hicolor/32x32/apps/goxel.png
2
share/icons/hicolor/32x32/apps/goxel.png
4
share/icons/hicolor/64x64/apps/goxel.png
3
share/icons/hicolor/64x64/apps/goxel.png
5
share/icons/hicolor/256x256/apps/goxel.png
4
share/icons/hicolor/256x256/apps/goxel.png

Return to bug 234277