Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Dec 2018 21:49:39 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r487093 - in head/math/geogram: . files
Message-ID:  <201812092149.wB9LndRe032418@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sun Dec  9 21:49:39 2018
New Revision: 487093
URL: https://svnweb.freebsd.org/changeset/ports/487093

Log:
  math/geogram: Change to shared libraries

Added:
  head/math/geogram/files/patch-src_lib_geogram_NL_nl__private.h   (contents, props changed)
Modified:
  head/math/geogram/Makefile
  head/math/geogram/pkg-plist

Modified: head/math/geogram/Makefile
==============================================================================
--- head/math/geogram/Makefile	Sun Dec  9 21:37:20 2018	(r487092)
+++ head/math/geogram/Makefile	Sun Dec  9 21:49:39 2018	(r487093)
@@ -2,6 +2,7 @@
 
 PORTNAME=	geogram
 DISTVERSION=	1.6.9
+PORTREVISION=	1
 CATEGORIES=	math
 MASTER_SITES=	https://gforge.inria.fr/frs/download.php/file/37779/
 DISTNAME=	${PORTNAME}_${DISTVERSION}
@@ -17,14 +18,13 @@ LIB_DEPENDS=	libglfw.so:graphics/glfw
 USES=		cmake:outsource gl localbase:ldflags
 USE_XORG=	x11 xcursor xi xinerama xrandr xxf86vm
 USE_GL=		gl glu
+USE_LDCONFIG=	yes
 
-CMAKE_ON=	GEOGRAM_USE_SYSTEM_GLFW3
+CMAKE_ON=	GEOGRAM_USE_SYSTEM_GLFW3 VORPALINE_BUILD_DYNAMIC
 CMAKE_ARGS=	-DVORPALINE_PLATFORM:STRING=FreeBSD
 LDFLAGS+=	-pthread
 
 post-stage:
 	@${RMDIR} ${STAGEDIR}${PREFIX}/include/geogram1/geogram_gfx/glup_viewer/colormaps
-
-# geogram installs static libraries. I couldn't make it build with shared libraries due to link errors. I asked Bruno.Levy@inria.fr to fix this (via e-mail).
 
 .include <bsd.port.mk>

Added: head/math/geogram/files/patch-src_lib_geogram_NL_nl__private.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/geogram/files/patch-src_lib_geogram_NL_nl__private.h	Sun Dec  9 21:49:39 2018	(r487093)
@@ -0,0 +1,11 @@
+--- src/lib/geogram/NL/nl_private.h.orig	2018-12-09 21:38:58 UTC
++++ src/lib/geogram/NL/nl_private.h
+@@ -67,7 +67,7 @@
+ #define NL_OS_APPLE
+ #endif
+ 
+-#if defined(__linux__) || defined(__ANDROID__) || defined(NL_OS_APPLE)
++#if defined(__linux__) || defined(__FreeBSD__) || defined(__ANDROID__) || defined(NL_OS_APPLE)
+ /**
+  * \brief Defined if compiled on a Unix-like platform.
+  */

Modified: head/math/geogram/pkg-plist
==============================================================================
--- head/math/geogram/pkg-plist	Sun Dec  9 21:37:20 2018	(r487092)
+++ head/math/geogram/pkg-plist	Sun Dec  9 21:49:39 2018	(r487093)
@@ -305,7 +305,11 @@ include/geogram1/geogram_gfx/third_party/imgui_fonts/r
 include/geogram1/geogram_gfx/third_party/imgui_lua_bindings/imgui_iterator.h
 include/geogram1/geogram_gfx/third_party/quicktext/glQuickText.h
 lib/cmake/modules/FindGeogram.cmake
-lib/libgeogram.a
-lib/libgeogram_gfx.a
+lib/libgeogram.so
+lib/libgeogram.so.1
+lib/libgeogram.so.1.6.9
+lib/libgeogram_gfx.so
+lib/libgeogram_gfx.so.1
+lib/libgeogram_gfx.so.1.6.9
 libdata/pkgconfig/geogram1.pc
 libdata/pkgconfig/geogram_gfx1.pc



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