pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/opencobol Make sure that the libraries are found ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/607572c98e4b
branches: trunk
changeset: 477604:607572c98e4b
user: xtraeme <xtraeme%pkgsrc.org@localhost>
date: Tue Jul 06 09:05:04 2004 +0000
description:
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:
lang/opencobol/Makefile | 19 ++++++++++++++++---
1 files changed, 16 insertions(+), 3 deletions(-)
diffs (44 lines):
diff -r 39e538fa444c -r 607572c98e4b lang/opencobol/Makefile
--- a/lang/opencobol/Makefile Tue Jul 06 07:58:48 2004 +0000
+++ b/lang/opencobol/Makefile Tue Jul 06 09:05:04 2004 +0000
@@ -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 @@
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"
Home |
Main Index |
Thread Index |
Old Index