diff options
author | Timothy Gu <timothygu99@gmail.com> | 2014-09-09 01:21:54 (GMT) |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2014-09-09 01:21:54 (GMT) |
commit | 9abbf13aaef4fd5c72110c30df29bd5b11a845fd (patch) | |
tree | 172be0957fd8a74fb9a583a59387039918862c2e /src | |
parent | f110fe37c110aa37aab41ad4414660c4e6634df3 (diff) | |
parent | b44daf76dc81d590d4527b5098d972706a82bd3d (diff) | |
download | mxe-9abbf13aaef4fd5c72110c30df29bd5b11a845fd.zip mxe-9abbf13aaef4fd5c72110c30df29bd5b11a845fd.tar.gz mxe-9abbf13aaef4fd5c72110c30df29bd5b11a845fd.tar.bz2 |
Merge pull request #503 from sikoragmbh/oce_package
Package request: OCE
Diffstat (limited to 'src')
-rw-r--r-- | src/oce.mk | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/oce.mk b/src/oce.mk new file mode 100644 index 0000000..25f06a4 --- /dev/null +++ b/src/oce.mk @@ -0,0 +1,32 @@ +# 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 + echo 'TODO: write update script for oce' >&2; + echo $(oce_VERSION) +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 \ + -DFREETYPE_INCLUDE_DIRS=$(PREFIX)/$(TARGET)/include/freetype2 + + $(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' +endef |