Thu Jun 28 07:44:39 2012 UTC ()
Add m4 to USE_TOOLS.


(dholland)
diff -r1.30 -r1.31 pkgsrc/lang/gforth/Makefile
diff -r0 -r1.1 pkgsrc/lang/gforth/hacks.mk

cvs diff -r1.30 -r1.31 pkgsrc/lang/gforth/Makefile (expand / switch to unified diff)

--- pkgsrc/lang/gforth/Makefile 2012/06/28 05:41:11 1.30
+++ pkgsrc/lang/gforth/Makefile 2012/06/28 07:44:39 1.31
@@ -1,36 +1,36 @@ @@ -1,36 +1,36 @@
1# $NetBSD: Makefile,v 1.30 2012/06/28 05:41:11 dholland Exp $ 1# $NetBSD: Makefile,v 1.31 2012/06/28 07:44:39 dholland Exp $
2 2
3DISTNAME= gforth-0.7.0 3DISTNAME= gforth-0.7.0
4PKGREVISION= 3 4PKGREVISION= 3
5CATEGORIES= lang 5CATEGORIES= lang
6MASTER_SITES= ${MASTER_SITE_GNU:=gforth/} 6MASTER_SITES= ${MASTER_SITE_GNU:=gforth/}
7MASTER_SITES+= http://www.complang.tuwien.ac.at/forth/gforth/ 7MASTER_SITES+= http://www.complang.tuwien.ac.at/forth/gforth/
8 8
9MAINTAINER= simonb@NetBSD.org 9MAINTAINER= simonb@NetBSD.org
10HOMEPAGE= http://www.complang.tuwien.ac.at/forth/gforth/ 10HOMEPAGE= http://www.complang.tuwien.ac.at/forth/gforth/
11COMMENT= Fast interpreter for the Forth language 11COMMENT= Fast interpreter for the Forth language
12LICENSE= gnu-gpl-v3 12LICENSE= gnu-gpl-v3
13 13
14ONLY_FOR_PLATFORM= *-*-alpha *-*-i386 *-*-m68k *-*-powerpc *-*-sparc 14ONLY_FOR_PLATFORM= *-*-alpha *-*-i386 *-*-m68k *-*-powerpc *-*-sparc
15ONLY_FOR_PLATFORM+= *-*-x86_64 15ONLY_FOR_PLATFORM+= *-*-x86_64
16 16
17PKG_DESTDIR_SUPPORT= user-destdir 17PKG_DESTDIR_SUPPORT= user-destdir
18INFO_FILES= yes 18INFO_FILES= yes
19 19
20GNU_CONFIGURE= YES 20GNU_CONFIGURE= YES
21 21
22USE_LIBTOOL= yes 22USE_LIBTOOL= yes
23USE_TOOLS+= autoconf automake aclocal 23USE_TOOLS+= autoconf automake aclocal m4
24USE_TOOLS+= makeinfo gzip 24USE_TOOLS+= makeinfo gzip
25USE_TOOLS+= perl:build 25USE_TOOLS+= perl:build
26 26
27MAKE_JOBS_SAFE= no # fresh Gforth is required to build doc 27MAKE_JOBS_SAFE= no # fresh Gforth is required to build doc
28BUILD_TARGET= all info # doc 28BUILD_TARGET= all info # doc
29TEST_TARGET= check 29TEST_TARGET= check
30 30
31# Make sure elisp will be installed even if no emacs installed. 31# Make sure elisp will be installed even if no emacs installed.
32CONFIGURE_ENV+= EMACS=${PREFIX}/bin/emacs 32CONFIGURE_ENV+= EMACS=${PREFIX}/bin/emacs
33CFLAGS+= -Dunix 33CFLAGS+= -Dunix
34BUILDLINK_TRANSFORM+= rm:-m486 # let it build with contemporary GCC 34BUILDLINK_TRANSFORM+= rm:-m486 # let it build with contemporary GCC
35INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} \ 35INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} \
36 infodir=${PREFIX:Q}/${PKGINFODIR:Q} \ 36 infodir=${PREFIX:Q}/${PKGINFODIR:Q} \

File Added: pkgsrc/lang/gforth/hacks.mk
# $NetBSD: hacks.mk,v 1.1 2012/06/28 07:44:39 dholland Exp $

.include "../../mk/bsd.prefs.mk"

#
# A bug in the offending versions (listed below) in main.c of NetBSD's
# m4 causes the build to loop forever allocating memory, and thus
# exhaust swap. Note that these versions were never in a release, but
# their existence did span most of the 5.99.x period and early
# netbsd-6 prereleases. Therefore, updating the broken system binary
# is the best course of action. Note that because TOOLS_PATH.m4 does
# not get defined early enough it does not seem to be possible to set
# PKG_FAIL_REASON.
#

.if ${OPSYS} == "NetBSD"
pre-configure:
	@${ECHO} '=> Checking ${TOOLS_PATH.m4}'
	@set -e;							\
	m4_main_ver=`ident ${TOOLS_PATH.m4} |				\
			grep 'NetBSD: main.c' |				\
			awk '{print $$3}'`;				\
	case "$$m4_main_ver" in						\
		1.38|1.39]|1.40|1.41)					\
			${ECHO} "${TOOLS_PATH.m4} contains main.c"	\
				"$$m4_main_ver.";			\
			${ECHO} "Building this package using"		\
				"${TOOLS_PATH.m4} will run out of swap.";\
			${ECHO} "Please update ${TOOLS_PATH.m4} from CVS.";\
			exit 1;						\
		;;							\
	esac
.endif