You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mxe/src/ossim.mk

37 lines
1.2 KiB

# 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