1b88b19877
* configure.in (VERSION): Bump to 1.4.2. * NEWS: Describe 1.4.2's changes. * src/m4.c (reference_error): Preserve errno, since M4ERROR relies on this. * src/builtin.c (m4_esyscmd): Clear errno before calling popen. (m4_maketemp): Clear errno before calling mkstemp. * src/path.c (path_search): Don't let "free" trash errno when returning NULL. * src/output.c (insert_file): Don't assume errno has a valid value simply because fread returns zero. This fixes a portability bug reported by Marion Hakanson in <http://lists.gnu.org/archive/html/bug-m4/2004-07/msg00029.html>. Fixes PR pkg/27301.
46 lines
1.2 KiB
Makefile
46 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.31 2004/10/26 17:00:44 gavan Exp $
|
|
|
|
DISTNAME= m4-1.4.2
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=m4/}
|
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
|
HOMEPAGE= http://www.gnu.org/directory/gnum4.html
|
|
COMMENT= GNU version of UNIX m4 macro language processor
|
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
USE_BUILDLINK3= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_HAS_INFODIR= no
|
|
MAKE_ENV+= INFO_DIR=${INFO_DIR}
|
|
INFO_FILES= m4.info
|
|
USE_MAKEINFO= yes
|
|
|
|
TEST_TARGET= check
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if defined(GNU_PROGRAM_PREFIX)
|
|
CONFIGURE_ARGS= --program-prefix=${GNU_PROGRAM_PREFIX}
|
|
.endif
|
|
PLIST_SUBST+= GNU_PROGRAM_PREFIX=${GNU_PROGRAM_PREFIX}
|
|
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
|
|
|
|
pre-build:
|
|
${CHMOD} u+w ${WRKSRC}/checks/stamp-checks
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/m4
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.m4 ${PREFIX}/share/examples/m4
|
|
.if !defined(GNU_PROGRAM_PREFIX) || ${GNU_PROGRAM_PREFIX} != "g"
|
|
${LN} -sf ${GNU_PROGRAM_PREFIX}m4 ${PREFIX}/bin/gm4
|
|
.endif
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|