From aadc5cea1ea92b9df0c2961a4d31c6561047bba6 Mon Sep 17 00:00:00 2001 From: Tony Theodore Date: Sat, 19 Oct 2013 18:12:53 +1100 Subject: add packages cloog isl and use for gcc optimisations --- index.html | 16 ++++++++++++++++ src/cloog.mk | 31 +++++++++++++++++++++++++++++++ src/gcc-cloog.mk | 28 ++++++++++++++++++++++++++++ src/gcc-isl.mk | 27 +++++++++++++++++++++++++++ src/gcc.mk | 4 +++- src/isl.mk | 30 ++++++++++++++++++++++++++++++ 6 files changed, 135 insertions(+), 1 deletion(-) create mode 100644 src/cloog.mk create mode 100644 src/gcc-cloog.mk create mode 100644 src/gcc-isl.mk create mode 100644 src/isl.mk diff --git a/index.html b/index.html index cdf6803..e9e798e 100644 --- a/index.html +++ b/index.html @@ -1183,6 +1183,10 @@ local-pkg-list: $(LOCAL_PKG_LIST) cgal + cloog + CLooG Code Generator + + cmake cmake @@ -1295,10 +1299,18 @@ local-pkg-list: $(LOCAL_PKG_LIST) GCC + gcc-cloog + CLooG for GCC + + gcc-gmp GMP for GCC + gcc-isl + ISL for GCC + + gcc-mpc MPC for GCC @@ -1451,6 +1463,10 @@ local-pkg-list: $(LOCAL_PKG_LIST) ImageMagick + isl + Integer Set Library + + itk Insight Segmentation and Registration Toolkit (ITK) diff --git a/src/cloog.mk b/src/cloog.mk new file mode 100644 index 0000000..5efa132 --- /dev/null +++ b/src/cloog.mk @@ -0,0 +1,31 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := cloog +$(PKG)_IGNORE := +$(PKG)_VERSION := 0.18.0 +$(PKG)_CHECKSUM := 85f620a26aabf6a934c44ca40a9799af0952f863 +$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) +$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz +$(PKG)_URL := ftp://gcc.gnu.org/pub/gcc/infrastructure/$($(PKG)_FILE) +$(PKG)_DEPS := gcc gmp isl + +# stick to tested versions from gcc +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 \ + --host='$(TARGET)' \ + --enable-static \ + --disable-shared \ + --prefix='$(PREFIX)/$(TARGET)' \ + --with-gmp-prefix='$(PREFIX)/$(TARGET)' \ + --with-isl-prefix='$(PREFIX)/$(TARGET)' + $(MAKE) -C '$(1)' -j '$(JOBS)' + $(MAKE) -C '$(1)' -j '$(JOBS)' install +endef diff --git a/src/gcc-cloog.mk b/src/gcc-cloog.mk new file mode 100644 index 0000000..513cbeb --- /dev/null +++ b/src/gcc-cloog.mk @@ -0,0 +1,28 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := gcc-cloog +$(PKG)_IGNORE = $(cloog_IGNORE) +$(PKG)_VERSION = $(cloog_VERSION) +$(PKG)_CHECKSUM = $(cloog_CHECKSUM) +$(PKG)_SUBDIR = $(cloog_SUBDIR) +$(PKG)_FILE = $(cloog_FILE) +$(PKG)_URL = $(cloog_URL) +$(PKG)_URL_2 = $(cloog_URL_2) +$(PKG)_DEPS := gcc-gmp gcc-isl + +define $(PKG)_UPDATE + echo $(cloog_VERSION) +endef + +define $(PKG)_BUILD + mkdir '$(1).build' + cd '$(1).build' && '$(1)/configure' \ + --prefix='$(PREFIX)' \ + --with-gmp-prefix='$(PREFIX)' \ + --with-isl-prefix='$(PREFIX)' + $(MAKE) -C '$(1).build' -j '$(JOBS)' + $(MAKE) -C '$(1).build' -j 1 install +endef + +$(PKG)_BUILD_$(BUILD) = diff --git a/src/gcc-isl.mk b/src/gcc-isl.mk new file mode 100644 index 0000000..3a46a18 --- /dev/null +++ b/src/gcc-isl.mk @@ -0,0 +1,27 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := gcc-isl +$(PKG)_IGNORE = $(isl_IGNORE) +$(PKG)_VERSION = $(isl_VERSION) +$(PKG)_CHECKSUM = $(isl_CHECKSUM) +$(PKG)_SUBDIR = $(isl_SUBDIR) +$(PKG)_FILE = $(isl_FILE) +$(PKG)_URL = $(isl_URL) +$(PKG)_URL_2 = $(isl_URL_2) +$(PKG)_DEPS := gcc-gmp + +define $(PKG)_UPDATE + echo $(isl_VERSION) +endef + +define $(PKG)_BUILD + mkdir '$(1).build' + cd '$(1).build' && '$(1)/configure' \ + --prefix='$(PREFIX)' \ + --with-gmp-prefix='$(PREFIX)' + $(MAKE) -C '$(1).build' -j '$(JOBS)' + $(MAKE) -C '$(1).build' -j 1 install +endef + +$(PKG)_BUILD_$(BUILD) = diff --git a/src/gcc.mk b/src/gcc.mk index fdb4410..2d467d4 100644 --- a/src/gcc.mk +++ b/src/gcc.mk @@ -9,7 +9,7 @@ $(PKG)_SUBDIR := gcc-$($(PKG)_VERSION) $(PKG)_FILE := gcc-$($(PKG)_VERSION).tar.bz2 $(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/gcc/gcc-$($(PKG)_VERSION)/$($(PKG)_FILE) $(PKG)_URL_2 := ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-$($(PKG)_VERSION)/$($(PKG)_FILE) -$(PKG)_DEPS := binutils gcc-gmp gcc-mpc gcc-mpfr +$(PKG)_DEPS := binutils gcc-cloog gcc-gmp gcc-isl gcc-mpc gcc-mpfr $(PKG)_DEPS_i686-pc-mingw32 := mingwrt w32api $(PKG)_DEPS_i686-w64-mingw32 := mingw-w64 @@ -43,7 +43,9 @@ define $(PKG)_CONFIGURE --enable-threads=win32 \ --disable-libgomp \ --disable-libmudflap \ + --with-cloog='$(PREFIX)' \ --with-gmp='$(PREFIX)' \ + --with-isl='$(PREFIX)' \ --with-mpc='$(PREFIX)' \ --with-mpfr='$(PREFIX)' \ $(shell [ `uname -s` == Darwin ] && echo "LDFLAGS='-Wl,-no_pie'") diff --git a/src/isl.mk b/src/isl.mk new file mode 100644 index 0000000..0d3a47f --- /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.11.1 +$(PKG)_CHECKSUM := d7936929c3937e03f09b64c3c54e49422fa8ddb3 +$(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 -- cgit v0.12