mxe/src/ossim.mk

35 lines
1.3 KiB
Makefile
Raw Normal View History

2015-09-25 15:25:47 +01:00
# This file is part of MXE.
# See index.html for further information.
PKG := ossim
$(PKG)_IGNORE :=
2015-12-02 16:00:43 +00:00
$(PKG)_VERSION := 1.8.20
$(PKG)_CHECKSUM := a9148cbc7eebaed1d09d139e68c038592edcf74318ec2623f21494aa56879f52
2015-12-04 05:03:37 +00:00
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)-1
2015-12-02 16:00:43 +00:00
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION)-1.tar.gz
2015-12-04 05:03:37 +00:00
$(PKG)_URL := http://download.osgeo.org/ossim/source/$(PKG)-$($(PKG)_VERSION)/$($(PKG)_FILE)
2015-12-02 16:00:43 +00:00
$(PKG)_DEPS := gcc freetype geos jpeg libpng openthreads proj tiff zlib
2015-09-25 15:25:47 +01:00
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'
2015-12-02 16:00:43 +00:00
cd '$(1).build' && '$(TARGET)-cmake' \
-DBUILD_SHARED_LIBS=$(CMAKE_SHARED_BOOL) \
2015-12-02 16:00:43 +00:00
-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 \
2015-12-04 05:03:37 +00:00
-DBUILD_OSSIM_APPS=OFF \
-DBUILD_OSSIM_CURL_APPS=OFF \
-DBUILD_OSSIM_TEST_APPS=OFF \
2015-12-02 16:00:43 +00:00
-DCMAKE_CXX_FLAGS='-DGEOS_INLINE=1' \
2015-09-25 15:25:47 +01:00
'$(1)/ossim'
2015-12-02 16:00:43 +00:00
$(MAKE) -C '$(1).build' -j '$(JOBS)' install VERBOSE=1
2015-09-25 15:25:47 +01:00
endef