mxe/src/proj.mk

34 lines
984 B
Makefile
Raw Normal View History

2010-01-16 22:02:02 +00:00
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
2008-11-09 01:43:34 +00:00
# proj
PKG := proj
$(PKG)_IGNORE :=
2012-03-24 15:14:38 +00:00
$(PKG)_VERSION := 4.8.0
$(PKG)_CHECKSUM := 5c8d6769a791c390c873fef92134bf20bb20e82a
$(PKG)_SUBDIR := proj-$($(PKG)_VERSION)
$(PKG)_FILE := proj-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://trac.osgeo.org/proj/
$(PKG)_URL := http://download.osgeo.org/proj/$($(PKG)_FILE)
$(PKG)_URL_2 := ftp://ftp.remotesensing.org/proj/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
2008-11-09 01:43:34 +00:00
define $(PKG)_UPDATE
wget -q -O- 'http://trac.osgeo.org/proj/' | \
2008-11-09 01:43:34 +00:00
$(SED) -n 's,.*proj-\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && autoconf
cd '$(1)' && aclocal
cd '$(1)' && automake
2008-11-09 01:43:34 +00:00
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--with-mutex
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install
2008-11-09 01:43:34 +00:00
endef