svn commit: r473695 - in head/graphics/opendx: . files
Stephen Montgomery-Smith
stephen at FreeBSD.org
Mon Jul 2 02:59:14 UTC 2018
Author: stephen
Date: Mon Jul 2 02:59:12 2018
New Revision: 473695
URL: https://svnweb.freebsd.org/changeset/ports/473695
Log:
- Patches so that it builds with clang60.
Added:
head/graphics/opendx/files/patch-src_uipp_dxuilib_EditorWindow.C (contents, props changed)
Modified:
head/graphics/opendx/Makefile
Modified: head/graphics/opendx/Makefile
==============================================================================
--- head/graphics/opendx/Makefile Mon Jul 2 02:51:57 2018 (r473694)
+++ head/graphics/opendx/Makefile Mon Jul 2 02:59:12 2018 (r473695)
@@ -16,8 +16,6 @@ LICENSE_NAME= IBM PUBLIC LICENSE - Open Visualization
LICENSE_FILE= ${WRKSRC}/LICENSE
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
-BROKEN_FreeBSD_12_amd64= fails to build: gmake[1]: *** No rule to make target 'Makefile'. Stop.
-
LIB_DEPENDS= libMagickWand-6.so:graphics/ImageMagick \
libtiff.so:graphics/tiff \
libcdf.so:science/cdf \
@@ -85,6 +83,14 @@ post-patch:
${WRKSRC}/src/uipp/java/server/Makefile.in
@${REINPLACE_CMD} -e 's|$$(ARCH)|@ARCH@|' \
${WRKSRC}/src/misc/Makefile.*
+ @${REINPLACE_CMD} -e 's/void exit (int);/[[noreturn]] void exit (int);/' \
+ ${WRKSRC}/configure
+ for f in `find ${WRKSRC} -name "*.bm"`; do \
+ if [ $${f%/*} != "${WRKSRC}/src/uipp/widgets" ]; then \
+ ${REINPLACE_CMD} -E 's/0x(..)/static_cast<char>(0x\1)/g' $$f; \
+ ${REINPLACE_CMD} -E 's/static unsigned char/static char/g' $$f; \
+ fi; \
+ done
post-install:
@${CP} ${FILESDIR}/pkg-message.in ${PKGMESSAGE}
Added: head/graphics/opendx/files/patch-src_uipp_dxuilib_EditorWindow.C
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/opendx/files/patch-src_uipp_dxuilib_EditorWindow.C Mon Jul 2 02:59:12 2018 (r473695)
@@ -0,0 +1,11 @@
+--- src/uipp/dxuilib/EditorWindow.C.orig 2018-07-02 02:13:46 UTC
++++ src/uipp/dxuilib/EditorWindow.C
+@@ -5997,7 +5997,7 @@ char msg[128];
+ //
+ const char *tmpdir = theDXApplication->getTmpDirectory();
+ int tmpdirlen = STRLEN(tmpdir);
+- if (!tmpdirlen) return FALSE;
++ if (!tmpdirlen) return (char*) FALSE;
+ if (tmpdir[tmpdirlen-1] == '/') {
+ sprintf(netfilename, "%sdx%d.net", tmpdir, getpid());
+ sprintf(cfgfilename, "%sdx%d.cfg", tmpdir, getpid());
More information about the svn-ports-all
mailing list