From 97266d6208fcc4ddd3f27bfa4f093461e6120ca0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCllenhaupt?= Date: Tue, 26 Aug 2014 10:40:56 +0200 Subject: new package: oce --- index.html | 4 ++++ src/oce.mk | 30 ++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 src/oce.mk diff --git a/index.html b/index.html index d13dd7e..832d18b 100644 --- a/index.html +++ b/index.html @@ -1950,6 +1950,10 @@ local-pkg-list: $(LOCAL_PKG_LIST) xml-light + oce + Open CASCADE Community Edition + + ogg OGG diff --git a/src/oce.mk b/src/oce.mk new file mode 100644 index 0000000..bea2ff8 --- /dev/null +++ b/src/oce.mk @@ -0,0 +1,30 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := oce +$(PKG)_IGNORE := +$(PKG)_VERSION := 0.16 +$(PKG)_CHECKSUM := c3882249e1afc3c6a170e8e31a45e25d4be3e3b2 +$(PKG)_SUBDIR := $(PKG)-OCE-$($(PKG)_VERSION) +$(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz +$(PKG)_URL := https://codeload.github.com/tpaviot/$(PKG)/tar.gz/OCE-$($(PKG)_VERSION) +$(PKG)_DEPS := gcc freetype + +define $(PKG)_UPDATE +endef + +define $(PKG)_BUILD + cd '$(1)' && cmake . \ + -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ + -DOCE_BUILD_SHARED_LIB=$(if $(BUILD_STATIC),FALSE,TRUE) \ + -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_DISABLE_X11=TRUE + $(MAKE) -C '$(1)' -j '$(JOBS)' install VERBOSE=1 + + cd '$(1)/examples/find_package_oce' && cmake . -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' + $(MAKE) -C '$(1)/examples/find_package_oce' + #computeSurface.exe test-jpeg.exe +endef -- cgit v0.12