pkgsrc/devel/m4/Makefile

47 lines
1.2 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.59 2009/05/19 08:59:11 wiz Exp $
DISTNAME= m4-1.4.13
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU:=m4/}
MAINTAINER= pkgsrc-users@NetBSD.org
2008-04-27 02:01:56 +02:00
HOMEPAGE= http://www.gnu.org/software/m4/
COMMENT= GNU version of UNIX m4 macro language processor
LICENSE= gnu-gpl-v3
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= yes
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
PLIST_VARS+= gm4
.if !defined(GNU_PROGRAM_PREFIX) || ${GNU_PROGRAM_PREFIX} != "g"
PLIST.gm4= yes
.endif
.if ${OPSYS} == "DragonFly"
post-patch:
${CP} ${FILESDIR}/bsd-fflush.c ${WRKSRC}/lib/fflush.c
.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"