pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/math/pspp Bl3ify and use gmp from devel/gmp not the su...
details: https://anonhg.NetBSD.org/pkgsrc/rev/616f6c9ab45f
branches: trunk
changeset: 470381:616f6c9ab45f
user: seb <seb%pkgsrc.org@localhost>
date: Mon Mar 08 21:13:55 2004 +0000
description:
Bl3ify and use gmp from devel/gmp not the supplied and older one. This
fix build with gcc3. Note that the somewhat aging gmp autoconf test
had been removed wholesale.
Bump PKGREVISION.
diffstat:
math/pspp/Makefile | 9 +-
math/pspp/distinfo | 7 +-
math/pspp/patches/patch-ad | 15 +-
math/pspp/patches/patch-ak | 450 +++++++++++++++++++++++++++++---------------
math/pspp/patches/patch-ao | 13 +
5 files changed, 328 insertions(+), 166 deletions(-)
diffs (truncated from 621 to 300 lines):
diff -r aceffb1d3287 -r 616f6c9ab45f math/pspp/Makefile
--- a/math/pspp/Makefile Mon Mar 08 21:05:04 2004 +0000
+++ b/math/pspp/Makefile Mon Mar 08 21:13:55 2004 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.28 2003/08/09 11:11:37 seb Exp $
+# $NetBSD: Makefile,v 1.29 2004/03/08 21:13:55 seb Exp $
#
DISTNAME= pspp-0.3.0
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= math
MASTER_SITES= ftp://franz.stat.wisc.edu/pub/PSPP/ \
ftp://alpha.gnu.org/gnu/pspp/ \
@@ -19,7 +19,7 @@
BUILD_USES_MSGFMT= yes
-USE_BUILDLINK2= yes
+USE_BUILDLINK3= yes
USE_PKGINSTALL= yes
GNU_CONFIGURE= yes
CPPFLAGS+= -Dunix=1
@@ -34,5 +34,6 @@
CONF_FILES+= ${EGDIR}/papersize ${PKG_SYSCONFDIR}/papersize
CONF_FILES+= ${EGDIR}/ps-prologue ${PKG_SYSCONFDIR}/ps-prologue
-.include "../../devel/gettext-lib/buildlink2.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../devel/gmp/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r aceffb1d3287 -r 616f6c9ab45f math/pspp/distinfo
--- a/math/pspp/distinfo Mon Mar 08 21:05:04 2004 +0000
+++ b/math/pspp/distinfo Mon Mar 08 21:13:55 2004 +0000
@@ -1,17 +1,18 @@
-$NetBSD: distinfo,v 1.7 2003/07/29 13:21:56 jmmv Exp $
+$NetBSD: distinfo,v 1.8 2004/03/08 21:13:55 seb Exp $
SHA1 (pspp-0.3.0.tar.gz) = 1d07a7e7ef0677e5934331ed0b80b92c7bba7074
Size (pspp-0.3.0.tar.gz) = 1122999 bytes
SHA1 (patch-aa) = 7d332aa82e51da9192cefd6a450d20e2d7c493c8
SHA1 (patch-ab) = b6e70c52e780cd58fc8bed770b22642e0d67d820
SHA1 (patch-ac) = 9b7c87e6729616b3c21d683764719c894480624a
-SHA1 (patch-ad) = 38d9173ac9fdc7f40c2ef01250d897763fd57ebd
+SHA1 (patch-ad) = 64e9141e75096761f8ee3f8fbce1903aa32f9866
SHA1 (patch-ae) = 9f3f6cbe2817ab5282e70559e245cf7df0016ba3
SHA1 (patch-ag) = 3a565a2becf76af67e1cf6b443ed51e24b4fd0f0
SHA1 (patch-ah) = 8fd5821c09fcc5ea4f96a198186c99e0d958842d
SHA1 (patch-ai) = f6886d4cd3779f71353dc0e013f3b37b86fe7474
SHA1 (patch-aj) = e34a0638b8226efdf33cee4eccd40fc4dcaf6210
-SHA1 (patch-ak) = 468aa3904e044acb429c8b467897e6fccee44669
+SHA1 (patch-ak) = db897ff986bd8747be46e96a4ed5cd8fc4e46c2a
SHA1 (patch-al) = b998fc5f7f6c11bc4b862c0c25fd6a810c60ec97
SHA1 (patch-am) = 0a9cf92a8b15faa73002d7000a4fa8f6e86e1973
SHA1 (patch-an) = 1bcb30f7a0a21a9a05cf022d18c9cf806c204f85
+SHA1 (patch-ao) = c918fe9d3837ea5902405a0faca885528b31a6f6
diff -r aceffb1d3287 -r 616f6c9ab45f math/pspp/patches/patch-ad
--- a/math/pspp/patches/patch-ad Mon Mar 08 21:05:04 2004 +0000
+++ b/math/pspp/patches/patch-ad Mon Mar 08 21:13:55 2004 +0000
@@ -1,8 +1,15 @@
-$NetBSD: patch-ad,v 1.3 2003/07/29 13:21:57 jmmv Exp $
+$NetBSD: patch-ad,v 1.4 2004/03/08 21:13:55 seb Exp $
---- configure.in.orig 2000-01-02 05:05:50.000000000 +0100
+--- configure.in.orig 2000-01-02 04:05:50.000000000 +0000
+++ configure.in
-@@ -47,22 +47,26 @@ AC_CHECK_LIB(gmp, mpf_get_str,
+@@ -41,28 +41,30 @@ fi
+ AC_SUBST(LOCAL_CC)
+
+ AC_CHECK_LIB(m, sin)
+-AC_CHECK_LIB(gmp, mpf_get_str,
+- LIBS="-lgmp $LIBS" GMP_SUBDIRS= GMP_LIBS=,
+- GMP_SUBDIRS=gmp GMP_LIBS='$(GMP_LIBS)')
++LIBS="-lgmp $LIBS";GMP_SUBDIRS=;GMP_LIBS=
AC_SUBST(GMP_SUBDIRS)
AC_SUBST(GMP_LIBS)
@@ -37,7 +44,7 @@
AC_DEFINE(HAVE_LIBHISTORY)
fi
fi
-@@ -201,7 +205,7 @@ AC_PROG_LN_S
+@@ -201,7 +203,7 @@ AC_PROG_LN_S
dnl This must be after other tests so warnings don't provoke errors above.
if test "$ac_cv_prog_gcc" = yes; then
diff -r aceffb1d3287 -r 616f6c9ab45f math/pspp/patches/patch-ak
--- a/math/pspp/patches/patch-ak Mon Mar 08 21:05:04 2004 +0000
+++ b/math/pspp/patches/patch-ak Mon Mar 08 21:13:55 2004 +0000
@@ -1,113 +1,264 @@
-$NetBSD: patch-ak,v 1.2 2003/07/29 13:21:57 jmmv Exp $
+$NetBSD: patch-ak,v 1.3 2004/03/08 21:13:55 seb Exp $
---- configure.orig 2000-01-08 02:36:11.000000000 +0100
+--- configure.orig 2000-01-08 01:36:11.000000000 +0000
+++ configure
-@@ -3611,46 +3611,8 @@ fi
+@@ -1744,7 +1744,7 @@ else
+ int main() {
+
+ /* Ultrix mips cc rejects this. */
+-typedef int charset[2]; const charset x = {0,0};
++typedef int charset[2]; const charset x;
+ /* SunOS 4.1.1 cc rejects this. */
+ char const *const *ccp;
+ char **p;
+@@ -3567,16 +3567,20 @@ else
+ echo "$ac_t""no" 1>&6
+ fi
+
+-echo $ac_n "checking for mpf_get_str in -lgmp""... $ac_c" 1>&6
+-echo "configure:3572: checking for mpf_get_str in -lgmp" >&5
+-ac_lib_var=`echo gmp'_'mpf_get_str | sed 'y%./+-%__p_%'`
++LIBS="-lgmp $LIBS";GMP_SUBDIRS=;GMP_LIBS=
++
++
++
++echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
++echo "configure:3576: checking for tgetent in -ltermcap" >&5
++ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ ac_save_LIBS="$LIBS"
+-LIBS="-lgmp $LIBS"
++LIBS="-ltermcap $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 3580 "configure"
++#line 3584 "configure"
+ #include "confdefs.h"
+ /* Override any gcc2 internal prototype to avoid an error. */
+ /* We use char because int might match the return type of a gcc2
+@@ -3581,13 +3585,13 @@ cat > conftest.$ac_ext <<EOF
+ /* Override any gcc2 internal prototype to avoid an error. */
+ /* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+-char mpf_get_str();
++char tgetent();
+ int main() {
+-mpf_get_str()
++tgetent()
+ ; return 0; }
+ EOF
+-if { (eval echo configure:3591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:3595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+ else
+@@ -3602,25 +3606,69 @@ LIBS="$ac_save_LIBS"
+ fi
+ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+- LIBS="-lgmp $LIBS" GMP_SUBDIRS= GMP_LIBS=
++ LIBS="-ltermcap $LIBS" termcap=yes
+ else
+ echo "$ac_t""no" 1>&6
+-GMP_SUBDIRS=gmp GMP_LIBS='$(GMP_LIBS)'
++termcap=no
+ fi
++if test "$termcap" = yes; then
++ for ac_hdr in termcap.h
++do
++ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
++echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
++echo "configure:3621: checking for $ac_hdr" >&5
++if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++ echo $ac_n "(cached) $ac_c" 1>&6
++else
++ cat > conftest.$ac_ext <<EOF
++#line 3626 "configure"
++#include "confdefs.h"
++#include <$ac_hdr>
++EOF
++ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++{ (eval echo configure:3631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++if test -z "$ac_err"; then
++ rm -rf conftest*
++ eval "ac_cv_header_$ac_safe=yes"
++else
++ echo "$ac_err" >&5
++ echo "configure: failed program was:" >&5
++ cat conftest.$ac_ext >&5
++ rm -rf conftest*
++ eval "ac_cv_header_$ac_safe=no"
++fi
++rm -f conftest*
++fi
++if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++ echo "$ac_t""yes" 1>&6
++ ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
++ cat >> confdefs.h <<EOF
++#define $ac_tr_hdr 1
++EOF
++
++else
++ echo "$ac_t""no" 1>&6
++fi
++done
+
++ cat >> confdefs.h <<\EOF
++#define HAVE_LIBTERMCAP 1
++EOF
+
++fi
-echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
-echo "configure:3616: checking for tgetent in -lncurses" >&5
-ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
--if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
-- echo $ac_n "(cached) $ac_c" 1>&6
--else
-- ac_save_LIBS="$LIBS"
++echo $ac_n "checking for readline in -ledit""... $ac_c" 1>&6
++echo "configure:3664: checking for readline in -ledit" >&5
++ac_lib_var=`echo edit'_'readline | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ ac_save_LIBS="$LIBS"
-LIBS="-lncurses $LIBS"
--cat > conftest.$ac_ext <<EOF
++LIBS="-ledit $LIBS"
+ cat > conftest.$ac_ext <<EOF
-#line 3624 "configure"
--#include "confdefs.h"
--/* Override any gcc2 internal prototype to avoid an error. */
--/* We use char because int might match the return type of a gcc2
-- builtin and then its argument prototype would still apply. */
++#line 3672 "configure"
+ #include "confdefs.h"
+ /* Override any gcc2 internal prototype to avoid an error. */
+ /* We use char because int might match the return type of a gcc2
+@@ -3625,13 +3673,13 @@ cat > conftest.$ac_ext <<EOF
+ /* Override any gcc2 internal prototype to avoid an error. */
+ /* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
-char tgetent();
--
--int main() {
++char readline();
+
+ int main() {
-tgetent()
--; return 0; }
--EOF
++readline()
+ ; return 0; }
+ EOF
-if { (eval echo configure:3635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-- rm -rf conftest*
-- eval "ac_cv_lib_$ac_lib_var=yes"
--else
-- echo "configure: failed program was:" >&5
-- cat conftest.$ac_ext >&5
-- rm -rf conftest*
-- eval "ac_cv_lib_$ac_lib_var=no"
--fi
--rm -f conftest*
--LIBS="$ac_save_LIBS"
--
--fi
--if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
-- echo "$ac_t""yes" 1>&6
++if { (eval echo configure:3683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+ else
+@@ -3646,19 +3694,19 @@ LIBS="$ac_save_LIBS"
+ fi
+ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
- LIBS="-lncurses $LIBS" termcap=yes
--else
-- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
++ readlinelib=edit have_readline=yes
+ else
+ echo "$ac_t""no" 1>&6
+-echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
-echo "configure:3654: checking for tgetent in -ltermcap" >&5
-+echo "configure:3616: checking for tgetent in -ltermcap" >&5
- ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
+-ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
++echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
++echo "configure:3702: checking for readline in -lreadline" >&5
++ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
-@@ -3690,8 +3652,6 @@ else
- termcap=no
+ else
+ ac_save_LIBS="$LIBS"
+-LIBS="-ltermcap $LIBS"
++LIBS="-lreadline $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 3662 "configure"
Home |
Main Index |
Thread Index |
Old Index