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

32 lines
1.1 KiB

# This file is part of MXE.
# See index.html for further information.
PKG := ossim
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.8.20
$(PKG)_CHECKSUM := a9148cbc7eebaed1d09d139e68c038592edcf74318ec2623f21494aa56879f52
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION)-1.tar.gz
$(PKG)_URL := http://download.osgeo.org/ossim/source/$($(PKG)_SUBDIR)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc freetype geos jpeg libpng openthreads proj tiff zlib
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' && '$(TARGET)-cmake' \
-DBUILD_SHARED_LIBS=$(CMAKE_SHARED_BOOL) \
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
-DPKG_CONFIG_EXECUTABLE='$(PREFIX)/bin/$(TARGET)-pkg-config' \
-DCMAKE_MODULE_PATH='$(1)/ossim_package_support/cmake/CMakeModules' \
-DBUILD_OSSIM_FREETYPE_SUPPORT=ON \
-DCMAKE_CXX_FLAGS='-DGEOS_INLINE=1' \
'$(1)/ossim'
$(MAKE) -C '$(1).build' -j '$(JOBS)' install VERBOSE=1
endef