Changes 1.0: * New compile option '-x'. This causes the compiler to produce an executable program. '-fmain' is deprecated. * Remove long option --verbose. Use '-v' for verbosity. Problem is with getopt_long_only which does not like eg. -mv * New conformity option -std=bs2000. * FUNCTION is implemented. See cobc/reserved.c for a list of what is implemented. * Nested programs are partially supported. * LINAGE is implemented. * EXTERNAL on FD is implemented. * SAME RECORD AREA is implemented. * New config variables - * Support for non-gcc compilers. * Large file support, system dynamic loading and Berkeley DB inclusion are default for the configure. * New configure option --with-patch-level=<n> * At run time, version checking is done. ie. When executing/loading Cobol programs, the version (eg. 0.33) and the patch level (eg. 0) are checked against the OC library version/patch level. * Libtool is not required for systems that support native dynamic loading. This includes Linux, Cygwin and MingW amongst others. * Note to developers : See README for required software versions.diff -r1.19 -r1.20 pkgsrc/lang/opencobol/Makefile
(adam)
@@ -1,41 +1,38 @@ | @@ -1,41 +1,38 @@ | |||
1 | # $NetBSD: Makefile,v 1.19 2010/03/24 19:43:25 asau Exp $ | 1 | # $NetBSD: Makefile,v 1.20 2010/06/02 12:38:29 adam Exp $ | |
2 | # | |||
3 | 2 | |||
4 | DISTNAME= open-cobol-0.32 | 3 | DISTNAME= open-cobol-1.0 | |
5 | PKGNAME= opencobol-0.32 | 4 | PKGNAME= opencobol-1.0 | |
6 | PKGREVISION= 3 | 5 | CATEGORIES= lang | |
7 | CATEGORIES= lang | 6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=open-cobol/} | |
8 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=open-cobol/} | 7 | ||
9 | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | ||
10 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | HOMEPAGE= http://www.opencobol.org/ | |
11 | HOMEPAGE= http://www.opencobol.org/ | 10 | COMMENT= Open-source COBOL compiler | |
12 | COMMENT= Open-source COBOL compiler | |||
13 | 11 | |||
14 | PKG_DESTDIR_SUPPORT= user-destdir | 12 | PKG_DESTDIR_SUPPORT= user-destdir | |
15 | 13 | |||
16 | GNU_CONFIGURE= yes | 14 | BDB_ACCEPTED= db4 db5 | |
17 | USE_TOOLS+= msgfmt | |||
18 | USE_LIBTOOL= yes | 15 | USE_LIBTOOL= yes | |
19 | USE_PKGLOCALEDIR= yes | 16 | USE_PKGLOCALEDIR= yes | |
17 | USE_TOOLS+= msgfmt | |||
18 | GNU_CONFIGURE= yes | |||
19 | CONFIGURE_ARGS+= --with-db | |||
20 | CONFIGURE_ARGS+= --with-lfs | |||
21 | CONFIGURE_ARGS+= --without-readline | |||
20 | INFO_FILES= yes | 22 | INFO_FILES= yes | |
21 | 23 | |||
22 | TEST_TARGET= check | 24 | TEST_TARGET= check | |
23 | 25 | |||
24 | CONFIGURE_ARGS+= --without-readline | 26 | SUBST_CLASSES+= bdb | |
25 | CONFIGURE_ARGS+= --with-lfs | 27 | SUBST_MESSAGE.bdb= Fixing bdb library names. | |
26 | 28 | SUBST_STAGE.bdb= pre-configure | ||
27 | # XXX: followings can be removed when update to 0.33. | 29 | SUBST_FILES.bdb= configure | |
28 | SUBST_CLASSES+= fixchkgmp | 30 | SUBST_SED.bdb= -e 's,db-4.5,db5,g' | |
29 | SUBST_STAGE.fixchkgmp= pre-configure | 31 | SUBST_SED.bdb+= -e 's,db-4.4,db4,g' | |
30 | SUBST_FILES.fixchkgmp= configure | |||
31 | SUBST_SED.fixchkgmp= -e 's|__gmp_rand|__gmp_randinit|g' | |||
32 | 32 | |||
33 | .include "../../devel/gettext-lib/buildlink3.mk" | 33 | .include "../../devel/gettext-lib/buildlink3.mk" | |
34 | .include "../../devel/gmp/buildlink3.mk" | 34 | .include "../../devel/gmp/buildlink3.mk" | |
35 | .include "../../devel/libltdl/buildlink3.mk" | 35 | .include "../../devel/libltdl/buildlink3.mk" | |
36 | .include "../../devel/ncurses/buildlink3.mk" | 36 | .include "../../devel/ncurses/buildlink3.mk" | |
37 | .include "../../mk/bdb.buildlink3.mk" | 37 | .include "../../mk/bdb.buildlink3.mk" | |
38 | .if ${BDB_TYPE} != "db1" | |||
39 | CONFIGURE_ARGS+= --with-db | |||
40 | .endif | |||
41 | .include "../../mk/bsd.pkg.mk" | 38 | .include "../../mk/bsd.pkg.mk" |
@@ -1,25 +1,28 @@ | @@ -1,25 +1,28 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.7 2009/06/14 18:03:37 joerg Exp $ | 1 | @comment $NetBSD: PLIST,v 1.8 2010/06/02 12:38:29 adam Exp $ | |
2 | bin/cob-config | 2 | bin/cob-config | |
3 | bin/cobc | 3 | bin/cobc | |
4 | bin/cobcrun | 4 | bin/cobcrun | |
5 | include/libcob.h | 5 | include/libcob.h | |
6 | include/libcob/byteswap.h | 6 | include/libcob/byteswap.h | |
7 | include/libcob/call.h | 7 | include/libcob/call.h | |
8 | include/libcob/codegen.h | |||
8 | include/libcob/common.h | 9 | include/libcob/common.h | |
9 | include/libcob/exception.def | 10 | include/libcob/exception.def | |
10 | include/libcob/fileio.h | 11 | include/libcob/fileio.h | |
12 | include/libcob/intrinsic.h | |||
11 | include/libcob/move.h | 13 | include/libcob/move.h | |
12 | include/libcob/numeric.h | 14 | include/libcob/numeric.h | |
13 | include/libcob/screenio.h | 15 | include/libcob/screenio.h | |
14 | include/libcob/strings.h | 16 | include/libcob/strings.h | |
17 | include/libcob/system.def | |||
15 | include/libcob/termio.h | 18 | include/libcob/termio.h | |
16 | info/open-cobol.info | 19 | info/open-cobol.info | |
17 | lib/libcob.la | 20 | lib/libcob.la | |
18 | share/locale/ja/LC_MESSAGES/open-cobol.mo | 21 | share/locale/ja/LC_MESSAGES/open-cobol.mo | |
22 | share/open-cobol/config/bs2000.conf | |||
19 | share/open-cobol/config/cobol2002.conf | 23 | share/open-cobol/config/cobol2002.conf | |
20 | share/open-cobol/config/cobol85.conf | 24 | share/open-cobol/config/cobol85.conf | |
21 | share/open-cobol/config/default.conf | 25 | share/open-cobol/config/default.conf | |
22 | share/open-cobol/config/ibm.conf | 26 | share/open-cobol/config/ibm.conf | |
23 | share/open-cobol/config/mf.conf | 27 | share/open-cobol/config/mf.conf | |
24 | share/open-cobol/config/mvs.conf | 28 | share/open-cobol/config/mvs.conf | |
25 | share/open-cobol/config/v023.conf |
@@ -1,7 +1,7 @@ | @@ -1,7 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.6 2007/01/14 15:19:04 rillig Exp $ | 1 | $NetBSD: distinfo,v 1.7 2010/06/02 12:38:29 adam Exp $ | |
2 | 2 | |||
3 | SHA1 (open-cobol-0.32.tar.gz) = 9d30d0107b098c4638aa78643d833b9b2946565e | 3 | SHA1 (open-cobol-1.0.tar.gz) = 4c0930a74e92014317b2f237aaedc90acc2b72df | |
4 | RMD160 (open-cobol-0.32.tar.gz) = 920efc8f63f5b3f9204934108f16812569d9675c | 4 | RMD160 (open-cobol-1.0.tar.gz) = 28c666885e46aeaed0f12b425b1f11a5125db490 | |
5 | Size (open-cobol-0.32.tar.gz) = 768635 bytes | 5 | Size (open-cobol-1.0.tar.gz) = 934641 bytes | |
6 | SHA1 (patch-aa) = 635e0ec19fdcf689fc6dfdbd910825c791825c36 | 6 | SHA1 (patch-aa) = 545a02656d9da9fce8fdbb2805f81f1e65ae565d | |
7 | SHA1 (patch-ab) = 85f82b5c7f4a2a9cbb8b830a5d3c4a6d55e531f9 | 7 | SHA1 (patch-ab) = e102bdb564e9b186329c34f9adab699e154fe9a6 |
@@ -1,15 +1,22 @@ | @@ -1,15 +1,22 @@ | |||
1 | $NetBSD: patch-aa,v 1.3 2007/01/06 20:45:45 rillig Exp $ | 1 | $NetBSD: patch-aa,v 1.4 2010/06/02 12:38:29 adam Exp $ | |
2 | 2 | |||
3 | All generated programs must be linked with this flag to find libcob. | 3 | --- configure.orig 2007-12-27 10:57:51.000000000 +0000 | |
4 | 4 | +++ configure | ||
5 | --- configure.orig 2005-05-03 11:31:14.000000000 +0200 | 5 | @@ -24347,7 +24347,7 @@ echo "$as_me: error: Include file db.h i | |
6 | +++ configure 2007-01-06 21:41:08.000000000 +0100 | 6 | ||
7 | @@ -25089,7 +25089,7 @@ else | 7 | ||
8 | COB_CFLAGS="-I$includedir" | 8 | ||
9 | -for ac_header in db.h db_185.h db3/db_185.h db4/db_185.h db4.1/db_185.h db4.2/db_185.h db4.3/db_185.h db4.4/db_185.h db4.5/db_185.h | |||
10 | +for ac_header in db.h db_185.h db3/db_185.h db4/db_185.h db5/db_185.h | |||
11 | do | |||
12 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |||
13 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |||
14 | @@ -26067,7 +26067,7 @@ then | |||
15 | COB_CFLAGS="$COB_CFLAGS $CPPFLAGS" | |||
9 | fi | 16 | fi | |
10 | 17 | |||
11 | -COB_LIBS="-L$libdir -lcob ${LIBCOB_LIBS}" | 18 | -COB_LIBS="-L$libdir -lcob ${LIBCOB_LIBS}" | |
12 | +COB_LIBS="-L$libdir -Wl,-R$libdir -lcob ${LIBCOB_LIBS}" | 19 | +COB_LIBS="-L$libdir -Wl,-R$libdir -lcob ${LIBCOB_LIBS}" | |
13 | COB_CONFIG_DIR="$datadir/$PACKAGE_TARNAME/config" | 20 | COB_LDFLAGS="" | |
14 | COB_LIBRARY_PATH=".:$libdir/$PACKAGE_TARNAME" | 21 | if test "x$LDFLAGS" != "x" | |
15 | COB_MODULE_EXT=`echo "$shlibext" | sed 's/dll\.a/dll/'` | 22 | then |
@@ -1,21 +1,23 @@ | @@ -1,21 +1,23 @@ | |||
1 | $NetBSD: patch-ab,v 1.3 2007/01/14 15:19:04 rillig Exp $ | 1 | $NetBSD: patch-ab,v 1.4 2010/06/02 12:38:29 adam Exp $ | |
2 | 2 | |||
3 | This patch supports the pkgsrc setting BDB185_DEFAULT=db4. According to | 3 | --- libcob/fileio.c.orig 2007-12-27 10:57:51.000000000 +0000 | |
4 | its author, David A. Holland, it is still a hack. | 4 | +++ libcob/fileio.c | |
5 | 5 | @@ -79,16 +79,8 @@ | ||
6 | From PR 35417. | 6 | #include <db3/db_185.h> | |
7 | 7 | #elif HAVE_DB4_DB_185_H | ||
8 | --- libcob/fileio.c.orig 2005-05-03 05:31:14.000000000 -0400 | 8 | #include <db4/db_185.h> | |
9 | +++ libcob/fileio.c 2007-01-13 11:42:01.000000000 -0500 | 9 | -#elif HAVE_DB4_1_DB_185_H | |
10 | @@ -48,7 +48,11 @@ | 10 | -#include <db4.1/db_185.h> | |
11 | #endif | 11 | -#elif HAVE_DB4_2_DB_185_H | |
12 | 12 | -#include <db4.2/db_185.h> | ||
13 | #if HAVE_DBOPEN | 13 | -#elif HAVE_DB4_3_DB_185_H | |
14 | +#if defined(WITH_DB) | 14 | -#include <db4.3/db_185.h> | |
15 | +#include <db_185.h> | 15 | -#elif HAVE_DB4_4_DB_185_H | |
16 | +#else | 16 | -#include <db4.4/db_185.h> | |
17 | -#elif HAVE_DB4_5_DB_185_H | |||
18 | -#include <db4.5/db_185.h> | |||
19 | +#elif HAVE_DB5_DB_185_H | |||
20 | +#include <db5/db_185.h> | |||
21 | #elif HAVE_DB_H | |||
17 | #include <db.h> | 22 | #include <db.h> | |
18 | +#endif | 23 | #endif | |
19 | #else | |||
20 | #if HAVE_DB1_DB_H | |||
21 | #include <db1/db.h> |