diff options
author | Rashad M <mohammedrashadkm@gmail.com> | 2015-09-25 14:25:47 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2015-09-25 14:25:47 (GMT) |
commit | 7167339f483f62d92c638d2a17d5865a99888d11 (patch) | |
tree | 962e5f9b457f028516c0ea6c6a7f38d358db0388 | |
parent | 89b0118fe45b012e812fe5ba95bcf3c92ab66006 (diff) | |
download | mxe-7167339f483f62d92c638d2a17d5865a99888d11.zip mxe-7167339f483f62d92c638d2a17d5865a99888d11.tar.gz mxe-7167339f483f62d92c638d2a17d5865a99888d11.tar.bz2 |
add package ossim
-rw-r--r-- | index.html | 4 | ||||
-rw-r--r-- | src/ossim.mk | 36 |
2 files changed, 40 insertions, 0 deletions
@@ -2047,6 +2047,10 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre> <td class="website"><a href="http://opus-codec.org/">opusfile</a></td> </tr> <tr> + <td class="package">ossim</td> + <td class="website"><a href="http://trac.osgeo.org/ossim">OSSIM</a></td> + </tr> + <tr> <td class="package">pango</td> <td class="website"><a href="http://www.pango.org/">Pango</a></td> </tr> diff --git a/src/ossim.mk b/src/ossim.mk new file mode 100644 index 0000000..5669048 --- /dev/null +++ b/src/ossim.mk @@ -0,0 +1,36 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := ossim +$(PKG)_IGNORE := +$(PKG)_VERSION := 1.8.18 +$(PKG)_CHECKSUM := 50a925a4304a5df4af19a60ee41201e26a62a125 +$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) +$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz +$(PKG)_URL := http://download.osgeo.org/ossim/source/$($(PKG)_SUBDIR)/$($(PKG)_FILE) +$(PKG)_DEPS := gcc zlib jpeg tiff proj libpng geos openthreads + +define $(PKG)_UPDATE + $(WGET) -q -O- 'http://download.osgeo.org/ossim/source/latest/' | \ + $(SED) -n 's,.*ossim-\([0-9][^>]*\)\.tar.*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + mkdir '$(1).build' + cd '$(1).build' && cmake \ + -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ + -DCMAKE_MODULE_PATH='$(1)/ossim_package_support/cmake/CMakeModules' \ + -DCMAKE_CXX_FLAGS:STRING='-DGEOS_INLINE=1' \ + -DBUILD_OSSIM_FREETYPE_SUPPORT:BOOL=OFF \ + '$(1)/ossim' + + $(MAKE) -C '$(1).build' -j '$(JOBS)' + + $(MAKE) -C '$(1).build' -j 1 install + +#remove application + mv $(PREFIX)/$(TARGET)/bin/ossim-info.exe $(PREFIX)/$(TARGET)/bin/test-ossim.exe + rm -f $(PREFIX)/$(TARGET)/bin/ossim-*.exe + +endef |