blob: f79356cc900ffb79bfb40f14654753e2d002e82b (
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
|
# $NetBSD: Makefile,v 1.2 2018/11/09 06:59:20 rillig Exp $
#
DISTNAME= env-vars-1.0
CATEGORIES= regress
MASTER_SITES= # none
DISTFILES= # none
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Demonstrates the various *_ENV variables
LICENSE= 2-clause-bsd
USE_TOOLS+= printf env sed sort
NO_CHECKSUM= yes
HAS_CONFIGURE= yes
WRKSRC= ${WRKDIR}
ENV_VARS+= PKGSRC_MAKE_ENV
ENV_VARS+= EXTRACT_ENV
ENV_VARS+= CONFIGURE_ENV
ENV_VARS+= ALL_ENV
ENV_VARS+= MAKE_ENV
ENV_VARS+= BSD_MAKE_ENV
ENV_VARS+= INSTALL_ENV
.for v in ${ENV_VARS}
${v}+= ${v}_set=yes
.endfor
do-extract:
${CP} ${FILESDIR}/configure ${FILESDIR}/Makefile ${WRKSRC}
.include "../../mk/bsd.pkg.mk"
# These definitions must be below bsd.pkg.mk, or their pkgsrc default
# actions will not be run.
#
pre-fetch do-fetch post-fetch \
pre-extract do-extract post-extract \
pre-patch do-patch post-patch \
pre-configure do-configure post-configure \
pre-build do-build post-build \
pre-install do-install post-install: \
save-env-vars
save-env-vars: .USE .PHONY
${RUN} \
env | sed -n -e 's/^\([^=]*\)_set=yes$$/\1/p' | LC_ALL=C sort \
> "$$REGRESS_TMPDIR/${.TARGET}.vars"
|