diff options
author | xtraeme <xtraeme@pkgsrc.org> | 2004-07-06 09:05:04 +0000 |
---|---|---|
committer | xtraeme <xtraeme@pkgsrc.org> | 2004-07-06 09:05:04 +0000 |
commit | a4ec65f46110069f05f55b06e7c815c129686e86 (patch) | |
tree | 072742ecefd0b2fb0cb1ffdb6b266c4e24b017d3 /lang/opencobol | |
parent | 3a737853631239233b10fcb43f54f21fe5ac4025 (diff) | |
download | pkgsrc-a4ec65f46110069f05f55b06e7c815c129686e86.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/opencobol')
-rw-r--r-- | lang/opencobol/Makefile | 19 |
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" |