summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-11-25 08:35:31 +0000
committerrillig <rillig@pkgsrc.org>2007-11-25 08:35:31 +0000
commit67778f29d4d58dd0480026aaf3a48c975ec8a0ff (patch)
treef4b4b81616f8cf4cbeb017a33bb0627699ef15a3 /devel
parentd5faee3467d127ba481dc8368b715a50d4578206 (diff)
downloadpkgsrc-67778f29d4d58dd0480026aaf3a48c975ec8a0ff.tar.gz
Sunpro accepts __attribute__((mode ...)), but ignores it. Fixed the
configure test and reported it upstream.
Diffstat (limited to 'devel')
-rw-r--r--devel/gmp/Makefile7
-rw-r--r--devel/gmp/distinfo3
-rw-r--r--devel/gmp/patches/patch-ab23
3 files changed, 30 insertions, 3 deletions
diff --git a/devel/gmp/Makefile b/devel/gmp/Makefile
index 58ba31ea681..b83616296df 100644
--- a/devel/gmp/Makefile
+++ b/devel/gmp/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.47 2007/11/07 00:18:17 gdt Exp $
+# $NetBSD: Makefile,v 1.48 2007/11/25 08:35:31 rillig Exp $
DISTNAME= gmp-4.2.2
CATEGORIES= devel math
@@ -14,7 +14,7 @@ PKG_DESTDIR_SUPPORT= user-destdir
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_LANGUAGES= c c++ c99
-USE_TOOLS+= gm4
+USE_TOOLS+= gm4 autoconf
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-cxx --without-readline
@@ -53,4 +53,7 @@ BUILDLINK_TRANSFORM+= rm:-mmmx rm:-msse rm:-msse2 rm:-msse3 rm:-m3dnow
. endif
.endif
+pre-configure:
+ cd ${WRKSRC} && type autoconf && autoconf
+
.include "../../mk/bsd.pkg.mk"
diff --git a/devel/gmp/distinfo b/devel/gmp/distinfo
index b850f0fcbfb..01657e50b82 100644
--- a/devel/gmp/distinfo
+++ b/devel/gmp/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.19 2007/10/30 01:36:59 bjs Exp $
+$NetBSD: distinfo,v 1.20 2007/11/25 08:35:31 rillig Exp $
SHA1 (gmp-4.2.2.tar.bz2) = 8c5f9798956f9b0162a25a56477a3566a92abc72
RMD160 (gmp-4.2.2.tar.bz2) = 4021720f78b02244197c0c49522289e7fe81aad9
Size (gmp-4.2.2.tar.bz2) = 1747068 bytes
SHA1 (patch-aa) = a53db34c8ecf38d6556a59a0fa7382456c30fab6
+SHA1 (patch-ab) = e768eca25c117871041d12a618e38d9d252f25e5
diff --git a/devel/gmp/patches/patch-ab b/devel/gmp/patches/patch-ab
new file mode 100644
index 00000000000..7b59eece3ed
--- /dev/null
+++ b/devel/gmp/patches/patch-ab
@@ -0,0 +1,23 @@
+$NetBSD: patch-ab,v 1.7 2007/11/25 08:35:32 rillig Exp $
+
+Fixed detection of __attribute__((__mode__(XX))) for sunpro.
+
+--- acinclude.m4.orig 2007-09-01 12:09:03.000000000 +0200
++++ acinclude.m4 2007-11-25 09:26:07.000000000 +0100
+@@ -3016,7 +3016,15 @@ dnl Introduced in gcc 2.2, but perhaps
+ AC_DEFUN([GMP_C_ATTRIBUTE_MODE],
+ [AC_CACHE_CHECK([whether gcc __attribute__ ((mode (XX))) works],
+ gmp_cv_c_attribute_mode,
+-[AC_TRY_COMPILE([typedef int SItype __attribute__ ((mode (SI)));], ,
++[AC_TRY_COMPILE([
++ typedef int SItype __attribute__ ((mode (SI)));
++ typedef int QItype __attribute__ ((mode (QI)));
++], [
++ switch (1) {
++ case sizeof(SItype):
++ case sizeof(QItype): ;
++ }
++],
+ gmp_cv_c_attribute_mode=yes, gmp_cv_c_attribute_mode=no)
+ ])
+ if test $gmp_cv_c_attribute_mode = yes; then