summaryrefslogtreecommitdiff
path: root/lang/opencobol
diff options
context:
space:
mode:
authorobache <obache>2006-12-11 12:53:02 +0000
committerobache <obache>2006-12-11 12:53:02 +0000
commitd5f22afe7afddfaea26b6c6a47bf306b9ab791e1 (patch)
tree1fc5957fba0732b62a51c759763a6b894e6984ff /lang/opencobol
parent7c52a8771de79d41989bab41b31afc721a012e78 (diff)
downloadpkgsrc-d5f22afe7afddfaea26b6c6a47bf306b9ab791e1.tar.gz
Fix check of gmp in configure, taken from 0.33 pre release.
This problem was reported in PR 35221. Also add test make target.
Diffstat (limited to 'lang/opencobol')
-rw-r--r--lang/opencobol/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/lang/opencobol/Makefile b/lang/opencobol/Makefile
index e1baab247f8..9bf67191510 100644
--- a/lang/opencobol/Makefile
+++ b/lang/opencobol/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2006/10/04 21:46:13 wiz Exp $
+# $NetBSD: Makefile,v 1.13 2006/12/11 12:53:02 obache Exp $
#
DISTNAME= open-cobol-0.23
@@ -18,6 +18,8 @@ USE_PKGLOCALEDIR= yes
INFO_FILES= # PLIST
INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} sysconfdir=${EGDIR:Q}
+TEST_TARGET= check
+
CONFIGURE_ARGS+= --without-readline
CONFIGURE_ARGS+= --with-lfs
CONFIGURE_ENV+= NCURSES_LIB=${BUILDLINK_LDADD.ncurses:Q}
@@ -25,6 +27,12 @@ CONFIGURE_ENV+= NCURSES_LIB=${BUILDLINK_LDADD.ncurses:Q}
EGDIR= ${PREFIX}/share/examples/open-cobol
CONF_FILES= ${EGDIR}/libconf.conf ${PKG_SYSCONFDIR}/libconf.conf
+# XXX: followings can be removed when update to 0.33.
+SUBST_CLASSES+= fixchkgmp
+SUBST_STAGE.fixchkgmp= pre-configure
+SUBST_FILES.fixchkgmp= configure
+SUBST_SED.fixchkgmp= -e 's|__gmp_rand|__gmp_randinit|g'
+
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/gmp/buildlink3.mk"
.include "../../devel/libltdl/buildlink3.mk"