41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.47 2007/05/24 21:51:47 dmcmahill Exp $
|
|
|
|
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
|
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
GNU_CONFIGURE= yes
|
|
INFO_FILES= # PLIST
|
|
|
|
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:
|
|
${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"
|
|
${LN} -sf ${GNU_PROGRAM_PREFIX}m4 ${DESTDIR}${PREFIX}/bin/gm4
|
|
.endif
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|