summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorxtraeme <xtraeme>2004-07-06 09:05:04 +0000
committerxtraeme <xtraeme>2004-07-06 09:05:04 +0000
commit0251a8c8b206c686ee613ffcf4dd91050361d297 (patch)
tree072742ecefd0b2fb0cb1ffdb6b266c4e24b017d3 /lang
parent36db06b89c6b21448d7f3af603c5c5fcd3eb1035 (diff)
downloadpkgsrc-0251a8c8b206c686ee613ffcf4dd91050361d297.tar.gz
Make sure that the libraries are found at runtime when running a cobol
program, disable readline for now (it's optional), change PKGNAME to opencobol for consistency with PKGBASE. Bump PKGREVISION because now "opencobol" works fine.
Diffstat (limited to 'lang')
-rw-r--r--lang/opencobol/Makefile19
1 files changed, 16 insertions, 3 deletions
diff --git a/lang/opencobol/Makefile b/lang/opencobol/Makefile
index be7755881e0..27c1133269b 100644
--- a/lang/opencobol/Makefile
+++ b/lang/opencobol/Makefile
@@ -1,7 +1,9 @@
-# $NetBSD: Makefile,v 1.1.1.1 2004/06/29 02:57:36 xtraeme Exp $
+# $NetBSD: Makefile,v 1.2 2004/07/06 09:05:04 xtraeme Exp $
#
DISTNAME= open-cobol-0.23
+PKGNAME= ${DISTNAME:S/-//}
+PKGREVISION= 1
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=open-cobol/}
@@ -19,16 +21,27 @@ USE_PKGLOCALEDIR= yes
INFO_FILES= open-cobol.info
-CONFIGURE_ARGS+= --with-readline
+CONFIGURE_ARGS+= --without-readline
CONFIGURE_ARGS+= --with-lfs
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
CONF_FILES= ${EGDIR}/libconf.conf ${PKG_SYSCONFDIR}/libconf.conf
+.include "../../mk/bsd.prefs.mk"
+
+SUBST_CLASSES= lnk
+SUBST_STAGE.lnk= post-patch
+SUBST_FILES.lnk= configure
+SUBST_SED.lnk= -e "s|COBC_LIBS=\"\"|COBC_LIBS=\"\$$LDFLAGS\"|g" \
+ -e "s|LIBCOB_LIBS=\"-lm\"|LIBCOB_LIBS=\"-lm \$$LDFLAGS\"|g"
+.if ${OPSYS} == "NetBSD"
+SUBST_SED.lnk+= -e "s,-lncurses,-lcurses,g"
+.endif
+SUBST_MESSAGE.lnk= "Fixing linking flags."
+
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/gmp/buildlink3.mk"
.include "../../devel/libtool/buildlink3.mk"
.include "../../devel/ncurses/buildlink3.mk"
-.include "../../devel/readline/buildlink3.mk"
.include "../../mk/bdb.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"