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/proj.mk

29 lines
891 B

# This file is part of MXE. See LICENSE.md for licensing information.
PKG := proj
$(PKG)_WEBSITE := https://trac.osgeo.org/proj/
$(PKG)_IGNORE :=
$(PKG)_VERSION := 5.1.0
$(PKG)_CHECKSUM := 6b1379a53317d9b5b8c723c1dc7bf2e3a8eb22ceb46b8807a1ce48ef65685bb3
$(PKG)_SUBDIR := proj-$($(PKG)_VERSION)
$(PKG)_FILE := proj-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := https://download.osgeo.org/proj/$($(PKG)_FILE)
$(PKG)_DEPS := cc
define $(PKG)_UPDATE
$(WGET) -q -O- 'https://proj4.org/download.html' | \
$(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
endef