summaryrefslogtreecommitdiffstats
path: root/src/ossim.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/ossim.mk')
-rw-r--r--src/ossim.mk36
1 files changed, 36 insertions, 0 deletions
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