aboutsummaryrefslogtreecommitdiff
path: root/lang/open-cobol-devel
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-08-06 13:09:46 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-08-06 13:09:46 +0000
commit828b2e2e855e7774d59497fa92db02e8265f2ee3 (patch)
tree4dc2f4f6bbe5b3b497ea209b29cc0a5f98beefee /lang/open-cobol-devel
parent1352cda2c654307840f2ee8003eda05d0e9c4b6a (diff)
downloadports-828b2e2e855e7774d59497fa92db02e8265f2ee3.tar.gz
ports-828b2e2e855e7774d59497fa92db02e8265f2ee3.zip
add open-cobol 0.9.7
An open-source COBOL compiler
Notes
Notes: svn path=/head/; revision=64104
Diffstat (limited to 'lang/open-cobol-devel')
-rw-r--r--lang/open-cobol-devel/Makefile33
-rw-r--r--lang/open-cobol-devel/distinfo1
-rw-r--r--lang/open-cobol-devel/files/patch-fileio.h11
-rw-r--r--lang/open-cobol-devel/pkg-comment1
-rw-r--r--lang/open-cobol-devel/pkg-descr4
-rw-r--r--lang/open-cobol-devel/pkg-plist26
6 files changed, 76 insertions, 0 deletions
diff --git a/lang/open-cobol-devel/Makefile b/lang/open-cobol-devel/Makefile
new file mode 100644
index 000000000000..c2489b35bdaa
--- /dev/null
+++ b/lang/open-cobol-devel/Makefile
@@ -0,0 +1,33 @@
+# ex:ts=8
+# Ports collection makefile for: open-cobol
+# Date created: Aug 6, 2002
+# Whom: ijliao
+#
+# $FreeBSD$
+#
+
+PORTNAME= open-cobol
+PORTVERSION= 0.9.7
+CATEGORIES= lang
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= ports@FreeBSD.org
+
+LIB_DEPENDS= intl:${PORTSDIR}/devel/gettext \
+ iconv:${PORTSDIR}/converters/libiconv \
+ gnugetopt:${PORTSDIR}/devel/libgnugetopt \
+ db4:${PORTSDIR}/databases/db4 \
+ gmp.6:${PORTSDIR}/math/libgmp4
+
+USE_REINPLACE= yes
+USE_BISON= yes
+USE_LIBTOOL= yes
+CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt -lintl"
+CONFIGURE_ARGS= --with-readline
+INSTALLS_SHLIB= yes
+
+post-patch:
+ @${REINPLACE_CMD} -e "s|-ldb|-ldb4|g" ${WRKSRC}/configure
+
+.include <bsd.port.mk>
diff --git a/lang/open-cobol-devel/distinfo b/lang/open-cobol-devel/distinfo
new file mode 100644
index 000000000000..8d27ba88212b
--- /dev/null
+++ b/lang/open-cobol-devel/distinfo
@@ -0,0 +1 @@
+MD5 (open-cobol-0.9.7.tar.gz) = 399a9cf4f6cf8226ba6b8e424df56e2e
diff --git a/lang/open-cobol-devel/files/patch-fileio.h b/lang/open-cobol-devel/files/patch-fileio.h
new file mode 100644
index 000000000000..fd46730f0058
--- /dev/null
+++ b/lang/open-cobol-devel/files/patch-fileio.h
@@ -0,0 +1,11 @@
+--- libcob/fileio.h.orig Tue Aug 6 15:19:11 2002
++++ libcob/fileio.h Tue Aug 6 15:19:18 2002
+@@ -21,7 +21,7 @@
+ #define COB_FILEIO_H
+
+ #include <stdio.h>
+-#include <db.h>
++#include <db4/db.h>
+ #include <libcob/common.h>
+
+ #define COB_EQ 1 /* x == y */
diff --git a/lang/open-cobol-devel/pkg-comment b/lang/open-cobol-devel/pkg-comment
new file mode 100644
index 000000000000..2e108a1ed7aa
--- /dev/null
+++ b/lang/open-cobol-devel/pkg-comment
@@ -0,0 +1 @@
+An open-source COBOL compiler
diff --git a/lang/open-cobol-devel/pkg-descr b/lang/open-cobol-devel/pkg-descr
new file mode 100644
index 000000000000..b2a60776171f
--- /dev/null
+++ b/lang/open-cobol-devel/pkg-descr
@@ -0,0 +1,4 @@
+OpenCOBOL is an open-source COBOL compiler, which translates COBOL programs
+o C code and compiles it using GCC.
+
+WWW: http://open-cobol.sourceforge.net/
diff --git a/lang/open-cobol-devel/pkg-plist b/lang/open-cobol-devel/pkg-plist
new file mode 100644
index 000000000000..3f853812cfe7
--- /dev/null
+++ b/lang/open-cobol-devel/pkg-plist
@@ -0,0 +1,26 @@
+bin/cob-config
+bin/cobc
+bin/cobpp
+etc/open-cobol/libcob.conf
+@dirrm etc/open-cobol
+include/libcob.h
+include/libcob/call.h
+include/libcob/cobconfig.h
+include/libcob/common.h
+include/libcob/fileio.h
+include/libcob/move.h
+include/libcob/numeric.h
+include/libcob/screenio.h
+include/libcob/strings.h
+include/libcob/support.h
+include/libcob/termio.h
+@dirrm include/libcob
+@unexec install-info --delete %D/info/open-cobol.info %D/info/dir
+info/open-cobol.info
+@exec install-info %D/info/open-cobol.info %D/info/dir
+lib/libcob.a
+lib/libcob.la
+lib/libcob.so
+lib/libcob.so.0
+share/aclocal/cob.m4
+share/locale/ja/LC_MESSAGES/open-cobol.mo