From cb9d5266ef6faefa9608155cf72f4fd3bea92ed1 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sat, 20 Feb 2010 18:21:26 +0100 Subject: [PATCH] new package: - add package cloog-ppl --- packages/toolchain/math/cloog-ppl/build | 37 +++++++++++++++++++ .../math/cloog-ppl/patches/use_ppl_0.11.diff | 24 ++++++++++++ packages/toolchain/math/cloog-ppl/unpack | 5 +++ packages/toolchain/math/cloog-ppl/url | 1 + 4 files changed, 67 insertions(+) create mode 100755 packages/toolchain/math/cloog-ppl/build create mode 100644 packages/toolchain/math/cloog-ppl/patches/use_ppl_0.11.diff create mode 100755 packages/toolchain/math/cloog-ppl/unpack create mode 100644 packages/toolchain/math/cloog-ppl/url diff --git a/packages/toolchain/math/cloog-ppl/build b/packages/toolchain/math/cloog-ppl/build new file mode 100755 index 0000000000..a17ce899e2 --- /dev/null +++ b/packages/toolchain/math/cloog-ppl/build @@ -0,0 +1,37 @@ +#!/bin/sh + +. config/options + +$SCRIPTS/install ccache +$SCRIPTS/build gmp +$SCRIPTS/build ppl + +setup_toolchain host + +cd $BUILD/$1* + +mkdir -p objdir +cd objdir + +LDFLAGS="-Wl,-rpath,$ROOT/$TOOLCHAIN/lib" \ +../configure --host=$HOST_NAME \ + --build=$HOST_NAME \ + --target=$TARGET_NAME \ + --prefix=$ROOT/$TOOLCHAIN \ + --disable-shared \ + --enable-static \ + --with-bits=gmp \ + --with-gmp="$ROOT/$TOOLCHAIN" \ + --with-ppl="$ROOT/$TOOLCHAIN" \ + +make libcloog.la + +mkdir -p $ROOT/$TOOLCHAIN/lib + cp -PR .libs/libcloog.a $ROOT/$TOOLCHAIN/lib + +mkdir -p $ROOT/$TOOLCHAIN/include/cloog + cp -PR include/cloog/*.h $ROOT/$TOOLCHAIN/include/cloog + +# use the follow if cloog-ppl is fixed for use with gmp-5.0 +# make +# make check # \ No newline at end of file diff --git a/packages/toolchain/math/cloog-ppl/patches/use_ppl_0.11.diff b/packages/toolchain/math/cloog-ppl/patches/use_ppl_0.11.diff new file mode 100644 index 0000000000..6508923662 --- /dev/null +++ b/packages/toolchain/math/cloog-ppl/patches/use_ppl_0.11.diff @@ -0,0 +1,24 @@ +diff -Naur cloog-ppl-0.15.8/configure cloog-ppl-0.15.8.patch/configure +--- cloog-ppl-0.15.8/configure 2010-02-11 19:05:30.000000000 +0100 ++++ cloog-ppl-0.15.8.patch/configure 2010-02-20 14:25:38.957509566 +0100 +@@ -12684,7 +12684,7 @@ + POLYHEDRAL_BACKEND=polylib + + ppl_major_version=0 +-ppl_minor_version=10 ++ppl_minor_version=11 + + + +diff -Naur cloog-ppl-0.15.8/configure.in cloog-ppl-0.15.8.patch/configure.in +--- cloog-ppl-0.15.8/configure.in 2010-02-11 19:05:31.000000000 +0100 ++++ cloog-ppl-0.15.8.patch/configure.in 2010-02-20 14:26:01.755539644 +0100 +@@ -311,7 +311,7 @@ + + dnl Checking for PPL + ppl_major_version=0 +-ppl_minor_version=10 ++ppl_minor_version=11 + AC_SUBST(PPL_CPPFLAGS) + AC_SUBST(PPL_LDFLAGS) + AC_SUBST(PPL_LIBS) diff --git a/packages/toolchain/math/cloog-ppl/unpack b/packages/toolchain/math/cloog-ppl/unpack new file mode 100755 index 0000000000..1f7c69c57e --- /dev/null +++ b/packages/toolchain/math/cloog-ppl/unpack @@ -0,0 +1,5 @@ +#!/bin/sh + +. config/options + +sed -i "/LD_LIBRARY_PATH=/d" $BUILD/$1*/configure diff --git a/packages/toolchain/math/cloog-ppl/url b/packages/toolchain/math/cloog-ppl/url new file mode 100644 index 0000000000..cf9a193570 --- /dev/null +++ b/packages/toolchain/math/cloog-ppl/url @@ -0,0 +1 @@ +ftp://gcc.gnu.org/pub/gcc/infrastructure/cloog-ppl-0.15.8.tar.gz