From 9b1795965708893720f3fe5bf837fc7cf2a8a239 Mon Sep 17 00:00:00 2001 From: obache Date: Mon, 11 Dec 2006 12:53:02 +0000 Subject: Fix check of gmp in configure, taken from 0.33 pre release. This problem was reported in PR 35221. Also add test make target. --- lang/opencobol/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'lang/opencobol') 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" -- cgit v1.2.3