mxe/src/proj.mk

29 lines
891 B
Makefile
Raw Permalink Normal View History

# This file is part of MXE. See LICENSE.md for licensing information.
2008-11-09 01:43:34 +00:00
PKG := proj
2017-03-05 03:41:39 +00:00
$(PKG)_WEBSITE := https://trac.osgeo.org/proj/
$(PKG)_IGNORE :=
2018-10-08 22:04:04 +01:00
$(PKG)_VERSION := 5.1.0
$(PKG)_CHECKSUM := 6b1379a53317d9b5b8c723c1dc7bf2e3a8eb22ceb46b8807a1ce48ef65685bb3
$(PKG)_SUBDIR := proj-$($(PKG)_VERSION)
$(PKG)_FILE := proj-$($(PKG)_VERSION).tar.gz
2018-07-14 00:02:08 +01:00
$(PKG)_URL := https://download.osgeo.org/proj/$($(PKG)_FILE)
$(PKG)_DEPS := cc
2008-11-09 01:43:34 +00:00
define $(PKG)_UPDATE
2018-07-14 00:02:08 +01:00
$(WGET) -q -O- 'https://proj4.org/download.html' | \
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)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
--with-mutex
$(MAKE) -C '$(1)' -j '$(JOBS)'
# remove header which is not installed since 4.8.0
rm -f '$(PREFIX)/$(TARGET)'/include/projects.h
$(MAKE) -C '$(1)' -j 1 install
2008-11-09 01:43:34 +00:00
endef