pkgsrc/devel/m4/Makefile

42 lines
1.1 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.47 2007/05/24 21:51:47 dmcmahill Exp $
Update to 1.4.9: Version 1.4.9 - 23 Mar 2007, by Eric Blake (CVS version 1.4.8c) * Minor documentation and portability cleanups. Version 1.4.8b - 24 Feb 2007, by Eric Blake (CVS version 1.4.8a) * Fix a regression introduced in 1.4.8 that made m4 unable to process files larger than 2GiB on some platforms. * Fix a regression introduced in 1.4.8 that made m4 dump core when invoked as 'm4 -- file'. * The `eval' builtin now follows C precedence rules. Additionally, the short-circuit operators correctly short-circuit division by zero. The previously undocumented alias of '=' meaning '==' in eval now triggers a deprecation warning, so that a future version of M4 can implement a form of variable assignment as an extension. * The `include' builtin now affects exit status on failure, as required by POSIX. Use `sinclude' if you need a successful exit status. * The `-E'/`--fatal-warnings' command-line option now has two levels. When specified only once, warnings affect exit status, but execution continues, so that you can see all warnings instead of fixing them one at a time. To acheive 1.4.8 behavior, where the first warning immediately exits, specify -E twice on the command line. * A new `--warn-macro-sequence' command-line option allows detection of sequences in `define' and `pushdef' definitions that match an optional regular expression. The default regular expression is `\$\({[^}]*}\|[0-9][0-9]+\)', corresponding to the sequences that might not behave correctly when upgrading to the eventual M4 2.0. By default, M4 2.0 will follow the POSIX requirement that a macro definition containing `$11' must expand to the first argument concatenated with 1, rather than the eleventh argument; and will take advantage of the POSIX wording that allows implementations to treat `${11}' as the eleventh argument instead of literal text. Be aware that Autoconf 2.61 will not work with this option enabled with the default regular expression; but Autoconf 2.62 will be compatible with this option. * Improved portability to platforms such as BSD/OS and AIX.
2007-04-08 20:04:22 +02:00
DISTNAME= m4-1.4.9
PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU:=m4/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://directory.fsf.org/gnum4.html
COMMENT= GNU version of UNIX m4 macro language processor
2004-01-05 12:28:07 +01:00
PKG_INSTALLATION_TYPES= overwrite pkgviews
2006-11-02 18:59:37 +01:00
PKG_DESTDIR_SUPPORT= user-destdir
2004-01-05 12:28:07 +01:00
2001-07-14 13:54:12 +02:00
GNU_CONFIGURE= yes
INFO_FILES= # PLIST
2003-08-09 09:03:14 +02:00
TEST_TARGET= check
.include "../../mk/bsd.prefs.mk"
.if defined(GNU_PROGRAM_PREFIX)
CONFIGURE_ARGS+= --program-prefix=${GNU_PROGRAM_PREFIX:Q}
.endif
PLIST_SUBST+= GNU_PROGRAM_PREFIX=${GNU_PROGRAM_PREFIX:Q}
BUILD_DEFS+= GNU_PROGRAM_PREFIX
.if !defined(GNU_PROGRAM_PREFIX) || ${GNU_PROGRAM_PREFIX} != "g"
PLIST_SUBST+= GM4_LINK=""
.else
PLIST_SUBST+= GM4_LINK="@comment "
.endif
post-install:
2006-11-02 18:59:37 +01:00
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/m4
${INSTALL_DATA} ${WRKSRC}/examples/*.m4 ${DESTDIR}${PREFIX}/share/examples/m4
.if !defined(GNU_PROGRAM_PREFIX) || ${GNU_PROGRAM_PREFIX} != "g"
2006-11-02 18:59:37 +01:00
${LN} -sf ${GNU_PROGRAM_PREFIX}m4 ${DESTDIR}${PREFIX}/bin/gm4
.endif
.include "../../mk/bsd.pkg.mk"