blob: 40a01a090ca6244882447aab648d14fb2f8865c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# $NetBSD: Makefile,v 1.58 2009/04/20 09:57:37 wiz Exp $
DISTNAME= m4-1.4.13
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU:=m4/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.gnu.org/software/m4/
COMMENT= GNU version of UNIX m4 macro language processor
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= yes
INFO_FILES= yes
LICENSE= gnu-gpl-v3
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:
${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"
|