diff options
author | minskim <minskim@pkgsrc.org> | 2004-12-13 21:14:12 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2004-12-13 21:14:12 +0000 |
commit | 11f1faa60d3240c0eb181e13cf419e1226b20359 (patch) | |
tree | 701cbbcc6c49f5c09aabcb52f94b53ea0b7173e4 | |
parent | 01335340bb4604694b7cc6fecb69b584cd5f4051 (diff) | |
download | pkgsrc-11f1faa60d3240c0eb181e13cf419e1226b20359.tar.gz |
On NetBSD, use statvfs only when sys/statvfs.h is available. This
makes the package build on NetBSD-2.0 and -1.6 again. OK'ed by jmmv@.
-rw-r--r-- | devel/opencm/distinfo | 4 | ||||
-rw-r--r-- | devel/opencm/patches/patch-ae | 26 |
2 files changed, 22 insertions, 8 deletions
diff --git a/devel/opencm/distinfo b/devel/opencm/distinfo index 31874fb5142..3a33d318e1e 100644 --- a/devel/opencm/distinfo +++ b/devel/opencm/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.12 2004/12/04 23:37:14 jmmv Exp $ +$NetBSD: distinfo,v 1.13 2004/12/13 21:14:12 minskim Exp $ SHA1 (opencm-0.1.2alpha8-2-src.tgz) = 2befad488fd7b73f961f7f6a771acdcee921a20d Size (opencm-0.1.2alpha8-2-src.tgz) = 1577512 bytes @@ -6,6 +6,6 @@ SHA1 (patch-aa) = eccb4254283fa554b33a65a4f93a4a98889cdaaa SHA1 (patch-ab) = 63df5eecf9daedaf0250b4f34f6d48d93a229bfc SHA1 (patch-ac) = 9f94b2208f73fdb73fe71356382ae788552214e7 SHA1 (patch-ad) = 24efb352d728333a9fbd4d92cde35a478afaed0e -SHA1 (patch-ae) = 046b1fcaaf04bb1f13bc7387e95cfeebca3f58fe +SHA1 (patch-ae) = 5fc0ca228f046e745447684128f4de4c94dde71d SHA1 (patch-af) = 63194a7f9530ccf3ac7f0d91b94d717295c61f0b SHA1 (patch-ag) = 603fddc1fb526e70fc194280c387084270d62180 diff --git a/devel/opencm/patches/patch-ae b/devel/opencm/patches/patch-ae index ef1725cd29f..c05deca7fb4 100644 --- a/devel/opencm/patches/patch-ae +++ b/devel/opencm/patches/patch-ae @@ -1,6 +1,6 @@ -$NetBSD: patch-ae,v 1.5 2004/12/04 23:37:14 jmmv Exp $ +$NetBSD: patch-ae,v 1.6 2004/12/13 21:14:12 minskim Exp $ ---- configure.orig 2004-10-25 03:09:36.000000000 +0200 +--- configure.orig 2004-10-24 20:09:36.000000000 -0500 +++ configure @@ -4928,7 +4928,7 @@ else if test ! -d "$dir" ; then @@ -11,13 +11,27 @@ $NetBSD: patch-ae,v 1.5 2004/12/04 23:37:14 jmmv Exp $ vl_cv_lib_kerberos="$dir" break; fi -@@ -5017,7 +5017,8 @@ if test -z "$DEFAULT_EDITOR"; then +@@ -5017,12 +5017,20 @@ if test -z "$DEFAULT_EDITOR"; then DEFAULT_EDITOR="vi" fi -case $host_os in solaris*|irix*) +- +-cat >>confdefs.h <<\_ACEOF +case $host_os in -+*) - - cat >>confdefs.h <<\_ACEOF ++solaris*|irix*) ++ cat >>confdefs.h <<\_ACEOF #define HAVE_SVR4_STATVFS 1 + _ACEOF ++ ;; + ++netbsd*) ++ if [ -f /usr/include/sys/statvfs.h ]; then ++ cat >>confdefs.h <<\_ACEOF ++#define HAVE_SVR4_STATVFS 1 ++_ACEOF ++ fi ++ ;; + esac + + |