blob: afb042a66a73ea1fd575bd9e70e0c49b7b591cc5 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# $NetBSD: Makefile,v 1.121 2022/11/17 23:51:33 wiz Exp $
DISTNAME= make-4.4
PKGNAME= g${DISTNAME}
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU:=make/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.gnu.org/software/make/make.html
COMMENT= GNU version of 'make' utility
LICENSE= gnu-gpl-v3
USE_FEATURES= snprintf
GNU_CONFIGURE= yes
TEXINFO_REQD+= 4.0
INFO_FILES= yes
TEST_TARGET= check
USE_TOOLS+= perl:test
CONFIGURE_ARGS+= --program-prefix=g
# workaround for broken strndup
CONFIGURE_ARGS.MirBSD+= ac_cv_func_strndup=no
# XXX: Do not install gmake setgid and do not override the owner group
# XXX: based on possible /dev/kmem permissions.
CONFIGURE_ARGS+= ac_cv_func_getloadavg_setgid=no
.include "../../mk/bsd.prefs.mk"
#
# Keep in sync with devel/bmake, the goal is to ensure we use the same shell
# that was selected by bootstrap.
#
.if ${TOOLS_PLATFORM.sh:M?*/bin/mksh}
DEPENDS+= mksh-[0-9]*:../../shells/mksh
CPPFLAGS+= -DPKGSRC_DEFAULT_SHELL="\"${PREFIX}/bin/mksh\""
.elif ${TOOLS_PLATFORM.sh:M?*/bin/pdksh}
DEPENDS+= pdksh-[0-9]*:../../shells/pdksh
CPPFLAGS+= -DPKGSRC_DEFAULT_SHELL="\"${PREFIX}/bin/pdksh\""
.elif ${OPSYS} == "SunOS" && exists(/usr/bin/bash)
CPPFLAGS+= -DPKGSRC_DEFAULT_SHELL="\"/usr/bin/bash\""
.endif
# kernel bug, fixed in NetBSD 9.99.82
.if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} < 099982
CONFIGURE_ARGS.NetBSD+= --disable-posix-spawn
.endif
.include "options.mk"
AUTO_MKDIRS= yes
post-install:
${LN} -sf ${PREFIX}/bin/gmake ${DESTDIR}${PREFIX}/${PKGGNUDIR}bin/make
${LN} -sf ${PREFIX}/${PKGMANDIR}/man1/gmake.1 ${DESTDIR}${PREFIX}/${PKGGNUDIR}${PKGMANDIR}/man1/make.1
.include "../../mk/bsd.pkg.mk"
|