summaryrefslogtreecommitdiff
path: root/lang/opencobol
diff options
context:
space:
mode:
authorrillig <rillig>2007-01-14 15:19:04 +0000
committerrillig <rillig>2007-01-14 15:19:04 +0000
commite70d1217bd362670043f99aef73fd14dca9255d4 (patch)
treed49f7411e5afdef1f18b3535f3fbab516c1e5d13 /lang/opencobol
parentec1e812df7bdc589e08e266f25c213ce90d3a578 (diff)
downloadpkgsrc-e70d1217bd362670043f99aef73fd14dca9255d4.tar.gz
Added support for BDB185_DEFAULT=db4, from David A. Holland, via PR 35417.
Diffstat (limited to 'lang/opencobol')
-rw-r--r--lang/opencobol/Makefile5
-rw-r--r--lang/opencobol/distinfo3
-rw-r--r--lang/opencobol/patches/patch-ab21
3 files changed, 27 insertions, 2 deletions
diff --git a/lang/opencobol/Makefile b/lang/opencobol/Makefile
index 83df0aea4e2..8822965f65a 100644
--- a/lang/opencobol/Makefile
+++ b/lang/opencobol/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2007/01/11 11:56:08 rillig Exp $
+# $NetBSD: Makefile,v 1.16 2007/01/14 15:19:04 rillig Exp $
#
DISTNAME= open-cobol-0.32
@@ -33,4 +33,7 @@ SUBST_SED.fixchkgmp= -e 's|__gmp_rand|__gmp_randinit|g'
.include "../../devel/libltdl/buildlink3.mk"
.include "../../devel/ncurses/buildlink3.mk"
.include "../../mk/bdb.buildlink3.mk"
+.if ${BDB_TYPE} != "db1"
+CONFIGURE_ARGS+= --with-db
+.endif
.include "../../mk/bsd.pkg.mk"
diff --git a/lang/opencobol/distinfo b/lang/opencobol/distinfo
index 16e90c0f3ee..710dde36934 100644
--- a/lang/opencobol/distinfo
+++ b/lang/opencobol/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.5 2007/01/06 20:45:45 rillig Exp $
+$NetBSD: distinfo,v 1.6 2007/01/14 15:19:04 rillig Exp $
SHA1 (open-cobol-0.32.tar.gz) = 9d30d0107b098c4638aa78643d833b9b2946565e
RMD160 (open-cobol-0.32.tar.gz) = 920efc8f63f5b3f9204934108f16812569d9675c
Size (open-cobol-0.32.tar.gz) = 768635 bytes
SHA1 (patch-aa) = 635e0ec19fdcf689fc6dfdbd910825c791825c36
+SHA1 (patch-ab) = 85f82b5c7f4a2a9cbb8b830a5d3c4a6d55e531f9
diff --git a/lang/opencobol/patches/patch-ab b/lang/opencobol/patches/patch-ab
new file mode 100644
index 00000000000..1df2a071c74
--- /dev/null
+++ b/lang/opencobol/patches/patch-ab
@@ -0,0 +1,21 @@
+$NetBSD: patch-ab,v 1.3 2007/01/14 15:19:04 rillig Exp $
+
+This patch supports the pkgsrc setting BDB185_DEFAULT=db4. According to
+its author, David A. Holland, it is still a hack.
+
+From PR 35417.
+
+--- libcob/fileio.c.orig 2005-05-03 05:31:14.000000000 -0400
++++ libcob/fileio.c 2007-01-13 11:42:01.000000000 -0500
+@@ -48,7 +48,11 @@
+ #endif
+
+ #if HAVE_DBOPEN
++#if defined(WITH_DB)
++#include <db_185.h>
++#else
+ #include <db.h>
++#endif
+ #else
+ #if HAVE_DB1_DB_H
+ #include <db1/db.h>