summaryrefslogtreecommitdiffstats
path: root/src/isl.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/isl.mk')
-rw-r--r--src/isl.mk30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/isl.mk b/src/isl.mk
new file mode 100644
index 0000000..2b4cea4
--- /dev/null
+++ b/src/isl.mk
@@ -0,0 +1,30 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := isl
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 0.12.2
+$(PKG)_CHECKSUM := ca98a91e35fb3ded10d080342065919764d6f928
+$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
+$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
+$(PKG)_URL := ftp://gcc.gnu.org/pub/gcc/infrastructure/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc gmp
+
+# stick to tested versions from gcc
+define $(PKG)_UPDATE
+ $(WGET) -q -O- 'ftp://gcc.gnu.org/pub/gcc/infrastructure/' | \
+ $(SED) -n 's,.*isl-\([0-9][^>]*\)\.tar.*,\1,p' | \
+ $(SORT) -V |
+ tail -1
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)' && ./configure \
+ --host='$(TARGET)' \
+ --enable-static \
+ --disable-shared \
+ --prefix='$(PREFIX)/$(TARGET)' \
+ --with-gmp-prefix='$(PREFIX)/$(TARGET)'
+ $(MAKE) -C '$(1)' -j '$(JOBS)'
+ $(MAKE) -C '$(1)' -j '$(JOBS)' install
+endef