Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jan 2019 01:08:22 +0000 (UTC)
From:      Niclas Zeising <zeising@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r489124 - in head/graphics/goxel: . files
Message-ID:  <201901030108.x0318Mg4055556@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: zeising
Date: Thu Jan  3 01:08:22 2019
New Revision: 489124
URL: https://svnweb.freebsd.org/changeset/ports/489124

Log:
  graphics/goxel: Update to 0.8.2
  
  - update to 0.8.2
  - DESKTOP_ENTRIES instead of desktop file
  - USES+=gnome gl
  - patched build to detect clang instead of setting clang, should fix
    build on gcc architectures (powerpc64)
  
  PR:		234277
  Submitted by:	Greg V (maintainer)

Added:
  head/graphics/goxel/files/patch-SConstruct   (contents, props changed)
  head/graphics/goxel/files/patch-ext__src_cycles_src_util_util__path.cpp   (contents, props changed)
Deleted:
  head/graphics/goxel/files/goxel.desktop
Modified:
  head/graphics/goxel/Makefile
  head/graphics/goxel/distinfo
  head/graphics/goxel/pkg-plist

Modified: head/graphics/goxel/Makefile
==============================================================================
--- head/graphics/goxel/Makefile	Thu Jan  3 00:40:37 2019	(r489123)
+++ head/graphics/goxel/Makefile	Thu Jan  3 01:08:22 2019	(r489124)
@@ -2,9 +2,7 @@
 
 PORTNAME=	goxel
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.7.1-70
-PORTREVISION=	2
-DISTVERSIONSUFFIX=	-g193eded
+DISTVERSION=	0.8.2
 CATEGORIES=	graphics
 
 MAINTAINER=	greg@unrelenting.technology
@@ -13,20 +11,20 @@ COMMENT=	Free and Open Source 3D Voxel Editor
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-BROKEN_powerpc64=	fails to build: sh: clang++: not found
-
 LIB_DEPENDS=	libargp.so:devel/argp-standalone \
 		libglfw.so:graphics/glfw \
 		libpng.so:graphics/png
 
-USES=		compiler:c++11-lang pkgconfig scons
+USES=		compiler:c++11-lang pkgconfig scons gnome gl
 USE_GITHUB=	yes
 GH_ACCOUNT=	guillaumechereau
 USE_GNOME=	cairo gtk30
 USE_GL=		gl
 
 INSTALLS_ICONS=	yes
-MAKE_ARGS=	clang=1 debug=0
+MAKE_ARGS=	debug=0
+DESKTOP_ENTRIES="Goxel" "${COMMENT}" "${PORTNAME}" \
+	"${PORTNAME}" "Graphics;3DGraphics;" false
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
@@ -35,6 +33,5 @@ do-install:
 	${INSTALL_DATA} ${WRKSRC}/osx/goxel/goxel/Assets.xcassets/AppIcon.appiconset/${SZ}.png \
 		${STAGEDIR}${PREFIX}/share/icons/hicolor/${SZ}x${SZ}/apps/goxel.png
 .endfor
-	${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}
 
 .include <bsd.port.mk>

Modified: head/graphics/goxel/distinfo
==============================================================================
--- head/graphics/goxel/distinfo	Thu Jan  3 00:40:37 2019	(r489123)
+++ head/graphics/goxel/distinfo	Thu Jan  3 01:08:22 2019	(r489124)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1506893291
-SHA256 (guillaumechereau-goxel-v0.7.1-70-g193eded_GH0.tar.gz) = b5c4fea8029543f81dff4c73377f0ef6411f87e65463604a581e3bbc277e66cf
-SIZE (guillaumechereau-goxel-v0.7.1-70-g193eded_GH0.tar.gz) = 1441265
+TIMESTAMP = 1545486941
+SHA256 (guillaumechereau-goxel-v0.8.2_GH0.tar.gz) = 4f8297560e356cb69469e0a23bcb4e9c4e8549766a0466ffeaa0c9cfb7a04049
+SIZE (guillaumechereau-goxel-v0.8.2_GH0.tar.gz) = 3387515

Added: head/graphics/goxel/files/patch-SConstruct
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/goxel/files/patch-SConstruct	Thu Jan  3 01:08:22 2019	(r489124)
@@ -0,0 +1,35 @@
+--- SConstruct.orig	2018-12-22 14:00:12 UTC
++++ SConstruct
+@@ -28,15 +28,18 @@ clang = int(ARGUMENTS.get("clang", 0))
+ cycles = int(ARGUMENTS.get('cycles', 1))
+ sound = False
+ 
+-if os.environ.get('CC') == 'clang': clang = 1
++import subprocess
++if 'clang' in subprocess.check_output([os.environ.get('CC', 'cc'), '-v'],
++                                      stderr=subprocess.STDOUT):
++    clang = 1
++print 'clang', clang
+ if profile: debug = 0
+ 
+-env = Environment(ENV = os.environ)
++
++env = Environment(ENV = os.environ, CC = os.environ.get('CC', 'cc'),
++                  CXX = os.environ.get('CXX', 'c++'))
+ conf = env.Configure()
+ 
+-if clang:
+-    env.Replace(CC='clang', CXX='clang++')
+-
+ # Asan & Ubsan (need to come first).
+ # Cycles doesn't like libasan with clang, so we only use it on
+ # C code with clang.
+@@ -145,7 +148,7 @@ if cycles:
+     sources += glob.glob('ext_src/cycles/src/subd/*.cpp')
+ 
+     env.Append(CPPPATH=['ext_src/cycles/src'])
+-    env.Append(CPPPATH=['ext_src/cycles/third_party/atomic'])
++    env.Prepend(CPPPATH=['ext_src/cycles/third_party/atomic'])
+     env.Append(CPPFLAGS=[
+         '-DCYCLES_STD_UNORDERED_MAP',
+         '-DCCL_NAMESPACE_BEGIN=namespace ccl {',

Added: head/graphics/goxel/files/patch-ext__src_cycles_src_util_util__path.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/goxel/files/patch-ext__src_cycles_src_util_util__path.cpp	Thu Jan  3 01:08:22 2019	(r489124)
@@ -0,0 +1,13 @@
+--- ext_src/cycles/src/util/util_path.cpp.orig	2018-12-22 14:23:19 UTC
++++ ext_src/cycles/src/util/util_path.cpp
+@@ -38,6 +38,10 @@
+ #  include <shlwapi.h>
+ #endif
+ 
++#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
++#include <sys/sysctl.h>
++#endif
++
+ #include "util/util_map.h"
+ #include "util/util_windows.h"
+ 

Modified: head/graphics/goxel/pkg-plist
==============================================================================
--- head/graphics/goxel/pkg-plist	Thu Jan  3 00:40:37 2019	(r489123)
+++ head/graphics/goxel/pkg-plist	Thu Jan  3 01:08:22 2019	(r489124)
@@ -1,5 +1,4 @@
 bin/goxel
-share/applications/goxel.desktop
 share/icons/hicolor/32x32/apps/goxel.png
 share/icons/hicolor/64x64/apps/goxel.png
 share/icons/hicolor/256x256/apps/goxel.png



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901030108.x0318Mg4055556>