Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 847 lines (722 sloc) 26.218 kb
08518c2a »
2007-08-13 build-env is no longer defined in bsd.pkg.debug.mk.
1 # $NetBSD: bsd.pkg.mk,v 1.1920 2007/08/13 05:24:26 rillig Exp $
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
2 #
970dfa8c »
1998-06-05 move documentation to packages.7. also, remove ts=4 crap.
3 # This file is in the public domain.
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
4 #
c51edb8e »
2005-02-11 Merge down some more visual cleanup from tv-derecurse to reduce diver…
5 # Please see the pkgsrc/doc/guide manual for details on the
6 # variables used in this make file template.
7 #
5201ee39 »
2006-07-08 Update the comments to reflect the current default workflow.
8 # Default sequence for "all" is:
9 #
d7e7a75a »
2006-07-13 * Add a new stage "bootstrap-depends" that happens before all other
10 # bootstrap-depends
11 # fetch
12 # checksum
13 # depends
14 # tools
15 # extract
16 # patch
b96fa8aa »
2006-07-27 After auditing all the packages the ensure that they never invoke the
17 # wrapper
d7e7a75a »
2006-07-13 * Add a new stage "bootstrap-depends" that happens before all other
18 # configure
19 # build
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
20 #
21
00faf003 »
2006-07-06 Fix previous... instead of moving bsd.pkg.barrier.mk down below .MAIN,
22 .MAIN: all
23
7ab04245 »
2006-11-05 Some people really try to run pkgsrc's make with -j5 options. Since that
24 .if defined(.MAKEFLAGS) && !empty(.MAKEFLAGS:M-j*)
25 PKG_FAIL_REASON+= "[bsd.pkg.mk] pkgsrc does not support parallel make for the infrastructure."
a2e94be7 »
2007-01-02 Added an additional line to the parallel error message.
26 PKG_FAIL_REASON+= "[bsd.pkg.mk] Run \"${MAKE} help topic=make_jobs\" to get some parallelism."
7ab04245 »
2006-11-05 Some people really try to run pkgsrc's make with -j5 options. Since that
27 .endif
28
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
29 # Include any preferences, if not already included, and common definitions
30 .include "${.PARSEDIR}/bsd.prefs.mk"
590bceb3 »
2006-06-06 Move some variable definitions out of bsd.prefs.mk and back into
31
4e5278e3 »
2007-07-29 * Add new emulator framework in pkgsrc/mk/emulator that handles all
32 .if defined(EMUL_PLATFORMS) && !empty(EMUL_PLATFORMS)
33 . include "${.PARSEDIR}/emulator/emulator.mk"
34 .endif
35
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
36 .include "${.PARSEDIR}/flavor/bsd.flavor-vars.mk"
37 .include "${.PARSEDIR}/check/bsd.check-vars.mk"
38 .include "${.PARSEDIR}/depends/bsd.depends-vars.mk"
39 .include "${.PARSEDIR}/fetch/bsd.fetch-vars.mk"
40 .include "${.PARSEDIR}/checksum/bsd.checksum-vars.mk"
41 .include "${.PARSEDIR}/extract/bsd.extract-vars.mk"
42 .include "${.PARSEDIR}/patch/bsd.patch-vars.mk"
43 .include "${.PARSEDIR}/configure/bsd.configure-vars.mk"
44 .include "${.PARSEDIR}/build/bsd.build-vars.mk"
45 .include "${.PARSEDIR}/install/bsd.install-vars.mk"
d7e7a75a »
2006-07-13 * Add a new stage "bootstrap-depends" that happens before all other
46
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
47 .include "${.PARSEDIR}/bsd.pkg.error.mk"
590bceb3 »
2006-06-06 Move some variable definitions out of bsd.prefs.mk and back into
48
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
49 .include "${.PARSEDIR}/bsd.hacks.mk"
0b3e6dd7 »
2005-05-09 Teach bsd.pkg.mk to create a phase-specific "makevars.mk" file that
50
c51edb8e »
2005-02-11 Merge down some more visual cleanup from tv-derecurse to reduce diver…
51 ############################################################################
891610c2 »
2005-01-24 Merge a little visual-only cleanup from the tv-derecurse branch:
52 # Transform package Makefile variables and set defaults
c51edb8e »
2005-02-11 Merge down some more visual cleanup from tv-derecurse to reduce diver…
53 ############################################################################
a6fdcd07 »
2003-10-02 Fail-safe check for circular dependencies.
54
891610c2 »
2005-01-24 Merge a little visual-only cleanup from the tv-derecurse branch:
55 MKCRYPTO?= YES # build crypto packages by default
56
57 ##### Variant spellings
58
59 .if defined(LICENCE) && !defined(LICENSE)
60 LICENSE= ${LICENCE}
61 .endif
62 .if defined(ACCEPTABLE_LICENCES) && !defined(ACCEPTABLE_LICENSES)
63 ACCEPTABLE_LICENSES= ${ACCEPTABLE_LICENCES}
64 .endif
65
66 ##### PKGBASE, PKGNAME[_NOREV], PKGVERSION
85d24187 »
1999-05-24 Implement some parts of proposals posted to tech-pkg:
67
a9df889f »
2000-06-03 Oops; use ?= for PKGBASE and PKGVERSION, so pkgs can derive their PKG…
68 PKGBASE?= ${PKGNAME:C/-[^-]*$//}
69 PKGVERSION?= ${PKGNAME:C/^.*-//}
75f8ab73 »
2004-09-15 Move definition of PKGNAME and PKGNAME_NOREV higher in the file since…
70 .if defined(PKGREVISION) && !empty(PKGREVISION) && (${PKGREVISION} != "0")
71 . if defined(PKGNAME)
72 PKGNAME_NOREV:= ${PKGNAME}
73 PKGNAME:= ${PKGNAME}nb${PKGREVISION}
74 . else
75 PKGNAME?= ${DISTNAME}nb${PKGREVISION}
76 PKGNAME_NOREV= ${DISTNAME}
77 . endif
78 .else
79 PKGNAME?= ${DISTNAME}
80 PKGNAME_NOREV= ${PKGNAME}
81 .endif
59325452 »
2000-06-03 Add PKGPATH, PKGBASE, PKGVERSION and PKGWILDCARD make(1) variables, s…
82
891610c2 »
2005-01-24 Merge a little visual-only cleanup from the tv-derecurse branch:
83 ##### Others
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
84
c51edb8e »
2005-02-11 Merge down some more visual cleanup from tv-derecurse to reduce diver…
85 BUILD_DEPENDS?= # empty
86 COMMENT?= (no description)
87 DEPENDS?= # empty
891610c2 »
2005-01-24 Merge a little visual-only cleanup from the tv-derecurse branch:
88 DESCR_SRC?= ${PKGDIR}/DESCR
723e0dd1 »
2002-07-02 Deprecate IS_INTERACTIVE, and introduce a finer-grained INTERACTIVE_S…
89 INTERACTIVE_STAGE?= none
41176de4 »
2006-03-04 Point MAINTAINER to pkgsrc-users@NetBSD.org in the case where no
90 MAINTAINER?= pkgsrc-users@NetBSD.org
891610c2 »
2005-01-24 Merge a little visual-only cleanup from the tv-derecurse branch:
91 PKGWILDCARD?= ${PKGBASE}-[0-9]*
92 SVR4_PKGNAME?= ${PKGNAME}
93 WRKSRC?= ${WRKDIR}/${DISTNAME}
94
91808dd0 »
2006-10-09 Introduce _SU_ROOT_USER, which can be used for partially unprivileged
95 # Override for SU_CMD user check
96 _SU_ROOT_USER?= ${ROOT_USER}
eddb4936 »
2006-11-05 Rename _INSTALL_ROOT_USER to REAL_ROOT_USER. Use it as default for
97 REAL_ROOT_USER?= ${ROOT_USER}
98 REAL_ROOT_GROUP?= ${ROOT_GROUP}
91808dd0 »
2006-10-09 Introduce _SU_ROOT_USER, which can be used for partially unprivileged
99
94537088 »
2005-03-18 Fix a gleaming illustration of why using YES/NO variables everywhere
100 .if (defined(INSTALL_UNSTRIPPED) && !empty(INSTALL_UNSTRIPPED:M[yY][eE][sS])) || defined(DEBUG_FLAGS)
101 _INSTALL_UNSTRIPPED= # set (flag used by platform/*.mk)
102 .endif
103
c51edb8e »
2005-02-11 Merge down some more visual cleanup from tv-derecurse to reduce diver…
104 ##### Non-overridable constants
105
106 # Latest versions of tools required for correct pkgsrc operation.
30139023 »
2005-11-05 Use new automatic flag; depend on appropriate pkg_install version.
107 PKGTOOLS_REQD= ${_OPSYS_PKGTOOLS_REQD:U20051103}
7858d2a4 »
2007-08-03 Update _USE_DESTDIR=full handling to use the new -u/-g code and
108 .if ${_USE_DESTDIR} == "user-destdir" && ${PKGTOOLS_REQD} < 20070802
109 PKGTOOLS_REQD= 20070802
110 .endif
111
c51edb8e »
2005-02-11 Merge down some more visual cleanup from tv-derecurse to reduce diver…
112
113 ##### Transform USE_* into dependencies
114
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
115 .include "${.PARSEDIR}/bsd.pkg.use.mk"
c51edb8e »
2005-02-11 Merge down some more visual cleanup from tv-derecurse to reduce diver…
116
a71ee63d »
2005-02-11 Consolidate PLIST_SRC default generation and the plethora of failsafe
117 ############################################################################
118 # Sanity checks
119 ############################################################################
120
891610c2 »
2005-01-24 Merge a little visual-only cleanup from the tv-derecurse branch:
121 # Fail-safe in the case of circular dependencies
122 .if defined(_PKGSRC_DEPS) && defined(PKGNAME) && !empty(_PKGSRC_DEPS:M${PKGNAME})
1442a6e9 »
2005-02-11 Whitespace formatting nits.
123 PKG_FAIL_REASON+= "Circular dependency detected"
891610c2 »
2005-01-24 Merge a little visual-only cleanup from the tv-derecurse branch:
124 .endif
125
a71ee63d »
2005-02-11 Consolidate PLIST_SRC default generation and the plethora of failsafe
126 # PKG_INSTALLATION_TYPE can only be one of two values: "pkgviews" or
127 # "overwrite".
128 .if (${PKG_INSTALLATION_TYPE} != "pkgviews") && \
129 (${PKG_INSTALLATION_TYPE} != "overwrite")
130 PKG_FAIL_REASON+= "PKG_INSTALLATION_TYPE must be \`\`pkgviews'' or \`\`overwrite''."
131 .endif
132
133 .if empty(PKG_INSTALLATION_TYPES:M${PKG_INSTALLATION_TYPE})
134 PKG_FAIL_REASON+= "This package doesn't support PKG_INSTALLATION_TYPE=${PKG_INSTALLATION_TYPE}."
135 .endif
136
137 # Check that we are using up-to-date pkg_* tools with this file.
138 .if !defined(NO_PKGTOOLS_REQD_CHECK)
139 . if ${PKGTOOLS_VERSION} < ${PKGTOOLS_REQD}
4458243f »
2006-06-15 Output PKG_{FAIL,SKIP}_REASON messages to standard error instead of
140 PKG_FAIL_REASON+='The package tools installed on this system are out of date.'
141 PKG_FAIL_REASON+='The installed package tools are dated ${PKGTOOLS_VERSION:C|(....)(..)(..)|\1/\2/\3|} and you must'
142 PKG_FAIL_REASON+='update them to at least ${PKGTOOLS_REQD:C|(....)(..)(..)|\1/\2/\3|} using the following command:'
9b4c639b »
2007-04-01 Fix quoting issue that gave syntax error when printing the message
143 PKG_FAIL_REASON+=' '
4458243f »
2006-06-15 Output PKG_{FAIL,SKIP}_REASON messages to standard error instead of
144 PKG_FAIL_REASON+=' (cd ${PKGSRCDIR}/pkgtools/pkg_install && ${MAKE} clean && ${MAKE} update)'
a71ee63d »
2005-02-11 Consolidate PLIST_SRC default generation and the plethora of failsafe
145 . endif
146 .endif # !NO_PKGTOOLS_REQD_CHECK
147
148 .if defined(ALL_TARGET)
149 PKG_FAIL_REASON+='ALL_TARGET is deprecated and must be replaced with BUILD_TARGET.'
150 .endif
151
152 .if defined(NO_WRKSUBDIR)
153 PKG_FAIL_REASON+='NO_WRKSUBDIR has been deprecated - please replace it with an explicit'
154 PKG_FAIL_REASON+='assignment of WRKSRC= $${WRKDIR}'
155 .endif # NO_WRKSUBDIR
156
157 # We need to make sure the buildlink-x11 package is not installed since it
158 # breaks builds that use imake.
159 .if defined(USE_IMAKE)
160 . if exists(${LOCALBASE}/lib/X11/config/buildlinkX11.def) || \
161 exists(${X11BASE}/lib/X11/config/buildlinkX11.def)
162 PKG_FAIL_REASON+= "${PKGNAME} uses imake, but the buildlink-x11 package was found." \
163 " Please deinstall it (pkg_delete buildlink-x11)."
164 . endif
165 .endif # USE_IMAKE
166
167 .if !defined(CATEGORIES) || !defined(DISTNAME)
168 PKG_FAIL_REASON+='CATEGORIES and DISTNAME are mandatory.'
169 .endif
170
171 .if defined(PKG_PATH)
172 PKG_FAIL_REASON+='Please unset PKG_PATH before doing pkgsrc work!'
173 .endif
174
175 .if defined(MASTER_SITE_SUBDIR)
176 PKG_FAIL_REASON+='MASTER_SITE_SUBDIR is deprecated and must be replaced with MASTER_SITES.'
177 .endif
178
179 .if defined(PATCH_SITE_SUBDIR)
180 PKG_FAIL_REASON+='PATCH_SITE_SUBDIR is deprecated and must be replaced with PATCH_SITES.'
181 .endif
182
183 .if defined(ONLY_FOR_ARCHS) || defined(NOT_FOR_ARCHS) \
184 || defined(ONLY_FOR_OPSYS) || defined(NOT_FOR_OPSYS)
185 PKG_FAIL_REASON+='ONLY/NOT_FOR_ARCHS/OPSYS are deprecated and must be replaced with ONLY/NOT_FOR_PLATFORM.'
186 .endif
187
891610c2 »
2005-01-24 Merge a little visual-only cleanup from the tv-derecurse branch:
188 # Allow variables to be set on a per-OS basis
189 OPSYSVARS+= CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS
190 .for _var_ in ${OPSYSVARS:O}
191 . if defined(${_var_}.${OPSYS})
192 ${_var_}+= ${${_var_}.${OPSYS}}
193 . elif defined(${_var_}.*)
194 ${_var_}+= ${${_var_}.*}
195 . endif
196 .endfor
197
4d05ff63 »
2005-02-11 Visual cleanup from tv-derecurse:
198 CPPFLAGS+= ${CPP_PRECOMP_FLAGS}
7c687011 »
2005-11-14 Removed trailing white-space.
199
4d05ff63 »
2005-02-11 Visual cleanup from tv-derecurse:
200 ALL_ENV+= CC=${CC:Q}
4a3ba333 »
2005-05-10 In make variables, quotes protect embedded whitespace in words, so we
201 ALL_ENV+= CFLAGS=${CFLAGS:M*:Q}
202 ALL_ENV+= CPPFLAGS=${CPPFLAGS:M*:Q}
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
203 ALL_ENV+= CXX=${CXX:Q}
4a3ba333 »
2005-05-10 In make variables, quotes protect embedded whitespace in words, so we
204 ALL_ENV+= CXXFLAGS=${CXXFLAGS:M*:Q}
4d05ff63 »
2005-02-11 Visual cleanup from tv-derecurse:
205 ALL_ENV+= COMPILER_RPATH_FLAG=${COMPILER_RPATH_FLAG:Q}
3ac1b0c6 »
2005-03-16 make sure we correctly set F77. Addresses PR29666
206 ALL_ENV+= F77=${FC:Q}
4d05ff63 »
2005-02-11 Visual cleanup from tv-derecurse:
207 ALL_ENV+= FC=${FC:Q}
4a3ba333 »
2005-05-10 In make variables, quotes protect embedded whitespace in words, so we
208 ALL_ENV+= FFLAGS=${FFLAGS:M*:Q}
dc9bb840 »
2005-03-20 Reset the current locale to a sane value (that is, 'C') during the build
209 ALL_ENV+= LANG=C
210 ALL_ENV+= LC_COLLATE=C
211 ALL_ENV+= LC_CTYPE=C
212 ALL_ENV+= LC_MESSAGES=C
213 ALL_ENV+= LC_MONETARY=C
214 ALL_ENV+= LC_NUMERIC=C
215 ALL_ENV+= LC_TIME=C
4a3ba333 »
2005-05-10 In make variables, quotes protect embedded whitespace in words, so we
216 ALL_ENV+= LDFLAGS=${LDFLAGS:M*:Q}
4d05ff63 »
2005-02-11 Visual cleanup from tv-derecurse:
217 ALL_ENV+= LINKER_RPATH_FLAG=${LINKER_RPATH_FLAG:Q}
218 ALL_ENV+= PATH=${PATH:Q}:${LOCALBASE}/bin:${X11BASE}/bin
219 ALL_ENV+= PREFIX=${PREFIX}
220
5f620a3c »
2006-10-22 The new variable BSD_MAKE_ENV defines BINOWN, BINGRP, etc.
221 # This variable can be added to MAKE_ENV to ease installation of packages
222 # that use BSD-style Makefiles.
223 BSD_MAKE_ENV= BINOWN=${BINOWN} BINGRP=${BINGRP}
224 BSD_MAKE_ENV+= MANOWN=${MANOWN} MANGRP=${MANGRP}
0df1b330 »
2006-10-22 Added INCSDIR and LIBDIR to BSD_MAKE_ENV.
225 BSD_MAKE_ENV+= BINDIR=${PREFIX}/bin
226 BSD_MAKE_ENV+= INCSDIR=${PREFIX}/include
227 BSD_MAKE_ENV+= LIBDIR=${PREFIX}/lib
228 BSD_MAKE_ENV+= MANDIR=${PREFIX}/${PKGMANDIR}
5f620a3c »
2006-10-22 The new variable BSD_MAKE_ENV defines BINOWN, BINGRP, etc.
229
e2f08fab »
2006-07-15 Split the variable BUILD_DEFS into those that are defined by packages
230 _BUILD_DEFS= ${BUILD_DEFS}
be437156 »
2006-07-17 Added LOCALBASE, PKGINFODIR and PKGMANDIR to _BUILD_DEFS, since they
231 _BUILD_DEFS+= LOCALBASE
232 _BUILD_DEFS+= PKGINFODIR
233 _BUILD_DEFS+= PKGMANDIR
e2f08fab »
2006-07-15 Split the variable BUILD_DEFS into those that are defined by packages
234
891610c2 »
2005-01-24 Merge a little visual-only cleanup from the tv-derecurse branch:
235 # Store the result in the +BUILD_INFO file so we can query for the build
236 # options using "pkg_info -Q PKG_OPTIONS <pkg>".
237 #
238 .if defined(PKG_SUPPORTED_OPTIONS) && defined(PKG_OPTIONS)
e2f08fab »
2006-07-15 Split the variable BUILD_DEFS into those that are defined by packages
239 _BUILD_DEFS+= PKG_OPTIONS
891610c2 »
2005-01-24 Merge a little visual-only cleanup from the tv-derecurse branch:
240 .endif
723e0dd1 »
2002-07-02 Deprecate IS_INTERACTIVE, and introduce a finer-grained INTERACTIVE_S…
241
81787ae8 »
2003-09-02 Merge pkgviews-mk branch into the HEAD by running:
242 .if empty(DEPOT_SUBDIR)
243 PKG_FAIL_REASON+= "DEPOT_SUBDIR may not be empty."
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
244 .endif
e7f1bfb7 »
1998-07-31 - Integrate xpkgwedge with a switch, USE_LOCALBASE_FOR_X11, which leaves
245
8d7abb47 »
2006-06-07 If there is _ZERO_FILESIZE_P, then it's natural to have _NONZERO_FILE…
246 # ZERO_FILESIZE_P exits with a successful return code if the given file
247 # has zero length.
248 # NONZERO_FILESIZE_P exits with a successful return code if the given file
249 # has nonzero length.
f7408c20 »
2006-06-07 Move _ZERO_FILESIZE_P ftom bsd.pkginstall.mk to bsd.pkg.mk so it can …
250 #
8d7abb47 »
2006-06-07 If there is _ZERO_FILESIZE_P, then it's natural to have _NONZERO_FILE…
251 _ZERO_FILESIZE_P= ${AWK} 'END { exit (NR > 0) ? 1 : 0; }'
252 _NONZERO_FILESIZE_P= ${AWK} 'END { exit (NR > 0) ? 0 : 1; }'
f7408c20 »
2006-06-07 Move _ZERO_FILESIZE_P ftom bsd.pkginstall.mk to bsd.pkg.mk so it can …
253
548c62be »
2002-01-04 Add a new variable "UNLIMIT_RESOURCES" which can be used to raise pro…
254 # Automatically increase process limit where necessary for building.
ed673d80 »
2005-11-18 Collapse two .for blocks to improve readability:
255 _ULIMIT_CMD= ${UNLIMIT_RESOURCES:@_lim_@${ULIMIT_CMD_${_lim_}};@}
548c62be »
2002-01-04 Add a new variable "UNLIMIT_RESOURCES" which can be used to raise pro…
256
fa28732b »
2006-06-09 Introduce the capability to gather all the warnings and errors that
257 _INTERACTIVE_COOKIE= ${.CURDIR}/.interactive_stage
8269c22e »
2005-06-04 Added a leading underscore to the names of the *_COOKIE variables, as…
258 _NULL_COOKIE= ${WRKDIR}/.null
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
259
260 # Miscellaneous overridable commands:
33ed0c46 »
1999-11-29 Add code to include the size of a package into both the
261 SHCOMMENT?= ${ECHO_MSG} >/dev/null '***'
0539cd41 »
2001-03-06 Add support for message digests other than md5 into pkgsrc. This is done
262
ca2e0421 »
2004-11-12 Introduce LIBABISUFFIX for platforms which require ABI-dependant libr…
263 LIBABISUFFIX?=
264
85d24187 »
1999-05-24 Implement some parts of proposals posted to tech-pkg:
265 TOUCH_FLAGS?= -f
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
266
42ce3723 »
1999-03-08 Add Solaris support to pkgsrc, using Christos Zoulas' NetBSD emulation
267 # Debugging levels for this file, dependent on PKG_DEBUG_LEVEL definition
268 # 0 == normal, default, quiet operation
269 # 1 == all shell commands echoed before invocation
270 # 2 == shell "set -x" operation
271 PKG_DEBUG_LEVEL?= 0
272 _PKG_SILENT= @
952a343a »
2002-09-26 When PKG_DEBUG_LEVEL=2, set_PKG_DEBUG_SCRIPT is set to "${SH} -x". Use
273 _PKG_DEBUG= # empty
1a923a29 »
2007-08-13 Fixed _PKG_DEBUG_SCRIPT for the case of PKG_DEBUG_LEVEL=0.
274 _PKG_DEBUG_SCRIPT= ${SH}
42ce3723 »
1999-03-08 Add Solaris support to pkgsrc, using Christos Zoulas' NetBSD emulation
275
276 .if ${PKG_DEBUG_LEVEL} > 0
952a343a »
2002-09-26 When PKG_DEBUG_LEVEL=2, set_PKG_DEBUG_SCRIPT is set to "${SH} -x". Use
277 _PKG_SILENT= # empty
42ce3723 »
1999-03-08 Add Solaris support to pkgsrc, using Christos Zoulas' NetBSD emulation
278 .endif
279
280 .if ${PKG_DEBUG_LEVEL} > 1
281 _PKG_DEBUG= set -x;
952a343a »
2002-09-26 When PKG_DEBUG_LEVEL=2, set_PKG_DEBUG_SCRIPT is set to "${SH} -x". Use
282 _PKG_DEBUG_SCRIPT= ${SH} -x
f4e645fd »
1997-09-28 - Add OpenBSD and FreeBSD Ids in the header
283 .endif
284
1abf1adb »
2006-10-22 Added a variable RUN (no leading underscore) as abbreviation for
285 # This variable can be prepended to all shell commands that should not
286 # be printed by default, but when PKGSRC_DEBUG_LEVEL is non-zero.
287 # It also re-adds the error checking that has been removed in 2004 to
288 # make bmake conform to POSIX.
289 #
290 RUN= ${_PKG_SILENT}${_PKG_DEBUG} set -e;
291
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
292 # A few aliases for *-install targets
61d3a994 »
2005-07-17 Override the INSTALL setting in sys.mk that messes up the rest of the
293 INSTALL= ${TOOLS_INSTALL} # XXX override sys.mk
804c41ee »
2004-05-12 Introduce new variables:
294 INSTALL_PROGRAM?= \
616dce3a »
2002-05-29 Replace STRIPFLAG with _STRIPFLAG_INSTALL to fix pkg/15467.
295 ${INSTALL} ${COPY} ${_STRIPFLAG_INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
804c41ee »
2004-05-12 Introduce new variables:
296 INSTALL_GAME?= \
297 ${INSTALL} ${COPY} ${_STRIPFLAG_INSTALL} -o ${GAMEOWN} -g ${GAMEGRP} -m ${GAMEMODE}
298 INSTALL_SCRIPT?= \
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
299 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
804c41ee »
2004-05-12 Introduce new variables:
300 INSTALL_LIB?= \
43e03225 »
2004-04-27 Add a new install macro INSTALL_LIB for use when installing libraries
301 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
804c41ee »
2004-05-12 Introduce new variables:
302 INSTALL_DATA?= \
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
303 ${INSTALL} ${COPY} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE}
0e6e5043 »
2004-08-04 Introduce GAMEDATAMODE and INSTALL_GAME_DATA, which will take care
304 INSTALL_GAME_DATA?= \
305 ${INSTALL} ${COPY} -o ${GAMEOWN} -g ${GAMEGRP} -m ${GAMEDATAMODE}
804c41ee »
2004-05-12 Introduce new variables:
306 INSTALL_MAN?= \
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
307 ${INSTALL} ${COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE}
804c41ee »
2004-05-12 Introduce new variables:
308 INSTALL_PROGRAM_DIR?= \
66d391fc »
2003-07-12 Create directories with mode 0755, since that is what the mtree
309 ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m ${PKGDIRMODE}
7a1caa68 »
2006-04-12 Add INSTALL_GAME_DIR to complement INSTALL_GAME_DATA. The directories
310 INSTALL_GAME_DIR?= \
311 ${INSTALL} -d -o ${GAMEOWN} -g ${GAMEGRP} -m ${GAMEDIRMODE}
804c41ee »
2004-05-12 Introduce new variables:
312 INSTALL_SCRIPT_DIR?= \
2fcd7fe7 »
1998-03-07 Add INSTALL_*_DIR macros.
313 ${INSTALL_PROGRAM_DIR}
804c41ee »
2004-05-12 Introduce new variables:
314 INSTALL_LIB_DIR?= \
43e03225 »
2004-04-27 Add a new install macro INSTALL_LIB for use when installing libraries
315 ${INSTALL_PROGRAM_DIR}
804c41ee »
2004-05-12 Introduce new variables:
316 INSTALL_DATA_DIR?= \
66d391fc »
2003-07-12 Create directories with mode 0755, since that is what the mtree
317 ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m ${PKGDIRMODE}
804c41ee »
2004-05-12 Introduce new variables:
318 INSTALL_MAN_DIR?= \
66d391fc »
2003-07-12 Create directories with mode 0755, since that is what the mtree
319 ${INSTALL} -d -o ${MANOWN} -g ${MANGRP} -m ${PKGDIRMODE}
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
320
f4f63049 »
2005-05-22 Fixed some quoting issues.
321 INSTALL_MACROS= BSD_INSTALL_PROGRAM=${INSTALL_PROGRAM:Q} \
322 BSD_INSTALL_SCRIPT=${INSTALL_SCRIPT:Q} \
323 BSD_INSTALL_LIB=${INSTALL_LIB:Q} \
324 BSD_INSTALL_DATA=${INSTALL_DATA:Q} \
325 BSD_INSTALL_MAN=${INSTALL_MAN:Q} \
326 BSD_INSTALL=${INSTALL:Q} \
327 BSD_INSTALL_PROGRAM_DIR=${INSTALL_PROGRAM_DIR:Q} \
328 BSD_INSTALL_SCRIPT_DIR=${INSTALL_SCRIPT_DIR:Q} \
329 BSD_INSTALL_LIB_DIR=${INSTALL_LIB_DIR:Q} \
330 BSD_INSTALL_DATA_DIR=${INSTALL_DATA_DIR:Q} \
331 BSD_INSTALL_MAN_DIR=${INSTALL_MAN_DIR:Q} \
332 BSD_INSTALL_GAME=${INSTALL_GAME:Q} \
7a1caa68 »
2006-04-12 Add INSTALL_GAME_DIR to complement INSTALL_GAME_DATA. The directories
333 BSD_INSTALL_GAME_DATA=${INSTALL_GAME_DATA:Q} \
334 BSD_INSTALL_GAME_DIR=${INSTALL_GAME_DIR:Q}
c4f66692 »
2007-01-11 Added the INFO_MSG command, which can be used when the user should be
335 MAKE_ENV+= ${INSTALL_MACROS:M*}
336 SCRIPTS_ENV+= ${INSTALL_MACROS:M*}
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
337
7aec351e »
2006-03-15 Always run the pkginstall framework targets to generate the
338 # If pkgsrc is supposed to ensure that tests are run before installation
339 # of the package, then the build targets should be "build test", otherwise
340 # just "build" suffices.
341 #
342 .if !empty(PKGSRC_RUN_TEST:M[yY][eE][sS])
343 _PKGSRC_BUILD_TARGETS= build test
344 .else
345 _PKGSRC_BUILD_TARGETS= build
346 .endif
347
3e5e9661 »
2006-07-05 Refactor configure, build, test and wrapper phases out of bsd.pkg.mk
348 # OVERRIDE_DIRDEPTH represents the common directory depth under
349 # ${WRKSRC} up to which we find the files that need to be
350 # overridden. By default, we search two levels down, i.e.,
351 # */*/file.
352 #
353 OVERRIDE_DIRDEPTH?= 2
354
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
355 # The user can override the NO_PACKAGE by specifying this from
356 # the make command line
357 .if defined(FORCE_PACKAGE)
cee7bd8d »
2001-07-18 Change indentation (whitespace changes only!):
358 . undef NO_PACKAGE
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
359 .endif
360
5026c4be »
2005-01-25 Add alternatives.mk, a file used to manipulate the alternatives system.
361 # Handle alternatives
362 #
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
363 .include "${.PARSEDIR}/alternatives.mk"
5026c4be »
2005-01-25 Add alternatives.mk, a file used to manipulate the alternatives system.
364
04f7e634 »
2000-03-13 Previous commit to bsd.pkg.mk caught some "SMART_MESSAGES" work - doc…
365 # Define SMART_MESSAGES in /etc/mk.conf for messages giving the tree
2899a745 »
2001-01-30 Typo in comment for SMART_MESSAGES.
366 # of dependencies for building, and the current target.
97fe0e14 »
2005-11-18 Use :D and :U constructs in a few more places to collapse some .if de…
367 _PKGSRC_IN?= ===${SMART_MESSAGES:D> ${.TARGET} [${PKGNAME}${_PKGSRC_DEPS}] ===}
fce33061 »
2000-03-13 Fix PACKAGE_DEPENDS_QUICK when installing on Solaris - escape the
368
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
369 # Used to print all the '===>' style prompts - override this to turn them off.
370 ECHO_MSG?= ${ECHO}
91faddd5 »
2006-03-12 Added the variable PHASE_MSG, STEP_MSG, WARNING_MSG and ERROR_MSG to
371 PHASE_MSG?= ${ECHO_MSG} ${_PKGSRC_IN:Q}\>
372 STEP_MSG?= ${ECHO_MSG} "=>"
c4f66692 »
2007-01-11 Added the INFO_MSG command, which can be used when the user should be
373 INFO_MSG?= ${ECHO_MSG} "INFO:"
91faddd5 »
2006-03-12 Added the variable PHASE_MSG, STEP_MSG, WARNING_MSG and ERROR_MSG to
374 WARNING_MSG?= ${ECHO_MSG} 1>&2 "WARNING:"
375 ERROR_MSG?= ${ECHO_MSG} 1>&2 "ERROR:"
568d582d »
2007-01-06 Added the FAIL command, which can be prepended to an arbitrary shell
376 FAIL_MSG?= ${FAIL} ${ERROR_MSG}
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
377
5fdd14fc »
2006-06-07 Add WARNING_CAT and ERROR_CAT which are filters for outputting file
378 WARNING_CAT?= ${SED} -e "s|^|WARNING: |" 1>&2
379 ERROR_CAT?= ${SED} -e "s|^|ERROR: |" 1>&2
380
6348997d »
1998-02-02 Introduce TRUE?=/usr/bin/true, and use it.
381 # How to do nothing. Override if you, for some strange reason, would rather
382 # do something.
383 DO_NADA?= ${TRUE}
384
568d582d »
2007-01-06 Added the FAIL command, which can be prepended to an arbitrary shell
385 # the FAIL command executes its arguments and then exits with a non-zero
386 # status.
387 FAIL?= ${SH} ${PKGSRCDIR}/mk/scripts/fail
388
5da865d4 »
2001-11-28 Move the PKG_SYSCONFDIR logic below the definition of PKGNAME. PKGNAM…
389 #
dc0503f1 »
2005-05-07 Refer doc/pkgsrc.txt instead of Packages.txt.
390 # Config file related settings - see doc/pkgsrc.txt
27734d78 »
2002-02-07 Create a new knob: PKG_SYSCONFVAR
391 #
392 PKG_SYSCONFVAR?= ${PKGBASE}
5da865d4 »
2001-11-28 Move the PKG_SYSCONFDIR logic below the definition of PKGNAME. PKGNAM…
393 PKG_SYSCONFSUBDIR?= # empty
9c8fc30c »
2004-03-29 Set DFLT_PKG_SYSCONDIR to the location that PKG_SYSCONFDIR would have
394 .if ${PKG_INSTALLATION_TYPE} == "overwrite"
81787ae8 »
2003-09-02 Merge pkgviews-mk branch into the HEAD by running:
395 PKG_SYSCONFDEPOTBASE= # empty
b6d609cb »
2003-09-05 Package Makefiles should refer to PKG_SYSCONFBASEDIR instead of
396 PKG_SYSCONFBASEDIR= ${PKG_SYSCONFBASE}
9c8fc30c »
2004-03-29 Set DFLT_PKG_SYSCONDIR to the location that PKG_SYSCONFDIR would have
397 .else
398 . if !empty(PKG_SYSCONFBASE:M${PREFIX}) || \
399 !empty(PKG_SYSCONFBASE:M${PREFIX}/*)
81787ae8 »
2003-09-02 Merge pkgviews-mk branch into the HEAD by running:
400 PKG_SYSCONFDEPOTBASE= # empty
b6d609cb »
2003-09-05 Package Makefiles should refer to PKG_SYSCONFBASEDIR instead of
401 PKG_SYSCONFBASEDIR= ${PKG_SYSCONFBASE}
5da865d4 »
2001-11-28 Move the PKG_SYSCONFDIR logic below the definition of PKGNAME. PKGNAM…
402 . else
9c8fc30c »
2004-03-29 Set DFLT_PKG_SYSCONDIR to the location that PKG_SYSCONFDIR would have
403 PKG_SYSCONFDEPOTBASE= ${PKG_SYSCONFBASE}/${DEPOT_SUBDIR}
404 PKG_SYSCONFBASEDIR= ${PKG_SYSCONFDEPOTBASE}/${PKGNAME}
5da865d4 »
2001-11-28 Move the PKG_SYSCONFDIR logic below the definition of PKGNAME. PKGNAM…
405 . endif
406 .endif
9c8fc30c »
2004-03-29 Set DFLT_PKG_SYSCONDIR to the location that PKG_SYSCONFDIR would have
407 .if empty(PKG_SYSCONFSUBDIR)
408 DFLT_PKG_SYSCONFDIR:= ${PKG_SYSCONFBASEDIR}
409 .else
410 DFLT_PKG_SYSCONFDIR:= ${PKG_SYSCONFBASEDIR}/${PKG_SYSCONFSUBDIR}
411 .endif
412 PKG_SYSCONFDIR= ${DFLT_PKG_SYSCONFDIR}
413 .if defined(PKG_SYSCONFDIR.${PKG_SYSCONFVAR})
414 PKG_SYSCONFDIR= ${PKG_SYSCONFDIR.${PKG_SYSCONFVAR}}
415 PKG_SYSCONFBASEDIR= ${PKG_SYSCONFDIR.${PKG_SYSCONFVAR}}
416 PKG_SYSCONFDEPOTBASE= # empty
417 .endif
c09b8c26 »
2006-11-05 Use REAL_ROOT_USER for configuration dirs.
418 PKG_SYSCONFDIR_PERMS?= ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
5da865d4 »
2001-11-28 Move the PKG_SYSCONFDIR logic below the definition of PKGNAME. PKGNAM…
419
4d05ff63 »
2005-02-11 Visual cleanup from tv-derecurse:
420 ALL_ENV+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q}
e2f08fab »
2006-07-15 Split the variable BUILD_DEFS into those that are defined by packages
421 _BUILD_DEFS+= PKG_SYSCONFBASEDIR PKG_SYSCONFDIR
5da865d4 »
2001-11-28 Move the PKG_SYSCONFDIR logic below the definition of PKGNAME. PKGNAM…
422
57095a18 »
2005-04-30 Split replace.mk into two parts, one of which is included by bsd.pref…
423 # These are all of the tools use by pkgsrc Makefiles. This should
424 # eventually be split up into lists of tools required by different
425 # phases of a pkgsrc build.
426 #
adc430f0 »
2005-07-15 Drop distinction between PKGSRC_USE_TOOLS and USE_TOOLS by making
427 USE_TOOLS+= \
25e3da57 »
2005-05-16 We only need "date" to write the date into the +PRESERVE file.
428 [ awk basename cat chgrp chmod chown cmp cp cut dirname echo \
429 egrep env false file find grep head hostname id install ln ls \
f129ad90 »
2006-10-10 Added printf to USE_TOOLS, because it is used heavily by the "debug" and
430 mkdir mv pax printf pwd rm rmdir sed sh sort \
431 tail test touch tr true wc xargs
29dde039 »
2005-05-16 tsort is only used by bsd.bulk-pkg.mk.
432
d7e7a75a »
2006-07-13 * Add a new stage "bootstrap-depends" that happens before all other
433 USE_TOOLS+= ${NO_CHECKSUM:D:Udigest\:bootstrap}
434
b61b2f55 »
2005-05-16 Fix mistake in previous commit -- expr is required by the wrapper
435 # bsd.wrapper.mk
adc430f0 »
2005-07-15 Drop distinction between PKGSRC_USE_TOOLS and USE_TOOLS by making
436 USE_TOOLS+= expr
b61b2f55 »
2005-05-16 Fix mistake in previous commit -- expr is required by the wrapper
437
96fda8d2 »
2005-05-16 tee is only used by bsd.bulk-pkg.mk.
438 # bsd.bulk-pkg.mk uses certain tools
29dde039 »
2005-05-16 tsort is only used by bsd.bulk-pkg.mk.
439 .if defined(BATCH)
adc430f0 »
2005-07-15 Drop distinction between PKGSRC_USE_TOOLS and USE_TOOLS by making
440 USE_TOOLS+= tee tsort
29dde039 »
2005-05-16 tsort is only used by bsd.bulk-pkg.mk.
441 .endif
44e50ed9 »
2005-05-16 We only need mtree if NO_MTREE isn't defined.
442
05644d31 »
2007-07-23 Putting bsd.pkginstall.mk under bsd.tools.mk was a bad idea -- the
443 # INSTALL/DEINSTALL script framework
444 .include "${.PARSEDIR}/pkginstall/bsd.pkginstall.mk"
445
5d1a9c9a »
2006-08-04 Fixed the locking, as suggested by Johnny on the tech-pkg mailing list.
446 # Locking
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
447 .include "${.PARSEDIR}/internal/locking.mk"
5ba65b65 »
2005-05-16 Consolidate the bits that add to PKGSRC_USE_TOOLS, and improve the
448
e0d9e4fc »
2005-05-22 Finish removing instances of _USE_NEW_TOOLS from pkgsrc.
449 # Tools
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
450 .include "${.PARSEDIR}/tools/bsd.tools.mk"
eccaef62 »
2004-04-27 Move the inclusion of tools.mk ahead of bsd.buildlink3.mk so that too…
451
00faf003 »
2006-07-06 Fix previous... instead of moving bsd.pkg.barrier.mk down below .MAIN,
452 # Barrier
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
453 .include "${.PARSEDIR}/bsd.pkg.barrier.mk"
00faf003 »
2006-07-06 Fix previous... instead of moving bsd.pkg.barrier.mk down below .MAIN,
454
900210ba »
2005-05-29 Simplify unprivileged builds by adding a new variable, UNPRIVILEGED, …
455 # Unprivileged builds
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
456 .include "${.PARSEDIR}/unprivileged.mk"
900210ba »
2005-05-29 Simplify unprivileged builds by adding a new variable, UNPRIVILEGED, …
457
5b62a955 »
2005-05-14 compiler.mk uses the following tools to compute the values of variables
458 # If NO_BUILD is defined, default to not needing a compiler.
459 .if defined(NO_BUILD)
460 USE_LANGUAGES?= # empty
461 .endif
462
463 # Get the proper dependencies and set the PATH to use the compiler
464 # named in PKGSRC_COMPILER.
465 #
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
466 .include "${.PARSEDIR}/compiler.mk"
5b62a955 »
2005-05-14 compiler.mk uses the following tools to compute the values of variables
467
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
468 .include "${.PARSEDIR}/wrapper/bsd.wrapper.mk"
93cd8e15 »
2002-08-22 Merge pkgsrc/mk from the buildlink2 branch back into the main trunk.
469
f65fae03 »
2006-05-06 If USE_ABI_DEPENDS=no, do not add the BUILDLINK_ABI_DEPENDS.$pkg
470 .if defined(ABI_DEPENDS) || defined(BUILD_ABI_DEPENDS)
fd434aa7 »
2006-04-06 Over 1200 files touched but no revisions bumped :)
471 . if !empty(USE_ABI_DEPENDS:M[yY][eE][sS])
472 DEPENDS+= ${ABI_DEPENDS}
f65fae03 »
2006-05-06 If USE_ABI_DEPENDS=no, do not add the BUILDLINK_ABI_DEPENDS.$pkg
473 BUILD_DEPENDS+= ${BUILD_ABI_DEPENDS}
437ad7ae »
2004-08-24 Process RECOMMENDED *after* including bsd.buildlink3.mk; else it has no
474 . else
e2f08fab »
2006-07-15 Split the variable BUILD_DEFS into those that are defined by packages
475 _BUILD_DEFS+= USE_ABI_DEPENDS
437ad7ae »
2004-08-24 Process RECOMMENDED *after* including bsd.buildlink3.mk; else it has no
476 . endif
477 .endif
478
605975d8 »
2005-01-24 Merge down deferred PREPEND_PATH handling from the tv-derecurse branch.
479 # Find out the PREFIX of dependencies where the PREFIX is needed at build time.
480 .if defined(EVAL_PREFIX)
d0cb1b1f »
2005-05-12 Instead of structuring code so that variables defined by the EVAL_PREFIX
481 FIND_PREFIX:= ${EVAL_PREFIX}
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
482 . include "${.PARSEDIR}/find-prefix.mk"
605975d8 »
2005-01-24 Merge down deferred PREPEND_PATH handling from the tv-derecurse branch.
483 .endif
484
485 .if !defined(_PATH_ORIG)
486 _PATH_ORIG:= ${PATH}
487 MAKEFLAGS+= _PATH_ORIG=${_PATH_ORIG:Q}
7007706d »
2005-01-27 Fix handling of PREPEND_PATH in dependency-recursed builds.
488 .endif
605975d8 »
2005-01-24 Merge down deferred PREPEND_PATH handling from the tv-derecurse branch.
489
e0cb60e1 »
2005-11-15 Rewrote the _PATH_CMD command, which could not handle a PATH environment
490 .if !empty(PREPEND_PATH:M*)
605975d8 »
2005-01-24 Merge down deferred PREPEND_PATH handling from the tv-derecurse branch.
491 # This is very Special. Because PREPEND_PATH is set with += in reverse order,
e0cb60e1 »
2005-11-15 Rewrote the _PATH_CMD command, which could not handle a PATH environment
492 # this command reverses the order again (since bootstrap bmake doesn't
605975d8 »
2005-01-24 Merge down deferred PREPEND_PATH handling from the tv-derecurse branch.
493 # yet support the :[-1..1] construct).
e0cb60e1 »
2005-11-15 Rewrote the _PATH_CMD command, which could not handle a PATH environment
494 _PATH_CMD= \
495 path=${_PATH_ORIG:Q}; \
496 for i in ${PREPEND_PATH}; do path="$$i:$$path"; done; \
497 ${ECHO} "$$path"
498 PATH= ${_PATH_CMD:sh} # DOES NOT use :=, to defer evaluation
605975d8 »
2005-01-24 Merge down deferred PREPEND_PATH handling from the tv-derecurse branch.
499 .endif
1221299a »
2004-02-18 * Move pkgsrc/mk/compiler/bsd.compiler.mk to pkgsrc/mk/compiler.mk.
500
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
501 ################################################################
67feee0c »
1999-08-10 This is NetBSD. s/port/package/g
502 # Many ways to disable a package.
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
503 #
23b1b098 »
2000-09-07 Revert last change. I only tested this on netbsd-1-4; it doesn't seem to
504 # Ignore packages that can't be resold if building for a CDROM.
3c860adc »
2000-09-06 Introduce a new category, "crypto", with a special property: If the user
505 #
6f877bc0 »
2000-09-07 Correct a factual error in the comment "ways to disable a package":
506 # Don't build a package if it's restricted and we don't want to
507 # get into that.
508 #
af7d172f »
2000-09-09 Add a new mechanism for handling "crypto" packages, as discussed
509 # Don't build any package that utilizes strong cryptography, for
510 # when the law of the land forbids it.
511 #
6f877bc0 »
2000-09-07 Correct a factual error in the comment "ways to disable a package":
512 # Don't attempt to build packages against X if we don't have X.
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
513 #
67feee0c »
1999-08-10 This is NetBSD. s/port/package/g
514 # Don't build a package if it's broken.
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
515 ################################################################
516
2f0aa0b9 »
2002-12-27 * Garbage collect IGNORE -> SKIP migration.
517 .if !defined(NO_SKIP)
cee7bd8d »
2001-07-18 Change indentation (whitespace changes only!):
518 . if (defined(NO_BIN_ON_CDROM) && defined(FOR_CDROM))
ed320c6b »
2002-12-07 Replace IGNORE into PKG_FAIL_REASON and PKG_SKIP_REASON, so pkgsrc
519 PKG_FAIL_REASON+= "${PKGNAME} may not be placed in binary form on a CDROM:" \
a5d8a475 »
2000-08-19 * Prevent " etc. in RESTRICTED (NO_{SRC,BIN}_ON_{CDROM,FTP}) and BROKEN
520 " "${NO_BIN_ON_CDROM:Q}
cee7bd8d »
2001-07-18 Change indentation (whitespace changes only!):
521 . endif
522 . if (defined(NO_SRC_ON_CDROM) && defined(FOR_CDROM))
ed320c6b »
2002-12-07 Replace IGNORE into PKG_FAIL_REASON and PKG_SKIP_REASON, so pkgsrc
523 PKG_FAIL_REASON+= "${PKGNAME} may not be placed in source form on a CDROM:" \
a5d8a475 »
2000-08-19 * Prevent " etc. in RESTRICTED (NO_{SRC,BIN}_ON_{CDROM,FTP}) and BROKEN
524 " "${NO_SRC_ON_CDROM:Q}
cee7bd8d »
2001-07-18 Change indentation (whitespace changes only!):
525 . endif
526 . if (defined(RESTRICTED) && defined(NO_RESTRICTED))
ed320c6b »
2002-12-07 Replace IGNORE into PKG_FAIL_REASON and PKG_SKIP_REASON, so pkgsrc
527 PKG_FAIL_REASON+= "${PKGNAME} is restricted:" \
a5d8a475 »
2000-08-19 * Prevent " etc. in RESTRICTED (NO_{SRC,BIN}_ON_{CDROM,FTP}) and BROKEN
528 " "${RESTRICTED:Q}
cee7bd8d »
2001-07-18 Change indentation (whitespace changes only!):
529 . endif
530 . if !(${MKCRYPTO} == "YES" || ${MKCRYPTO} == yes)
5bdfc682 »
2002-07-02 Deprecate USE_SSL.
531 . if defined(CRYPTO)
ed320c6b »
2002-12-07 Replace IGNORE into PKG_FAIL_REASON and PKG_SKIP_REASON, so pkgsrc
532 PKG_FAIL_REASON+= "${PKGNAME} may not be built, because it utilizes strong cryptography"
cee7bd8d »
2001-07-18 Change indentation (whitespace changes only!):
533 . endif
af7d172f »
2000-09-09 Add a new mechanism for handling "crypto" packages, as discussed
534 . endif
44c9574b »
2006-12-15 Remove trailing spaces.
535 . if defined(USE_X11) && (${X11_TYPE} == "native") && !exists(${X11BASE})
ed320c6b »
2002-12-07 Replace IGNORE into PKG_FAIL_REASON and PKG_SKIP_REASON, so pkgsrc
536 PKG_FAIL_REASON+= "${PKGNAME} uses X11, but ${X11BASE} not found"
cee7bd8d »
2001-07-18 Change indentation (whitespace changes only!):
537 . endif
538 . if defined(BROKEN)
ed320c6b »
2002-12-07 Replace IGNORE into PKG_FAIL_REASON and PKG_SKIP_REASON, so pkgsrc
539 PKG_FAIL_REASON+= "${PKGNAME} is marked as broken:" ${BROKEN:Q}
cee7bd8d »
2001-07-18 Change indentation (whitespace changes only!):
540 . endif
a5d8a475 »
2000-08-19 * Prevent " etc. in RESTRICTED (NO_{SRC,BIN}_ON_{CDROM,FTP}) and BROKEN
541
cee7bd8d »
2001-07-18 Change indentation (whitespace changes only!):
542 . if defined(LICENSE)
ed673d80 »
2005-11-18 Collapse two .for blocks to improve readability:
543 . if defined(ACCEPTABLE_LICENSES) && !empty(ACCEPTABLE_LICENSES:M${LICENSE})
ac8a769f »
1998-07-06 Add an ACCEPTABLE_LICENCES definition to /etc/mk.conf. This is a
544 _ACCEPTABLE= yes
cee7bd8d »
2001-07-18 Change indentation (whitespace changes only!):
545 . endif # ACCEPTABLE_LICENSES
d23c5666 »
2005-05-14 Found another two uses of .ifndef and .ifdef.
546 . if !defined(_ACCEPTABLE)
a806e648 »
2007-08-10 Try a bit harder to guess which mk.conf the user is using, when
547 . if defined(MAKECONF)
548 _MAKECONF?= ${MAKECONF}
549 . elif ${OPSYS} == "NetBSD" && ${MAKE} != "${PREFIX}/bin/bmake"
550 _MAKECONF?= /etc/mk.conf
551 . else
552 _MAKECONF?= ${PREFIX}/etc/mk.conf
553 . endif
554
ed320c6b »
2002-12-07 Replace IGNORE into PKG_FAIL_REASON and PKG_SKIP_REASON, so pkgsrc
555 PKG_FAIL_REASON+= "${PKGNAME} has an unacceptable license: ${LICENSE}." \
94bf044c »
2004-10-01 Update the wording a bit when a license is not accepted, to better
556 " To view the license, enter \"${MAKE} show-license\"." \
a806e648 »
2007-08-10 Try a bit harder to guess which mk.conf the user is using, when
557 " To indicate acceptance, add this line to ${_MAKECONF}:" \
94bf044c »
2004-10-01 Update the wording a bit when a license is not accepted, to better
558 " ACCEPTABLE_LICENSES+=${LICENSE}"
cee7bd8d »
2001-07-18 Change indentation (whitespace changes only!):
559 . endif # _ACCEPTABLE
560 . endif # LICENSE
a5d8a475 »
2000-08-19 * Prevent " etc. in RESTRICTED (NO_{SRC,BIN}_ON_{CDROM,FTP}) and BROKEN
561
0dac5d10 »
2000-05-30 Move all settings of IGNORE into one spot. No need for the arch-checking
562 # Define __PLATFORM_OK only if the OS matches the pkg's allowed list.
cee7bd8d »
2001-07-18 Change indentation (whitespace changes only!):
563 . if defined(ONLY_FOR_PLATFORM) && !empty(ONLY_FOR_PLATFORM)
564 . for __tmp__ in ${ONLY_FOR_PLATFORM}
565 . if ${MACHINE_PLATFORM:M${__tmp__}} != ""
0dac5d10 »
2000-05-30 Move all settings of IGNORE into one spot. No need for the arch-checking
566 __PLATFORM_OK?= yes
cee7bd8d »
2001-07-18 Change indentation (whitespace changes only!):
567 . endif # MACHINE_PLATFORM
568 . endfor # __tmp__
569 . else # !ONLY_FOR_PLATFORM
570 __PLATFORM_OK?= yes
571 . endif # ONLY_FOR_PLATFORM
572 . for __tmp__ in ${NOT_FOR_PLATFORM}
573 . if ${MACHINE_PLATFORM:M${__tmp__}} != ""
574 . undef __PLATFORM_OK
a5d8a475 »
2000-08-19 * Prevent " etc. in RESTRICTED (NO_{SRC,BIN}_ON_{CDROM,FTP}) and BROKEN
575 . endif # MACHINE_PLATFORM
576 . endfor # __tmp__
cee7bd8d »
2001-07-18 Change indentation (whitespace changes only!):
577 . if !defined(__PLATFORM_OK)
aeafc1bf »
2006-11-19 Use PKG_FAIL_REASON for platform checks, to make them work again.
578 PKG_FAIL_REASON+= "${PKGNAME} is not available for ${MACHINE_PLATFORM}"
cee7bd8d »
2001-07-18 Change indentation (whitespace changes only!):
579 . endif # !__PLATFORM_OK
98cbefa5 »
2005-12-01 The new target do-check-pkg-fail-reason should to be a dependency of
580 .endif
581
fda657b5 »
1998-10-20 + Add and document the PKG_RELATIVE_SYMLINKS option, which makes sure
582 # Add these defs to the ones dumped into +BUILD_DEFS
e2f08fab »
2006-07-15 Split the variable BUILD_DEFS into those that are defined by packages
583 _BUILD_DEFS+= PKGPATH
584 _BUILD_DEFS+= OPSYS OS_VERSION MACHINE_ARCH MACHINE_GNU_ARCH
3e5c3bee »
2007-02-20 I find the ABI useful to know when looking at a binary package.
585 _BUILD_DEFS+= ABI
e2f08fab »
2006-07-15 Split the variable BUILD_DEFS into those that are defined by packages
586 _BUILD_DEFS+= CPPFLAGS CFLAGS FFLAGS LDFLAGS
587 _BUILD_DEFS+= OBJECT_FMT LICENSE RESTRICTED
588 _BUILD_DEFS+= NO_SRC_ON_FTP NO_SRC_ON_CDROM
589 _BUILD_DEFS+= NO_BIN_ON_FTP NO_BIN_ON_CDROM
fda657b5 »
1998-10-20 + Add and document the PKG_RELATIVE_SYMLINKS option, which makes sure
590
f38c8ae0 »
2001-07-07 add OSVERSION_SPECIFIC to BUILD_DEFS if defined so it ends up in the …
591 .if defined(OSVERSION_SPECIFIC)
e2f08fab »
2006-07-15 Split the variable BUILD_DEFS into those that are defined by packages
592 _BUILD_DEFS+= OSVERSION_SPECIFIC
f38c8ae0 »
2001-07-07 add OSVERSION_SPECIFIC to BUILD_DEFS if defined so it ends up in the …
593 .endif # OSVERSION_SPECIFIC
594
5dc948e0 »
2003-07-23 Mark all targets that do not correspond to real files with the .PHONY
595 .PHONY: all
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
596 .if !target(all)
3bfda945 »
2004-03-22 Due to the special handling of pkgtools/digest in pkgsrc (it must be
597 all: ${_PKGSRC_BUILD_TARGETS}
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
598 .endif
599
a73c08e3 »
2006-06-08 Introduce "makedirs" as a helper target to create directories with
600 .PHONY: makedirs
601 makedirs: ${WRKDIR}
602
fc5bd0b1 »
2002-02-25 * Turn _SHELL_EXTRACT into a "subroutine" for extracting an archive. It
603 ${WRKDIR}:
604 .if !defined(KEEP_WRKDIR)
b0442663 »
2007-02-22 Finished the split of PKGSRC_LOCKTYPE into LOCALBASE_LOCKTYPE and
605 . if ${WRKDIR_LOCKTYPE} != "none"
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
606 ${RUN} ${TEST} -f ${_WRKDIR_LOCKFILE} || ${RM} -fr ${WRKDIR}
fc5bd0b1 »
2002-02-25 * Turn _SHELL_EXTRACT into a "subroutine" for extracting an archive. It
607 . endif
608 .endif
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
609 ${RUN} ${MKDIR} ${WRKDIR}
82d3cbf2 »
2006-06-11 Split out the "work" symlink creation into a separate step and add it
610
611 # Create a symlink from ${WRKDIR} to the package directory if
612 # CREATE_WRKDIR_SYMLINK is "yes".
613 #
60acb1dd »
2007-07-16 Change default value of CREATE_WRKDIR_SYMLINK to no. In combination with
614 CREATE_WRKDIR_SYMLINK?= no
82d3cbf2 »
2006-06-11 Split out the "work" symlink creation into a separate step and add it
615
616 .if defined(WRKOBJDIR) && !empty(CREATE_WRKDIR_SYMLINK:M[Yy][Ee][Ss])
617 makedirs: ${.CURDIR}/${WRKDIR_BASENAME}
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
618 ${.CURDIR}/${WRKDIR_BASENAME}:
b0442663 »
2007-02-22 Finished the split of PKGSRC_LOCKTYPE into LOCALBASE_LOCKTYPE and
619 . if ${WRKDIR_LOCKTYPE} != "none"
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
620 ${RUN} ${TEST} -f ${_WRKDIR_LOCKFILE} || ${RM} -f ${.TARGET}
fc5bd0b1 »
2002-02-25 * Turn _SHELL_EXTRACT into a "subroutine" for extracting an archive. It
621 . endif
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
622 ${RUN} \
82d3cbf2 »
2006-06-11 Split out the "work" symlink creation into a separate step and add it
623 if ${LN} -s ${WRKDIR} ${.TARGET} 2>/dev/null; then \
d1ddb595 »
2006-08-04 In the "makedirs" target, it is clear that the lock file is always the
624 ${ECHO_MSG} "${.TARGET:T} -> ${WRKDIR}"; \
fc5bd0b1 »
2002-02-25 * Turn _SHELL_EXTRACT into a "subroutine" for extracting an archive. It
625 fi
82d3cbf2 »
2006-06-11 Split out the "work" symlink creation into a separate step and add it
626 .endif
627
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
628 .include "${.PARSEDIR}/flavor/bsd.flavor.mk"
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
629
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
630 .include "${.PARSEDIR}/depends/bsd.depends.mk"
631 .include "${.PARSEDIR}/check/bsd.check.mk"
632 .include "${.PARSEDIR}/fetch/bsd.fetch.mk"
633 .include "${.PARSEDIR}/checksum/bsd.checksum.mk"
634 .include "${.PARSEDIR}/extract/bsd.extract.mk"
635 .include "${.PARSEDIR}/patch/bsd.patch.mk"
636 .include "${.PARSEDIR}/configure/bsd.configure.mk"
637 .include "${.PARSEDIR}/build/bsd.build.mk"
638 .include "${.PARSEDIR}/install/bsd.install.mk"
639 .include "${.PARSEDIR}/package/bsd.package.mk"
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
640
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
641 .include "${.PARSEDIR}/bsd.pkg.clean.mk"
642 .include "${.PARSEDIR}/bsd.pkg.update.mk"
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
643
98d7e708 »
2006-06-03 First pass at implementing support for package system flavors other
644 # su-target is a macro target that does just-in-time su-to-root before
040820d6 »
2006-06-04 Convert just-in-time su targets to use su-target instead of ${_SU_TAR…
645 # reinvoking the make process as root. It acquires root privileges and
646 # invokes a new make process with the target named "su-${.TARGET}".
98d7e708 »
2006-06-03 First pass at implementing support for package system flavors other
647 #
a2e94be7 »
2007-01-02 Added an additional line to the parallel error message.
648
32665b7d »
2006-06-12 Move the common make command executed in su-target into a separate make
649 _ROOT_CMD= cd ${.CURDIR} && \
3ed7d587 »
2006-07-26 Ensure that the just-in-time su command invoked has the same environment
650 ${SETENV} ${PKGSRC_MAKE_ENV} \
651 PATH="$${PATH}:"${SU_CMD_PATH_APPEND:Q} \
32665b7d »
2006-06-12 Move the common make command executed in su-target into a separate make
652 ${MAKE} ${MAKEFLAGS} \
653 PKG_DEBUG_LEVEL=${PKG_DEBUG_LEVEL:Q} \
0e697af3 »
2007-02-09 MAKEFLAGS for su-${.TARGET} is ${MAKEFLAGS.su-${.TARGET}},
654 su-${.TARGET} ${MAKEFLAGS.su-${.TARGET}}
32665b7d »
2006-06-12 Move the common make command executed in su-target into a separate make
655
98d7e708 »
2006-06-03 First pass at implementing support for package system flavors other
656 .PHONY: su-target
657 su-target: .USE
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
658 ${RUN} \
040820d6 »
2006-06-04 Convert just-in-time su targets to use su-target instead of ${_SU_TAR…
659 case ${PRE_CMD.su-${.TARGET}:Q}"" in \
660 "") ;; \
661 *) ${PRE_CMD.su-${.TARGET}} ;; \
662 esac; \
91808dd0 »
2006-10-09 Introduce _SU_ROOT_USER, which can be used for partially unprivileged
663 if ${TEST} `${ID} -u` = `${ID} -u ${_SU_ROOT_USER}`; then \
32665b7d »
2006-06-12 Move the common make command executed in su-target into a separate make
664 ${_ROOT_CMD}; \
98d7e708 »
2006-06-03 First pass at implementing support for package system flavors other
665 else \
666 case ${PRE_ROOT_CMD:Q}"" in \
667 ${TRUE:Q}"") ;; \
9d0bdebf »
2006-06-05 Use PHASE_MSG, STEP_MSG, WARNING_MSG, and ERROR_MSG in place of ECHO_MSG
668 *) ${WARNING_MSG} "Running: "${PRE_ROOT_CMD:Q} ;; \
98d7e708 »
2006-06-03 First pass at implementing support for package system flavors other
669 esac; \
670 ${PRE_ROOT_CMD}; \
91808dd0 »
2006-10-09 Introduce _SU_ROOT_USER, which can be used for partially unprivileged
671 ${STEP_MSG} "Becoming \`\`${_SU_ROOT_USER}'' to make su-${.TARGET} (`${ECHO} ${SU_CMD} | ${AWK} '{ print $$1 }'`)"; \
32665b7d »
2006-06-12 Move the common make command executed in su-target into a separate make
672 ${SU_CMD} ${_ROOT_CMD:Q}; \
91808dd0 »
2006-10-09 Introduce _SU_ROOT_USER, which can be used for partially unprivileged
673 ${STEP_MSG} "Dropping \`\`${_SU_ROOT_USER}'' privileges."; \
98d7e708 »
2006-06-03 First pass at implementing support for package system flavors other
674 fi
0a247cf7 »
2002-03-04 Add two new EXPERIMENTAL targets:
675
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
676 ################################################################
677 # Some more targets supplied for users' convenience
678 ################################################################
679
1ffa6079 »
2000-12-30 * Remove old PLIST-mi/md.shared/md.static that was only used for
680 # Run pkglint:
5dc948e0 »
2003-07-23 Mark all targets that do not correspond to real files with the .PHONY
681 .PHONY: lint
1ffa6079 »
2000-12-30 * Remove old PLIST-mi/md.shared/md.static that was only used for
682 lint:
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
683 ${RUN} ${LOCALBASE}/bin/pkglint
e6ecd7a7 »
2001-07-10 Add new "tarup" target which allows to create a binary package from an
684
81787ae8 »
2003-09-02 Merge pkgviews-mk branch into the HEAD by running:
685 # List of flags to pass to pkg_add(1) for bin-install:
686
d78d691b »
2001-05-20 make the bin-install target look at some FTP servers (stored in
687 BIN_INSTALL_FLAGS?= # -v
81787ae8 »
2003-09-02 Merge pkgviews-mk branch into the HEAD by running:
688 .if ${PKG_INSTALLATION_TYPE} == "pkgviews"
27141117 »
2003-09-08 We want to add consistently add to the default view if we use pkgviews
689 PKG_ARGS_ADD= -W ${LOCALBASE} -w ${DEFAULT_VIEW}
81787ae8 »
2003-09-02 Merge pkgviews-mk branch into the HEAD by running:
690 .endif
691 _BIN_INSTALL_FLAGS= ${BIN_INSTALL_FLAGS}
4478b6b8 »
2005-12-31 Handle automatic dependencies in bin-install correctly.
692 .if defined(_AUTOMATIC) && !empty(_AUTOMATIC:MYES)
693 _BIN_INSTALL_FLAGS+= -A
30139023 »
2005-11-05 Use new automatic flag; depend on appropriate pkg_install version.
694 .endif
81787ae8 »
2003-09-02 Merge pkgviews-mk branch into the HEAD by running:
695 _BIN_INSTALL_FLAGS+= ${PKG_ARGS_ADD}
d78d691b »
2001-05-20 make the bin-install target look at some FTP servers (stored in
696
1db1ace0 »
2006-01-03 In the bin-install target, instead of running pkg_add for every
697 _SHORT_UNAME_R= ${:!${UNAME} -r!:C@\.([0-9]*)[_.].*@.\1@} # n.n[_.]anything => n.n
698
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
699 .include "${.PARSEDIR}/install/bin-install.mk"
1773a376 »
2003-10-18 Fix PR 17883 by adding code to perform just-in-time su(1) functionality
700
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
701 ################################################################
702 # Everything after here are internal targets and really
703 # shouldn't be touched by anybody but the release engineers.
704 ################################################################
705
5dc948e0 »
2003-07-23 Mark all targets that do not correspond to real files with the .PHONY
706 .PHONY: show-pkgtools-version
42ce3723 »
1999-03-08 Add Solaris support to pkgsrc, using Christos Zoulas' NetBSD emulation
707 .if !target(show-pkgtools-version)
708 show-pkgtools-version:
38f14fc6 »
2000-01-07 Calculate current pkgtools version once (inline rather than via
709 @${ECHO} ${PKGTOOLS_VERSION}
5380c3ea »
1999-08-31 if ${IDENT} does not exist, assume that the package tools are ok. Thi…
710 .endif
1d228fed »
1998-11-09 add print-pkgtools_ver to get version of currently-installed pkg-tools
711
4c5aeca1 »
1999-09-28 Add a convenience target called "show-var", which will echo a make(1)
712 # convenience target, to display make variables from command line
713 # i.e. "make show-var VARNAME=var", will print var's value
5dc948e0 »
2003-07-23 Mark all targets that do not correspond to real files with the .PHONY
714 .PHONY: show-var
4c5aeca1 »
1999-09-28 Add a convenience target called "show-var", which will echo a make(1)
715 show-var:
37ccf590 »
2001-04-17 show-var: implement quoting via make's :Q modifier, instead of home-b…
716 @${ECHO} ${${VARNAME}:Q}
4c5aeca1 »
1999-09-28 Add a convenience target called "show-var", which will echo a make(1)
717
a990feeb »
2001-10-26 Add a new "show-vars" target which allows to display several makefile
718 # enhanced version of target above, to display multiple variables
5dc948e0 »
2003-07-23 Mark all targets that do not correspond to real files with the .PHONY
719 .PHONY: show-vars
a990feeb »
2001-10-26 Add a new "show-vars" target which allows to display several makefile
720 show-vars:
721 .for VARNAME in ${VARNAMES}
722 @${ECHO} ${${VARNAME}:Q}
723 .endfor
724
aa5e8b3d »
2005-10-16 Add "show-vars-eval" target, which outputs eval-able shell expressions
725 # displays multiple variables as shell expressions
726 # VARS is space separated list of VARNAME:shellvarname
727 .PHONY: show-vars-eval
728 show-vars-eval:
729 .for var in ${VARS}
730 @${ECHO} ${var:C/^.*://}="${${var:C/:.*$//}:Q}"
731 .endfor
732
8f5eb66e »
2005-09-28 Added a variable LICENSE_FILE that may be set to point to the license
733 LICENSE_FILE?= ${PKGSRCDIR}/licenses/${LICENSE}
734
78f180f7 »
2001-01-05 Add a "show-license" target, and a "show-licence" alias, to display
735 .if !target(show-license)
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
736 show-license show-licence: .PHONY
8f5eb66e »
2005-09-28 Added a variable LICENSE_FILE that may be set to point to the license
737 @license=${LICENSE:Q}; \
738 license_file=${LICENSE_FILE:Q}; \
739 pager=${PAGER:Q}; \
740 case "$$pager" in "") pager=${CAT:Q};; esac; \
741 case "$$license" in "") exit 0;; esac; \
742 if ${TEST} -f "$$license_file"; then \
743 $$pager "$$license_file"; \
744 else \
745 ${ECHO} "Generic $$license information not available"; \
746 ${ECHO} "See the package description (pkg_info -d ${PKGNAME}) for more information."; \
78f180f7 »
2001-01-05 Add a "show-license" target, and a "show-licence" alias, to display
747 fi
748 .endif
33ed0c46 »
1999-11-29 Add code to include the size of a package into both the
749
14821b06 »
2005-05-08 Add a dummy describe-options target for package not using the
750 # This target is defined in bsd.options.mk for packages that use
751 # the options framework.
21383483 »
2005-05-31 Rename describe-options to show-options, replacing the old show-options
752 .if !target(show-options)
753 .PHONY: show-options
754 show-options:
14821b06 »
2005-05-08 Add a dummy describe-options target for package not using the
755 @${ECHO} This package does not use the options framework.
756 .endif
757
67feee0c »
1999-08-10 This is NetBSD. s/port/package/g
758 # Depend is generally meaningless for arbitrary packages, but if someone wants
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
759 # one they can override this. This is just to catch people who've gotten into
3dd26a1d »
1998-04-19 make -> ${MAKE}, as per FreeBSD's PR 6341.
760 # the habit of typing `${MAKE} depend all install' as a matter of course.
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
761 #
5dc948e0 »
2003-07-23 Mark all targets that do not correspond to real files with the .PHONY
762 .PHONY: depend
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
763 .if !target(depend)
764 depend:
765 .endif
766
767 # Same goes for tags
5dc948e0 »
2003-07-23 Mark all targets that do not correspond to real files with the .PHONY
768 .PHONY: tags
4f7dd975 »
1997-08-20 Initial import of FreeBSD's ports makefiles.
769 .if !target(tags)
770 tags:
771 .endif
f4e645fd »
1997-09-28 - Add OpenBSD and FreeBSD Ids in the header
772
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
773 .include "${.PARSEDIR}/plist/bsd.plist.mk"
c1ed7ca3 »
2006-01-12 Initial commit of a new module that encapsulates all of the code
774
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
775 .include "${.PARSEDIR}/bsd.utils.mk"
c483b871 »
2006-01-18 Create a standalone awk script, depends-depth-first.awk, that encapsu…
776
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
777 .include "${.PARSEDIR}/subst.mk"
c2ea20b3 »
2003-08-27 (*) Nuke the _BUILDLINK_SUBST_USE target now that subst.mk does the same
778
eb167e71 »
2000-07-28 Pull in bulk-build targets if BATCH is set
779 #
780 # For bulk build targets (bulk-install, bulk-package), the
a140b356 »
2000-08-01 * Remove RUN_DEPENDS (left in packages.7 intentionally)
781 # BATCH variable must be set in /etc/mk.conf:
eb167e71 »
2000-07-28 Pull in bulk-build targets if BATCH is set
782 #
783 .if defined(BATCH)
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
784 . include "${.PARSEDIR}/bulk/bsd.bulk-pkg.mk"
eb167e71 »
2000-07-28 Pull in bulk-build targets if BATCH is set
785 .endif
f3901db3 »
2005-01-10 Allow the creation of error handlers for shell commands in make targets.
786
7cca5cc4 »
2006-07-06 Refactor the README.html generation code from bsd.pkg.mk into a separate
787 # README generation code.
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
788 .include "${.PARSEDIR}/bsd.pkg.readme.mk"
7cca5cc4 »
2006-07-06 Refactor the README.html generation code from bsd.pkg.mk into a separate
789
f3901db3 »
2005-01-10 Allow the creation of error handlers for shell commands in make targets.
790 # Create a PKG_ERROR_HANDLER shell command for each class listed in
791 # PKG_ERROR_CLASSES. The error handler is meant to be invoked within
792 # a make target.
793 #
794 .for _class_ in ${PKG_ERROR_CLASSES}
795 PKG_ERROR_HANDLER.${_class_}?= { \
796 ec=$$?; \
797 for str in ${PKG_ERROR_MSG.${_class_}}; do \
9d0bdebf »
2006-06-05 Use PHASE_MSG, STEP_MSG, WARNING_MSG, and ERROR_MSG in place of ECHO_MSG
798 ${PHASE_MSG} "$$str"; \
f3901db3 »
2005-01-10 Allow the creation of error handlers for shell commands in make targets.
799 done; \
800 exit $$ec; \
801 }
802 .endfor
0b3e6dd7 »
2005-05-09 Teach bsd.pkg.mk to create a phase-specific "makevars.mk" file that
803
5448f0da »
2005-05-11 Rename MAKE_VARS to MAKEVARS so that it more closely resembles
804 # Cache variables listed in MAKEVARS in a phase-specific "makevars.mk"
0b3e6dd7 »
2005-05-09 Teach bsd.pkg.mk to create a phase-specific "makevars.mk" file that
805 # file. These variables are effectively passed to sub-make processes
806 # that are invoked on the same Makefile.
807 #
4abd34cc »
2006-07-10 Completely nuke the concept of PKG_PHASE from pkgsrc except for the
808 .for _phase_ in ${_ALL_PHASES}
5448f0da »
2005-05-11 Rename MAKE_VARS to MAKEVARS so that it more closely resembles
809 ${_MAKEVARS_MK.${_phase_}}: ${WRKDIR}
0b3e6dd7 »
2005-05-09 Teach bsd.pkg.mk to create a phase-specific "makevars.mk" file that
810 ${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${.TARGET}.tmp
2d97a87f »
2006-06-06 Refactor "fetch" and "extract" code into correspondingly named
811 . for _var_ in ${MAKEVARS:O:u}
812 . if defined(${_var_})
0b3e6dd7 »
2005-05-09 Teach bsd.pkg.mk to create a phase-specific "makevars.mk" file that
813 ${_PKG_SILENT}${_PKG_DEBUG} \
814 ${ECHO} ${_var_}"= "${${_var_}:Q} >> ${.TARGET}.tmp
2d97a87f »
2006-06-06 Refactor "fetch" and "extract" code into correspondingly named
815 . endif
816 . endfor
0b3e6dd7 »
2005-05-09 Teach bsd.pkg.mk to create a phase-specific "makevars.mk" file that
817 ${_PKG_SILENT}${_PKG_DEBUG} \
818 if ${TEST} -f ${.TARGET}.tmp; then \
5448f0da »
2005-05-11 Rename MAKE_VARS to MAKEVARS so that it more closely resembles
819 ( ${ECHO} ".if !defined(_MAKEVARS_MK)"; \
820 ${ECHO} "_MAKEVARS_MK= defined"; \
0b3e6dd7 »
2005-05-09 Teach bsd.pkg.mk to create a phase-specific "makevars.mk" file that
821 ${ECHO} ""; \
822 ${CAT} ${.TARGET}.tmp; \
823 ${ECHO} ""; \
5448f0da »
2005-05-11 Rename MAKE_VARS to MAKEVARS so that it more closely resembles
824 ${ECHO} ".endif # _MAKEVARS_MK"; \
0b3e6dd7 »
2005-05-09 Teach bsd.pkg.mk to create a phase-specific "makevars.mk" file that
825 ) > ${.TARGET}; \
826 ${RM} -f ${.TARGET}.tmp; \
827 fi
828 ${_PKG_SILENT}${_PKG_DEBUG}${TOUCH} ${TOUCH_FLAGS} ${.TARGET}
829 .endfor
a605cb8b »
2005-05-18 Added the show-tools target, which emits a shell code fragment defini…
830
bbe95780 »
2007-05-09 Add two targets, pbulk-index and pbulk-index-item.
831 .if make(pbulk-index) || make(pbulk-index-item)
832 .include "${.PARSEDIR}/pbulk/pbulk-index.mk"
833 .endif
834
cecf7750 »
2007-01-02 Moved the show-tools target to misc/show.mk.
835 .if defined(PKG_DEVELOPER)
836 . include "${.PARSEDIR}/misc/developer.mk"
cf0a9ef2 »
2005-06-08 Add changes-entry target, which adds an entry for the current package
837 .endif
cecf7750 »
2007-01-02 Moved the show-tools target to misc/show.mk.
838 .include "${.PARSEDIR}/misc/show.mk"
08518c2a »
2007-08-13 build-env is no longer defined in bsd.pkg.debug.mk.
839 .if make(debug)
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
840 . include "${.PARSEDIR}/bsd.pkg.debug.mk"
c99411a7 »
2006-07-20 Include the file bsd.pkg.debug.mk if requested by invoking the "debug"
841 .endif
28693580 »
2006-08-02 Added bsd.pkg.help.mk, which provides the "help" target.
842 .if make(help)
e25ef04b »
2007-01-02 Cleaned up bsd.pkg.mk:
843 . include "${.PARSEDIR}/help/help.mk"
28693580 »
2006-08-02 Added bsd.pkg.help.mk, which provides the "help" target.
844 .endif
a2af1f38 »
2007-07-20 Enabled the warnings.
845 .include "${.PARSEDIR}/misc/warnings.mk"
f0cf4fd4 »
2006-11-26 Moved the code that checks for PKG_FAIL_REASON and PKG_SKIP reason from
846 .include "${.PARSEDIR}/misc/can-be-built-here.mk"
Something went wrong with that request. Please try again.