POPT="popt-1.16"
PORTAUDIO="pa_stable_v19_20111121"
PORTMAP="portmap-6.0"
-PPL="ppl-0.12.1"
PROCMAIL="procmail-3.22"
PROCPS="procps-3.2.8"
PSMISC="psmisc-22.17"
--with-gmp=/cross-tools \
--with-mpfr=/cross-tools"
-CPPFLAGS="-I/cross-tools/include" \
- ipkg ${PPL} "\
- --enable-shared \
- --disable-static \
- --enable-interfaces=c,cxx \
- --disable-optimization \
- --with-gmp=/cross-tools"
ipkg ${CLOOG} "\
--enable-shared \
--disable-static \
fpkg -m gnu ${GMP}
fpkg -m gnu ${MPFR}
fpkg -e "tar.gz" ${MPC} "http://www.multiprecision.org/mpc/download"
-fpkg -s "$(get_pkg_ver ${PPL})" ${PPL} \
- "http://bugseng.com/products/ppl/download/ftp/releases"
fpkg -e "tar.gz" ${CLOOG} "http://www.bastoul.net/cloog/pages/download"
fpkg -e "tar.bz2" -m gnu ${BINUTILS}
fpkg -m gnu -s "gcc/${GCC}" ${GCC}
+++ /dev/null
-Module: ppl/ppl
-Branch: master
-Commit: 9f843aecc23981aec6ed1eaa8be06e6786a47f0d
-URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=9f843aecc23981aec6ed1eaa8be06e6786a47f0d
-
-Author: Roberto Bagnara <bagnara at cs.unipr.it>
-Date: Wed Dec 19 08:42:19 2012 +0100
-
-GMP version 5.1.0 (and, presumably, later versions) defines std::numeric_limits.
-
----
-
- src/mp_std_bits.cc | 6 ++++++
- src/mp_std_bits.defs.hh | 6 ++++++
- 2 files changed, 12 insertions(+), 0 deletions(-)
-
-diff --git a/src/mp_std_bits.cc b/src/mp_std_bits.cc
-index c8da535..918b9af 100644
---- a/src/mp_std_bits.cc
-+++ b/src/mp_std_bits.cc
-@@ -25,6 +25,9 @@ site: http://bugseng.com/products/ppl/ . */
- #include "ppl-config.h"
- #include "mp_std_bits_defs.hh"
-
-+#if __GNU_MP_VERSION < 5 \
-+ || (__GNU_MP_VERSION == 5 && __GNU_MP_VERSION_MINOR < 1)
-+
- const bool std::numeric_limits<mpz_class>::is_specialized;
- const int std::numeric_limits<mpz_class>::digits;
- const int std::numeric_limits<mpz_class>::digits10;
-@@ -70,3 +73,6 @@ const bool std::numeric_limits<mpq_class>::is_modulo;
- const bool std::numeric_limits<mpq_class>::traps;
- const bool std::numeric_limits<mpq_class>::tininess_before;
- const std::float_round_style std::numeric_limits<mpq_class>::round_style;
-+
-+#endif // __GNU_MP_VERSION < 5
-+ // || (__GNU_MP_VERSION == 5 && __GNU_MP_VERSION_MINOR < 1)
-diff --git a/src/mp_std_bits.defs.hh b/src/mp_std_bits.defs.hh
-index f71595a..0d078ec 100644 (file)
---- a/src/mp_std_bits.defs.hh
-+++ b/src/mp_std_bits.defs.hh
-@@ -38,6 +38,9 @@
- #endif // defined(PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS)
- void swap(mpq_class& x, mpq_class& y);
-
-+#if __GNU_MP_VERSION < 5 \
-+ || (__GNU_MP_VERSION == 5 && __GNU_MP_VERSION_MINOR < 1)
-+
- namespace std {
-
- #ifdef PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS
-@@ -164,6 +167,9 @@
-
- } // namespace std
-
-+#endif // __GNU_MP_VERSION < 5
-+ // || (__GNU_MP_VERSION == 5 && __GNU_MP_VERSION_MINOR < 1)
-+
- #include "mp_std_bits.inlines.hh"
-
- #endif // !defined(PPL_mp_std_bits_defs_hh)
--disable-nls \
--with-mpfr=/cross-tools \
--with-gmp=/cross-tools \
- --with-ppl=/cross-tools \
--with-cloog=/cross-tools \
--enable-cloog-backend=isl \
--disable-multilib"
ipkg ${GMP} "--enable-cxx"
ipkg ${MPFR} "--enable-shared"
ipkg ${MPC}
-ipkg ${PPL} "\
- --enable-shared \
- --enable-interfaces=c,cxx \
- --disable-optimization \
- --with-libgmp-prefix=/tools \
- --with-libgmpxx-prefix=/tools"
ipkg ${CLOOG} "\
--enable-shared \
--with-gmp=/tools"
lpkg 0 ${GMP}
lpkg 0 ${MPFR}
lpkg 0 ${MPC}
-lpkg 0 ${PPL}
lpkg 0 ${CLOOG}
lpkg 0 ${BINUTILS}
lpkg 0 ${GCC}
+++ /dev/null
-../../../stage0/patches/common/ppl-0.12.1-resolve-conflicts-with-gmp-5.1.0.patch
\ No newline at end of file
{
# Prevent GCC from looking in the wrong directories for headers and
# libraries:
- sed -e "/^HOST_\(GMP\|PPL\|CLOOG\)\(LIBS\|INC\)/s:-[IL]/\(lib\|include\)::" \
+ sed -e "/^HOST_\(GMP\|CLOOG\)\(LIBS\|INC\)/s:-[IL]/\(lib\|include\)::" \
-i Makefile
}
+++ /dev/null
-#!/bin/bash
-
-hvconfig_post()
-{
- # When PPL is cross-compiled, it does not check whether GMP was compiled
- # with support for exceptions, and simply assumes it was not. This
- # assumption is incorrect, so we will fix that:
- echo '#define PPL_GMP_SUPPORTS_EXCEPTIONS 1' >> confdefs.h
-}
ipkg ${GMP} "--enable-cxx --enable-mpbsd"
ipkg ${MPFR} "--enable-shared --with-gmp=/usr"
ipkg ${MPC}
-CPPFLAGS=-fexceptions \
- ipkg ${PPL} "--enable-shared --disable-optimization"
ipkg ${CLOOG} "--enable-shared"
unset CC
lpkg 0 ${GMP}
lpkg 0 ${MPFR}
lpkg 0 ${MPC}
-lpkg 0 ${PPL}
lpkg 0 ${CLOOG}
lpkg 0 ${BINUTILS}
lpkg 0 ${GCC}
+++ /dev/null
-Submitted By: Hugo Villeneuve <hugo at hugovil dot com>
-Date: 2014-12-01
-Initial Package Version: 0.12.1
-Upstream Status: Not sent
-Description: Fix compilation errors when PERL is not installed.
-
-The file src/ppl.hh is created from src/ppl.hh.dist. But gmp-5.1 and later
-already define the class numeric_limits. Therefore, do not redefine it
-if we are using gmp >= 5.1
-
-diff -Naur ppl-0.12.1.orig/src/ppl.hh.dist ppl-0.12.1.new/src/ppl.hh.dist
---- ppl-0.12.1.orig/src/ppl.hh.dist 2012-04-16 08:15:08.000000000 -0400
-+++ ppl-0.12.1.new/src/ppl.hh.dist 2014-12-01 01:48:08.482395667 -0500
-@@ -779,6 +779,8 @@
- #ifdef PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS
- //! Specialization of std::numeric_limits.
- #endif // defined(PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS)
-+#if __GNU_MP_VERSION < 5 \
-+ || (__GNU_MP_VERSION == 5 && __GNU_MP_VERSION_MINOR < 1)
- template <>
- class numeric_limits<mpz_class> {
- private:
-@@ -836,10 +838,16 @@
- return static_cast<Type>(1);
- }
- };
-+#endif // __GNU_MP_VERSION < 5
-+ // || (__GNU_MP_VERSION == 5 && __GNU_MP_VERSION_MINOR < 1)
-
- #ifdef PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS
- //! Specialization of std::numeric_limits.
- #endif // defined(PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS)
-+
-+#if __GNU_MP_VERSION < 5 \
-+ || (__GNU_MP_VERSION == 5 && __GNU_MP_VERSION_MINOR < 1)
-+
- template <>
- class numeric_limits<mpq_class> {
- private:
-@@ -897,6 +905,8 @@
- return static_cast<Type>(0);
- }
- };
-+#endif // __GNU_MP_VERSION < 5
-+ // || (__GNU_MP_VERSION == 5 && __GNU_MP_VERSION_MINOR < 1)
-
- } // namespace std
-
+++ /dev/null
-../../../stage0/patches/common/ppl-0.12.1-resolve-conflicts-with-gmp-5.1.0.patch
\ No newline at end of file