svn commit: r534965 - in head/devel/libsavitar: . files
Diane Bruce
db at FreeBSD.org
Mon May 11 23:39:45 UTC 2020
Author: db
Date: Mon May 11 23:39:43 2020
New Revision: 534965
URL: https://svnweb.freebsd.org/changeset/ports/534965
Log:
- pugixml-1.10 conflicts with libSavitar-4.5.0 on
/usr/local/lib/cmake/pugixml/pugixml-config-release.cmake [1]
- I had a TODO in original Makefile to rewrite to use our system pugixml [2]
[1] maciej at pasternacki.net
[2] db
PR: ports/246316
Added:
head/devel/libsavitar/files/
head/devel/libsavitar/files/patch-CMakeLists.txt (contents, props changed)
head/devel/libsavitar/files/patch-src_MeshData.cpp (contents, props changed)
head/devel/libsavitar/files/patch-src_Namespace.cpp (contents, props changed)
head/devel/libsavitar/files/patch-src_SceneNode.cpp (contents, props changed)
Modified:
head/devel/libsavitar/Makefile
head/devel/libsavitar/pkg-plist (contents, props changed)
Modified: head/devel/libsavitar/Makefile
==============================================================================
--- head/devel/libsavitar/Makefile Mon May 11 23:21:52 2020 (r534964)
+++ head/devel/libsavitar/Makefile Mon May 11 23:39:43 2020 (r534965)
@@ -2,6 +2,7 @@
PORTNAME= libSavitar
DISTVERSION= 4.5.0
+PORTREVISION= 1
CATEGORIES= devel cad
DIST_SUBDIR= Ultimaker
@@ -12,19 +13,15 @@ LICENSE= LGPL3
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sip>0:devel/py-sip@${PY_FLAVOR}
+LIB_DEPENDS= libpugixml.so:textproc/pugixml
USES= cmake compiler:c++11-lang python:3.4+
USE_GITHUB= yes
GH_ACCOUNT= Ultimaker
+USE_GITHUB= yes
GH_TAGNAME= 96eba0e
USE_LDCONFIG= yes
-
-# need this hack so as not to conflict with pugixml
-# XXX TODO rework port to use pugixml instead
-post-install:
- ${RM} ${STAGEDIR}${PREFIX}/include/pugiconfig.hpp
- ${RM} ${STAGEDIR}${PREFIX}/include/pugixml.hpp
- ${RM} ${STAGEDIR}${PREFIX}/lib/cmake/pugixml/pugixml-config.cmake
- ${RM} ${STAGEDIR}${PREFIX}/lib/libpugixml.a
+CFLAGS+= "-I${LOCALBASE}/include"
+LDFLAGS+= "-L${LOCALBASE}/lib"
.include <bsd.port.mk>
Added: head/devel/libsavitar/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libsavitar/files/patch-CMakeLists.txt Mon May 11 23:39:43 2020 (r534965)
@@ -0,0 +1,11 @@
+--- CMakeLists.txt.orig 2020-05-11 21:56:56 UTC
++++ CMakeLists.txt
+@@ -15,7 +15,7 @@ if(BUILD_TESTS)
+ find_package(Threads QUIET)
+ endif()
+
+-add_subdirectory(pugixml)
++#add_subdirectory(pugixml)
+
+ if(BUILD_PYTHON)
+ list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
Added: head/devel/libsavitar/files/patch-src_MeshData.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libsavitar/files/patch-src_MeshData.cpp Mon May 11 23:39:43 2020 (r534965)
@@ -0,0 +1,11 @@
+--- src/MeshData.cpp.orig 2020-05-11 21:53:20 UTC
++++ src/MeshData.cpp
+@@ -17,7 +17,7 @@
+ */
+
+ #include "MeshData.h"
+-#include "../pugixml/src/pugixml.hpp"
++#include <pugixml.hpp>
+ #include <cstring>
+ #include <iostream>
+ #include <stdexcept> //For std::runtime_error.
Added: head/devel/libsavitar/files/patch-src_Namespace.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libsavitar/files/patch-src_Namespace.cpp Mon May 11 23:39:43 2020 (r534965)
@@ -0,0 +1,11 @@
+--- src/Namespace.cpp.orig 2020-05-11 21:53:27 UTC
++++ src/Namespace.cpp
+@@ -3,7 +3,7 @@
+
+ #include "Namespace.h"
+
+-#include "../pugixml/src/pugixml.hpp"
++#include <pugixml.hpp>
+
+ namespace xml_namespace
+ {
Added: head/devel/libsavitar/files/patch-src_SceneNode.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libsavitar/files/patch-src_SceneNode.cpp Mon May 11 23:39:43 2020 (r534965)
@@ -0,0 +1,11 @@
+--- src/SceneNode.cpp.orig 2020-05-11 21:53:40 UTC
++++ src/SceneNode.cpp
+@@ -18,7 +18,7 @@
+
+ #include "SceneNode.h"
+ #include "Namespace.h"
+-#include "../pugixml/src/pugixml.hpp"
++#include <pugixml.hpp>
+ #include <iostream>
+ using namespace Savitar;
+
Modified: head/devel/libsavitar/pkg-plist
==============================================================================
--- head/devel/libsavitar/pkg-plist Mon May 11 23:21:52 2020 (r534964)
+++ head/devel/libsavitar/pkg-plist Mon May 11 23:39:43 2020 (r534965)
@@ -11,7 +11,6 @@ lib/cmake/Savitar/Savitar-targets-%%CMAKE_BUILD_TYPE%%
lib/cmake/Savitar/Savitar-targets.cmake
lib/cmake/Savitar/SavitarConfig.cmake
lib/cmake/Savitar/SavitarConfigVersion.cmake
-lib/cmake/pugixml/pugixml-config-%%CMAKE_BUILD_TYPE%%.cmake
lib/libSavitar.so
lib/libSavitar.so.0
lib/libSavitar.so.0.1.1
More information about the svn-ports-all
mailing list