2009-05-19 10:59:00 +02:00
|
|
|
# $NetBSD: Makefile,v 1.59 2009/05/19 08:59:11 wiz Exp $
|
1997-10-06 16:06:09 +02:00
|
|
|
|
2009-04-20 11:57:37 +02:00
|
|
|
DISTNAME= m4-1.4.13
|
1997-10-06 16:06:09 +02:00
|
|
|
CATEGORIES= devel
|
2002-12-23 21:08:50 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=m4/}
|
1997-10-06 16:06:09 +02:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2008-04-27 02:01:56 +02:00
|
|
|
HOMEPAGE= http://www.gnu.org/software/m4/
|
2004-09-03 11:47:05 +02:00
|
|
|
COMMENT= GNU version of UNIX m4 macro language processor
|
2009-05-19 10:59:00 +02:00
|
|
|
LICENSE= gnu-gpl-v3
|
1997-10-06 16:06:09 +02:00
|
|
|
|
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
|
2007-07-22 08:34:41 +02:00
|
|
|
INFO_FILES= yes
|
1998-01-24 05:20:19 +01:00
|
|
|
|
2003-08-09 09:03:14 +02:00
|
|
|
TEST_TARGET= check
|
|
|
|
|
2002-12-23 21:08:50 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if defined(GNU_PROGRAM_PREFIX)
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --program-prefix=${GNU_PROGRAM_PREFIX:Q}
|
2002-12-23 21:08:50 +01:00
|
|
|
.endif
|
2005-12-05 21:49:47 +01:00
|
|
|
PLIST_SUBST+= GNU_PROGRAM_PREFIX=${GNU_PROGRAM_PREFIX:Q}
|
2002-12-23 21:08:50 +01:00
|
|
|
BUILD_DEFS+= GNU_PROGRAM_PREFIX
|
|
|
|
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST_VARS+= gm4
|
|
|
|
|
2002-12-23 21:08:50 +01:00
|
|
|
.if !defined(GNU_PROGRAM_PREFIX) || ${GNU_PROGRAM_PREFIX} != "g"
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.gm4= yes
|
2002-12-23 21:08:50 +01:00
|
|
|
.endif
|
|
|
|
|
2007-07-29 16:36:46 +02:00
|
|
|
.if ${OPSYS} == "DragonFly"
|
|
|
|
post-patch:
|
|
|
|
${CP} ${FILESDIR}/bsd-fflush.c ${WRKSRC}/lib/fflush.c
|
|
|
|
.endif
|
|
|
|
|
1997-10-06 16:06:09 +02:00
|
|
|
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
|
2002-12-23 21:08:50 +01:00
|
|
|
.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
|
2002-12-23 21:08:50 +01:00
|
|
|
.endif
|
1997-10-06 16:06:09 +02:00
|
|
|
|
1998-04-15 12:38:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|