From 200343fcaabe01da8a3cf3ec2d4c5e62cc19185a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCllenhaupt?= Date: Tue, 8 Aug 2017 16:44:19 +0200 Subject: oce: update --- src/oce-1-fixes.patch | 24 ++++++++++++++++++++++++ src/oce.mk | 28 +++++++++------------------- 2 files changed, 33 insertions(+), 19 deletions(-) create mode 100644 src/oce-1-fixes.patch diff --git a/src/oce-1-fixes.patch b/src/oce-1-fixes.patch new file mode 100644 index 0000000..96f9892 --- /dev/null +++ b/src/oce-1-fixes.patch @@ -0,0 +1,24 @@ +This file is part of MXE. See LICENSE.md for licensing information. + +Taken from https://github.com/tpaviot/oce/pull/673 + +--- a/src/BRepBuilderAPI/BRepBuilderAPI_Copy.cxx ++++ b/src/BRepBuilderAPI/BRepBuilderAPI_Copy.cxx +@@ -25,8 +25,6 @@ + #include + #include + +-namespace { +- + //! Tool class implementing necessary functionality for copying geometry + class BRepBuilderAPI_Copy_Modification : public BRepTools_Modification + { +@@ -147,8 +145,6 @@ DEFINE_STANDARD_HANDLE(BRepBuilderAPI_Copy_Modification, BRepTools_Modification) + IMPLEMENT_STANDARD_HANDLE(BRepBuilderAPI_Copy_Modification, BRepTools_Modification) + IMPLEMENT_STANDARD_RTTIEXT(BRepBuilderAPI_Copy_Modification, BRepTools_Modification) + +-} // anonymous namespace +- + //======================================================================= + //function : BRepBuilderAPI_Copy + //purpose : diff --git a/src/oce.mk b/src/oce.mk index dda13ff..bc63277 100644 --- a/src/oce.mk +++ b/src/oce.mk @@ -4,34 +4,24 @@ PKG := oce $(PKG)_WEBSITE := https://github.com/tpaviot/oce $(PKG)_DESCR := Open CASCADE Community Edition $(PKG)_IGNORE := -$(PKG)_VERSION := 0.17.2 -$(PKG)_CHECKSUM := 8d9995360cd531cbd4a7aa4ca5ed969f08ec7c7a37755e2f3d4ef832c1b2f56e -$(PKG)_SUBDIR := $(PKG)-OCE-$($(PKG)_VERSION) -$(PKG)_FILE := OCE-$($(PKG)_VERSION).tar.gz -$(PKG)_URL := https://github.com/tpaviot/oce/archive/$($(PKG)_FILE) +$(PKG)_VERSION := 0.18.1 +$(PKG)_CHECKSUM := 1acf5da4bffa3592ca9f3535af9b927b79fcfeadcb81e9963e89aec192929a6c +$(PKG)_GH_CONF := tpaviot/oce,OCE- $(PKG)_DEPS := gcc freetype -define $(PKG)_UPDATE - $(WGET) -q -O- 'https://github.com/tpaviot/oce/releases' | \ - $(SED) -n 's,.*oce/archive/OCE-\([0-9][^"]*\)\.tar\.gz.*,\1,p' | \ - $(SORT) -V | \ - tail -1 -endef - define $(PKG)_BUILD - mkdir '$(1).build' - cd '$(1).build' && '$(TARGET)-cmake' '$(1)' \ - -DOCE_BUILD_SHARED_LIB=$(if $(BUILD_STATIC),FALSE,TRUE) \ + cd '$(BUILD_DIR)' && '$(TARGET)-cmake' '$(SOURCE_DIR)' \ + -DOCE_BUILD_SHARED_LIB=$(CMAKE_SHARED_BOOL) \ -DOCE_INSTALL_PREFIX=$(PREFIX)/$(TARGET) \ -DOCE_INSTALL_BIN_DIR=$(PREFIX)/$(TARGET)/bin \ -DOCE_INSTALL_LIB_DIR=$(PREFIX)/$(TARGET)/lib \ -DOCE_INSTALL_CMAKE_DATA_DIR=$(PREFIX)/$(TARGET)/lib/cmake/OCE \ -DOCE_AUTOINSTALL_DEPENDENT_LIBS=OFF - $(MAKE) -C '$(1).build' -j '$(JOBS)' VERBOSE=1 - $(MAKE) -C '$(1).build' -j 1 install + $(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' VERBOSE=1 + $(MAKE) -C '$(BUILD_DIR)' -j 1 install - cd '$(1)/examples/find_package_oce' && '$(TARGET)-cmake' . - $(MAKE) -C '$(1)/examples/find_package_oce' + cd '$(SOURCE_DIR)/examples/find_package_oce' && '$(TARGET)-cmake' . + $(MAKE) -C '$(SOURCE_DIR)/examples/find_package_oce' endef -- cgit v0.12