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

35 lines
1.2 KiB

# This file is part of MXE. See LICENSE.md for licensing information.
PKG := cloog
$(PKG)_WEBSITE := http://www.cloog.org/
$(PKG)_DESCR := CLooG Code Generator
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.18.1
$(PKG)_CHECKSUM := 02500a4edd14875f94fe84cbeda4290425cb0c1c2474c6f75d75a303d64b4196
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := http://www.bastoul.net/cloog/pages/download/$($(PKG)_FILE)
$(PKG)_URL_2 := ftp://gcc.gnu.org/pub/gcc/infrastructure/$($(PKG)_FILE)
$(PKG)_TARGETS := $(BUILD) $(MXE_TARGETS)
$(PKG)_DEPS := gcc gmp isl
$(PKG)_DEPS_$(BUILD) := gmp isl
# stick to tested versions from gcc
# after gcc4 series, switch to normal updates and bundled isl
define $(PKG)_UPDATE
$(WGET) -q -O- 'ftp://gcc.gnu.org/pub/gcc/infrastructure/' | \
$(SED) -n 's,.*cloog-\([0-9][^>]*\)\.tar.*,\1,p' | \
$(SORT) -V |
tail -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
--with-gmp-prefix='$(PREFIX)/$(TARGET)' \
--with-isl-prefix='$(PREFIX)/$(TARGET)'
$(MAKE) -C '$(1)' -j '$(JOBS)' $(if $(BUILD_SHARED),LDFLAGS=-no-undefined)
$(MAKE) -C '$(1)' -j '$(JOBS)' install
endef