diff options
author | ryoon <ryoon@pkgsrc.org> | 2015-07-01 14:23:55 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2015-07-01 14:23:55 +0000 |
commit | a2f4abbcd3149d15b533994e3af989ca78a447c8 (patch) | |
tree | d26c7bb5f609f91f0e13f16376494f16fc852821 /lang | |
parent | d3fcc4db773253646767b4dcd632dd29afd5dbed (diff) | |
download | pkgsrc-a2f4abbcd3149d15b533994e3af989ca78a447c8.tar.gz |
Import opencobol-2.0alpha1 as lang/gnucobol.
GnuCOBOL, formerly OpenCOBOL, is an open-source COBOL compiler,
which translates COBOL programs to C code and compiles it using
GCC.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/gnucobol/DESCR | 3 | ||||
-rw-r--r-- | lang/gnucobol/Makefile | 34 | ||||
-rw-r--r-- | lang/gnucobol/PLIST | 25 | ||||
-rw-r--r-- | lang/gnucobol/distinfo | 6 | ||||
-rw-r--r-- | lang/gnucobol/patches/patch-configure | 25 |
5 files changed, 93 insertions, 0 deletions
diff --git a/lang/gnucobol/DESCR b/lang/gnucobol/DESCR new file mode 100644 index 00000000000..065e0e9e394 --- /dev/null +++ b/lang/gnucobol/DESCR @@ -0,0 +1,3 @@ +GnuCOBOL, formerly OpenCOBOL, is an open-source COBOL compiler, +which translates COBOL programs to C code and compiles it using +GCC. diff --git a/lang/gnucobol/Makefile b/lang/gnucobol/Makefile new file mode 100644 index 00000000000..3662d2d9977 --- /dev/null +++ b/lang/gnucobol/Makefile @@ -0,0 +1,34 @@ +# $NetBSD: Makefile,v 1.1 2015/07/01 14:23:55 ryoon Exp $ +# + +DISTNAME= gnu-cobol-2.0_nightly_r411 +PKGNAME= opencobol-2.0alpha1 +CATEGORIES= lang +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=open-cobol/} + +MAINTAINER= rodo@bloerp.de +HOMEPAGE= https://sourceforge.net/projects/open-cobol/ +COMMENT= Open-source COBOL compiler + +CONFLICTS= opensource-cobol-[0-9]* open-cobol-ce-[0-9]* + +WRKSRC= ${WRKDIR}/gnu-cobol-2.0 + +BDB_ACCEPTED= db4 db5 +USE_LIBTOOL= yes +USE_PKGLOCALEDIR= yes +USE_TOOLS+= msgfmt +GNU_CONFIGURE= yes +CONFIGURE_ARGS+= --with-db +CONFIGURE_ARGS+= --with-lfs +CONFIGURE_ARGS+= --without-readline +INFO_FILES= yes + +CONFIGURE_ENV+= cobdb=${BDB_TYPE} + +.include "../../devel/gettext-lib/buildlink3.mk" +.include "../../devel/gmp/buildlink3.mk" +.include "../../devel/libltdl/buildlink3.mk" +.include "../../devel/ncurses/buildlink3.mk" +.include "../../mk/bdb.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/lang/gnucobol/PLIST b/lang/gnucobol/PLIST new file mode 100644 index 00000000000..af242331838 --- /dev/null +++ b/lang/gnucobol/PLIST @@ -0,0 +1,25 @@ +@comment $NetBSD: PLIST,v 1.1 2015/07/01 14:23:55 ryoon Exp $ +bin/cob-config +bin/cobc +bin/cobcrun +include/libcob.h +include/libcob/cobgetopt.h +include/libcob/common.h +include/libcob/exception.def +info/gnucobol.info +lib/gnu-cobol/CBL_OC_DUMP.so +lib/libcob.la +share/gnu-cobol/config/bs2000.conf +share/gnu-cobol/config/cobol2002.conf +share/gnu-cobol/config/cobol85.conf +share/gnu-cobol/config/default.conf +share/gnu-cobol/config/ibm.conf +share/gnu-cobol/config/mf.conf +share/gnu-cobol/config/mvs.conf +share/gnu-cobol/copy/screenio.cpy +share/gnu-cobol/copy/sqlca.cpy +share/gnu-cobol/copy/sqlda.cpy +share/locale/en@boldquot/LC_MESSAGES/gnu-cobol.mo +share/locale/en@quot/LC_MESSAGES/gnu-cobol.mo +share/locale/es/LC_MESSAGES/gnu-cobol.mo +share/locale/ja/LC_MESSAGES/gnu-cobol.mo diff --git a/lang/gnucobol/distinfo b/lang/gnucobol/distinfo new file mode 100644 index 00000000000..ae1ef0fe778 --- /dev/null +++ b/lang/gnucobol/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2015/07/01 14:23:55 ryoon Exp $ + +SHA1 (gnu-cobol-2.0_nightly_r411.tar.gz) = 009215c090b9a90fbf02bbc913095ce2a9b31910 +RMD160 (gnu-cobol-2.0_nightly_r411.tar.gz) = a5a219a7d08ea498dab653a02fc54f0fa1205d99 +Size (gnu-cobol-2.0_nightly_r411.tar.gz) = 1748284 bytes +SHA1 (patch-configure) = d0b3241e95c5910d083ff56cd33527cf871190b1 diff --git a/lang/gnucobol/patches/patch-configure b/lang/gnucobol/patches/patch-configure new file mode 100644 index 00000000000..b91ba09ac69 --- /dev/null +++ b/lang/gnucobol/patches/patch-configure @@ -0,0 +1,25 @@ +$NetBSD: patch-configure,v 1.1 2015/07/01 14:23:55 ryoon Exp $ + +* Improve POSIX shell compatibility. +* Detect pkgsrc berkeley db library. + +--- configure.orig 2014-08-21 18:24:14.000000000 +0000 ++++ configure +@@ -13672,7 +13672,7 @@ $as_echo_n "checking matching GMP versio + COB_GMP_LIB_MAJOR=$(echo $COB_GMP_LIB | cut -d. -f1) + COB_GMP_LIB_MINOR=$(echo $COB_GMP_LIB | cut -d. -f2) + +-if test "$COB_GMP_HEADER" == "$COB_GMP_LIB_MAJOR.$COB_GMP_LIB_MINOR" ++if test "$COB_GMP_HEADER" = "$COB_GMP_LIB_MAJOR.$COB_GMP_LIB_MINOR" + then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($COB_GMP_HEADER)" >&5 + $as_echo "yes ($COB_GMP_HEADER)" >&6; } +@@ -16271,7 +16271,7 @@ $as_echo "no ($COB_BDB_HEADER)" >&6; } + cob_got_db=no + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB library with version $COB_BDB_HEADER" >&5 + $as_echo_n "checking for Berkeley DB library with version $COB_BDB_HEADER... " >&6; } +- for cobdb in db db-$COB_BDB_HEADER ++ for cobdb in db db$COB_BDB_HEADER_MAJOR-$COB_BDB_HEADER + do + LIBS="$MYOLDLIBS -l$cobdb" + if test "$cross_compiling" = yes; then : |