summaryrefslogtreecommitdiff
path: root/lang/open-cobol-ce
diff options
context:
space:
mode:
Diffstat (limited to 'lang/open-cobol-ce')
-rw-r--r--lang/open-cobol-ce/DESCR1
-rw-r--r--lang/open-cobol-ce/Makefile40
-rw-r--r--lang/open-cobol-ce/PLIST20
-rw-r--r--lang/open-cobol-ce/distinfo6
-rw-r--r--lang/open-cobol-ce/patches/patch-bin_cobcrun.c15
5 files changed, 82 insertions, 0 deletions
diff --git a/lang/open-cobol-ce/DESCR b/lang/open-cobol-ce/DESCR
new file mode 100644
index 00000000000..9114c1d0ef1
--- /dev/null
+++ b/lang/open-cobol-ce/DESCR
@@ -0,0 +1 @@
+OpenCOBOL CE is based on OpenCOBOL and has modern features.
diff --git a/lang/open-cobol-ce/Makefile b/lang/open-cobol-ce/Makefile
new file mode 100644
index 00000000000..56df5cd3b02
--- /dev/null
+++ b/lang/open-cobol-ce/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1 2013/05/26 04:13:05 ryoon Exp $
+
+DISTNAME= open-cobol-ce-1.1.r59
+PKGNAME= ${DISTNAME:S/.r/./}
+CATEGORIES= lang
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=open-cobol/}
+
+MAINTAINER= ryoon@NetBSD.org
+HOMEPAGE= http://sourceforge.net/projects/open-cobol/
+COMMENT= OpenCOBOL CE compiler
+LICENSE= gnu-gpl-v2
+
+CONFLICTS= opencobol-[0-9]* opensource-cobol-[0-9]*
+
+BDB_ACCEPTED= db4
+
+WRKSRC= ${WRKDIR}/open-cobol-ce-1.1
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_PKGLOCALEDIR= yes
+
+#BUILDLINK_TRANSFORM+= l:db:db4
+
+# XXX This SUBST will work for NetBSD. Be more intelligent.
+SUBST_CLASSES+= bdb
+SUBST_MESSAGE.bdb= Fixing runrime error.
+SUBST_STAGE.bdb= pre-configure
+SUBST_FILES.bdb= configure
+SUBST_SED.bdb= -e 's,db-4.4,db4,g'
+#SUBST_SED.bdb+= -e 's,ncurses,curses,g'
+
+TEST_TARGET= check
+
+INFO_FILES= yes
+
+.include "../../devel/libgetopt/buildlink3.mk"
+.include "../../devel/gmp/buildlink3.mk"
+.include "../../mk/bdb.buildlink3.mk"
+.include "../../mk/curses.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/lang/open-cobol-ce/PLIST b/lang/open-cobol-ce/PLIST
new file mode 100644
index 00000000000..e80ae3268c3
--- /dev/null
+++ b/lang/open-cobol-ce/PLIST
@@ -0,0 +1,20 @@
+@comment $NetBSD: PLIST,v 1.1 2013/05/26 04:13:05 ryoon Exp $
+bin/cob-config
+bin/cobc
+bin/cobcrun
+include/libcob.h
+include/libcob/codegen.h
+include/libcob/common.h
+include/libcob/exception.def
+include/libcob/system.def
+info/open-cobol.info
+lib/libcob.la
+lib/open-cobol-ce/CBL_OC_DUMP.so
+share/open-cobol-ce/config/bs2000.conf
+share/open-cobol-ce/config/cobol2002.conf
+share/open-cobol-ce/config/cobol85.conf
+share/open-cobol-ce/config/default.conf
+share/open-cobol-ce/config/ibm.conf
+share/open-cobol-ce/config/mf.conf
+share/open-cobol-ce/config/mvs.conf
+share/open-cobol-ce/copy/screenio.cpy
diff --git a/lang/open-cobol-ce/distinfo b/lang/open-cobol-ce/distinfo
new file mode 100644
index 00000000000..9204e59c405
--- /dev/null
+++ b/lang/open-cobol-ce/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2013/05/26 04:13:05 ryoon Exp $
+
+SHA1 (open-cobol-ce-1.1.r59.tar.gz) = 9e4a7911e4c0ff5c6f210010e61912afc82c21c4
+RMD160 (open-cobol-ce-1.1.r59.tar.gz) = af74ad102ced65b4fc161185fa59b9d973fb44ea
+Size (open-cobol-ce-1.1.r59.tar.gz) = 1052119 bytes
+SHA1 (patch-bin_cobcrun.c) = 2a193a7d90a88e2fb3c30c2e2d565189253bd75d
diff --git a/lang/open-cobol-ce/patches/patch-bin_cobcrun.c b/lang/open-cobol-ce/patches/patch-bin_cobcrun.c
new file mode 100644
index 00000000000..c8fe3948e56
--- /dev/null
+++ b/lang/open-cobol-ce/patches/patch-bin_cobcrun.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-bin_cobcrun.c,v 1.1 2013/05/26 04:13:05 ryoon Exp $
+
+* Some patform has no getopt_long_only.
+
+--- bin/cobcrun.c.orig 2013-02-02 20:44:08.000000000 +0000
++++ bin/cobcrun.c
+@@ -107,7 +107,7 @@ process_command_line (int argc, char *ar
+ return 99;
+ }
+
+- c = getopt_long_only (argc, argv, short_options, long_options, &idx);
++ c = getopt_long (argc, argv, short_options, long_options, &idx);
+ if (c > 0) {
+ switch (c) {
+ case '?':