Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 5161 lines (4732 sloc) 171.6 kb
804c41ee » jschauma
2004-05-12 Introduce new variables:
1 # $NetBSD: bsd.pkg.mk,v 1.1457 2004/05/12 01:03:59 jschauma Exp $
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
2 #
970dfa8c » mrg
1998-06-05 move documentation to packages.7. also, remove ts=4 crap.
3 # This file is in the public domain.
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
4 #
970dfa8c » mrg
1998-06-05 move documentation to packages.7. also, remove ts=4 crap.
5 # This file is derived from bsd.port.mk - 940820 Jordan K. Hubbard.
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
6 #
970dfa8c » mrg
1998-06-05 move documentation to packages.7. also, remove ts=4 crap.
7 # Please see the NetBSD packages(7) manual page for details on the
8 # that variables used in this make file template.
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
9
10 # Default sequence for "all" is: fetch checksum extract patch configure build
11 #
12 # Please read the comments in the targets section below, you
13 # should be able to use the pre-* or post-* targets/scripts
14 # (which are available for every stage except checksum) or
15 # override the do-* targets to do pretty much anything you want.
16 #
17 # NEVER override the "regular" targets unless you want to open
18 # a major can of worms.
19
85d24187 » tv
1999-05-24 Implement some parts of proposals posted to tech-pkg:
20 ##### Include any preferences, if not already included, and common definitions
21 .include "../../mk/bsd.prefs.mk"
d5d2fd57 » garbled
1998-08-28 Add new NOT_FOR_ARCHS variable, that has the reverse logic of
22
425506d6 » jlam
2002-01-27 Prevent /etc/mk.conf from being included by BSD-style makefiles used by
23 ##### Prevent /etc/mk.conf from being included by a distribution's BSD-style
24 ##### Makefiles. We really don't want to pick up settings that are used by
25 ##### builds in /usr/src, e.g. DESTDIR.
d3830eec » erh
2003-12-03 If PKGMAKECONF is defined, use it to set MAKECONF instead of "/dev/nu…
26 .if defined(PKGMAKECONF)
27 MAKE_ENV+= MAKECONF=${PKGMAKECONF}
28 .else
425506d6 » jlam
2002-01-27 Prevent /etc/mk.conf from being included by BSD-style makefiles used by
29 MAKE_ENV+= MAKECONF=/dev/null
d3830eec » erh
2003-12-03 If PKGMAKECONF is defined, use it to set MAKECONF instead of "/dev/nu…
30 .endif
425506d6 » jlam
2002-01-27 Prevent /etc/mk.conf from being included by BSD-style makefiles used by
31
aabc2d66 » tron
2002-01-06 Rewrite handling of "AUTOMAKE_OVERRIDE" so that files get touched in the
32 ##### Pass information about desired toolchain to package build.
33 .if defined(USETOOLS)
34 MAKE_ENV+= USETOOLS="${USETOOLS}"
35 .endif
36
a5634888 » jmmv
2003-07-28 Add the build-defs-message target, which shows a list of all variable…
37 # This has to come first to avoid showing all BUILD_DEFS added by this
38 # Makefile, which are usually not customizable.
96f2bea5 » wiz
2003-08-02 Move BUILD_DEFS check to pre-extract to avoid creating work directori…
39 .PHONY: pre-extract build-defs-message
40 pre-extract: build-defs-message
a159eb16 » agc
2003-08-08 Use saner values for PKGSRC_SHOW_BUILD_DEFS - make this switch on "yes"
41 .if ${PKGSRC_SHOW_BUILD_DEFS} != "YES" && ${PKGSRC_SHOW_BUILD_DEFS} != "yes"
048f6583 » agc
2003-08-08 Re-model the BUILD_DEFS display during build: if PKGSRC_SHOW_BUILD_DE…
42 build-defs-message:
43 .elif !target(build-defs-message)
3bfdfb20 » jmmv
2003-07-30 Modify the build-defs-message target so that it is only printed once,…
44 build-defs-message: ${WRKDIR}
048f6583 » agc
2003-08-08 Re-model the BUILD_DEFS display during build: if PKGSRC_SHOW_BUILD_DE…
45 . if defined(BUILD_DEFS) && !empty(BUILD_DEFS)
46 . if !exists(${WRKDIR}/.bdm_done)
a5634888 » jmmv
2003-07-28 Add the build-defs-message target, which shows a list of all variable…
47 @${ECHO} "=========================================================================="
48 @${ECHO} "The following variables will affect the build process of this package,"
49 @${ECHO} "${PKGNAME}. Their current value is shown below:"
50 @${ECHO} ""
048f6583 » agc
2003-08-08 Re-model the BUILD_DEFS display during build: if PKGSRC_SHOW_BUILD_DE…
51 . for var in ${BUILD_DEFS:O}
52 . if !defined(${var})
a5634888 » jmmv
2003-07-28 Add the build-defs-message target, which shows a list of all variable…
53 @${ECHO} " * ${var} (not defined)"
048f6583 » agc
2003-08-08 Re-model the BUILD_DEFS display during build: if PKGSRC_SHOW_BUILD_DE…
54 . elif defined(${var}) && empty(${var})
a5634888 » jmmv
2003-07-28 Add the build-defs-message target, which shows a list of all variable…
55 @${ECHO} " * ${var} (defined)"
048f6583 » agc
2003-08-08 Re-model the BUILD_DEFS display during build: if PKGSRC_SHOW_BUILD_DE…
56 . else
a5634888 » jmmv
2003-07-28 Add the build-defs-message target, which shows a list of all variable…
57 @${ECHO} " * ${var} = ${${var}}"
048f6583 » agc
2003-08-08 Re-model the BUILD_DEFS display during build: if PKGSRC_SHOW_BUILD_DE…
58 . endif
59 . endfor
a5634888 » jmmv
2003-07-28 Add the build-defs-message target, which shows a list of all variable…
60 @${ECHO} ""
5fc450df » grant
2004-03-27 wrap a long line in BUILD_DEFS output, tweak the message slightly.
61 @${ECHO} "You may want to abort the process now with CTRL-C and change their value"
62 @${ECHO} "before continuing. Be sure to run \`${MAKE} clean' after"
63 @${ECHO} "the changes."
a5634888 » jmmv
2003-07-28 Add the build-defs-message target, which shows a list of all variable…
64 @${ECHO} "=========================================================================="
3bfdfb20 » jmmv
2003-07-30 Modify the build-defs-message target so that it is only printed once,…
65 @${TOUCH} ${WRKDIR}/.bdm_done
048f6583 » agc
2003-08-08 Re-model the BUILD_DEFS display during build: if PKGSRC_SHOW_BUILD_DE…
66 . endif
67 . endif
a5634888 » jmmv
2003-07-28 Add the build-defs-message target, which shows a list of all variable…
68 .endif
69
a6fdcd07 » gavan
2003-10-02 Fail-safe check for circular dependencies.
70 # Fail-safe in the case of circular dependencies
71 .if defined(_PKGSRC_DEPS) && defined(PKGNAME) && !empty(_PKGSRC_DEPS:M${PKGNAME})
72 PKG_FAIL_REASON+="Circular dependency detected"
73 .endif
74
2f783ad2 » fredb
2002-05-26 Pass ${OBJECT_FMT} into a package's make environment, to permit BSD-make
75 ##### Some NetBSD platforms permitted the user to set the binary format while
76 ##### they were in the process of transitioning to ELF. Packages with BSD-style
77 ##### make systems need this setting to be passed in.
78 .if defined(OBJECT_FMT)
79 MAKE_ENV+= OBJECT_FMT="${OBJECT_FMT}"
80 .endif
81
e85e81bf » gavan
2003-10-02 Allow variables to be set on a per-OS basis.
82 # Allow variables to be set on a per-OS basis
83 OPSYSVARS+= CFLAGS CPPFLAGS LDFLAGS LIBS
84 .for _var_ in ${OPSYSVARS:O}
85 . if defined(${_var_}.${OPSYS})
86 ${_var_}+= ${${_var_}.${OPSYS}}
87 . elif defined(${_var_}.*)
88 ${_var_}+= ${${_var_}.*}
89 . endif
90 .endfor
91
af7d172f » fredb
2000-09-09 Add a new mechanism for handling "crypto" packages, as discussed
92 ##### Build crypto packages by default.
93 MKCRYPTO?= yes
94
85d24187 » tv
1999-05-24 Implement some parts of proposals posted to tech-pkg:
95 CLEANDEPENDS?= NO
834f2db2 » hubertf
1999-08-21 Let "make deinstall" remove any version installed, not only the one
96 DEINSTALLDEPENDS?= NO # add -R to pkg_delete
2a0e4ad2 » rh
1999-08-29 Add 'update' target to update a package and all depending packages.
97 REINSTALL?= NO # reinstall upon update
f83408c9 » hubertf
2000-08-31 * add CHECK_SHLIBS variable that can be set to "no" in emul/compat p…
98 CHECK_SHLIBS?= YES # run check-shlibs after install
1d7c7bc3 » jlam
2001-01-05 Correct comment on SHLIB_HANDLING
99 SHLIB_HANDLING?= YES # do automatic shared lib handling
7ae11e39 » rh
1999-10-31 Change the "update" target so it becomes more useful (and less danger…
100 NOCLEAN?= NO # don't clean up after update
85d24187 » tv
1999-05-24 Implement some parts of proposals posted to tech-pkg:
101
a9df889f » mycroft
2000-06-03 Oops; use ?= for PKGBASE and PKGVERSION, so pkgs can derive their PKG…
102 PKGBASE?= ${PKGNAME:C/-[^-]*$//}
103 PKGVERSION?= ${PKGNAME:C/^.*-//}
af6a03b9 » hubertf
2000-11-21 Fix NEED_NCURSES handling:
104 PKGWILDCARD?= ${PKGBASE}-[0-9]*
59325452 » mycroft
2000-06-03 Add PKGPATH, PKGBASE, PKGVERSION and PKGWILDCARD make(1) variables, s…
105
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
106 _DISTDIR?= ${DISTDIR}/${DIST_SUBDIR}
107
723e0dd1 » agc
2002-07-02 Deprecate IS_INTERACTIVE, and introduce a finer-grained INTERACTIVE_S…
108 INTERACTIVE_STAGE?= none
109
81787ae8 » jlam
2003-09-02 Merge pkgviews-mk branch into the HEAD by running:
110 # PKG_INSTALLATION_TYPE can only be one of two values: "pkgviews" or
111 # "overwrite".
112 #
113 .if (${PKG_INSTALLATION_TYPE} != "pkgviews") && \
114 (${PKG_INSTALLATION_TYPE} != "overwrite")
115 PKG_FAIL_REASON+= "PKG_INSTALLATION_TYPE must be \`\`pkgviews'' or \`\`overwrite''."
116 .endif
117
118 .if empty(PKG_INSTALLATION_TYPES:M${PKG_INSTALLATION_TYPE})
119 PKG_FAIL_REASON+= "This package doesn't support PKG_INSTALLATION_TYPE=${PKG_INSTALLATION_TYPE}."
120 .endif
121
122 # The style of PLISTs that are used by the installed package.
123 # Possible: dynamic, static
124 #
125 .if ${PKG_INSTALLATION_TYPE} == "pkgviews"
126 PLIST_TYPE?= dynamic
127 .elif ${PKG_INSTALLATION_TYPE} == "overwrite"
128 PLIST_TYPE?= static
129 .else
130 PLIST_TYPE?= static
131 .endif
132
133 # PLIST_TYPE can only be one of two values: "dynamic" or "static". If we
134 # don't explicitly ask for "static", assume "dynamic".
135 #
136 .if (${PLIST_TYPE} != "dynamic") && (${PLIST_TYPE} != "static")
137 PKG_FAIL_REASON+= "PLIST_TYPE must be \`\`dynamic'' or \`\`static''."
138 .endif
139
140 .if (${PKG_INSTALLATION_TYPE} == "overwrite") && (${PLIST_TYPE} != "static")
141 PKG_FAIL_REASON+= "PLIST_TYPE must be \`\`static'' for \`\`overwrite'' packages."
142 .endif
143
144 .if empty(USE_BUILDLINK2:M[nN][oO]) && empty(USE_BUILDLINK3:M[nN][oO])
145 PKG_FAIL_REASON+= "Please undefine USE_BUILDLINK2 or USE_BUILDLINK3."
146 .endif
147
148 .if !empty(USE_BUILDLINK3:M[nN][oO])
149 #
150 # Set the default BUILDLINK_DIR, BUILDLINK_X11_DIR so that if no
151 # buildlink2.mk files are included, then they still point to where headers
152 # and libraries for installed packages and X11R6 may be found.
afe7aea0 » jlam
2001-08-23 Set the default BUILDLINK_X11_DIR to ${X11BASE} so that in the absence
153 #
22cc7545 » jlam
2001-11-11 Set a default value for BUILDLINK_DIR so that if no buildlink.mk file…
154 BUILDLINK_DIR?= ${LOCALBASE}
afe7aea0 » jlam
2001-08-23 Set the default BUILDLINK_X11_DIR to ${X11BASE} so that in the absence
155 BUILDLINK_X11_DIR?= ${X11BASE}
81787ae8 » jlam
2003-09-02 Merge pkgviews-mk branch into the HEAD by running:
156 .endif
afe7aea0 » jlam
2001-08-23 Set the default BUILDLINK_X11_DIR to ${X11BASE} so that in the absence
157
39f7810b » jlam
2002-10-22 Have USE_IMAKE imply USE_X11BASE imply USE_X11. Now we can just check if
158 .if defined(USE_IMAKE)
159 USE_X11BASE?= implied
c0bfef7b » jschauma
2003-02-24 When using imake, add a bunch of variables to the PLIST_SUBST list, in
160 PLIST_SUBST+= IMAKE_MAN_SOURCE_PATH=${IMAKE_MAN_SOURCE_PATH} \
161 IMAKE_MAN_DIR=${IMAKE_MAN_DIR} \
162 IMAKE_LIBMAN_DIR=${IMAKE_LIBMAN_DIR} \
ba1ecdde » xtraeme
2004-01-31 Add some new variables for manual pages when using imake.
163 IMAKE_KERNMAN_DIR=${IMAKE_KERNMAN_DIR} \
c0bfef7b » jschauma
2003-02-24 When using imake, add a bunch of variables to the PLIST_SUBST list, in
164 IMAKE_FILEMAN_DIR=${IMAKE_FILEMAN_DIR} \
ba1ecdde » xtraeme
2004-01-31 Add some new variables for manual pages when using imake.
165 IMAKE_MISCMAN_DIR=${IMAKE_MISCMAN_DIR} \
c0bfef7b » jschauma
2003-02-24 When using imake, add a bunch of variables to the PLIST_SUBST list, in
166 IMAKE_MAN_SUFFIX=${IMAKE_MAN_SUFFIX} \
167 IMAKE_LIBMAN_SUFFIX=${IMAKE_LIBMAN_SUFFIX} \
ba1ecdde » xtraeme
2004-01-31 Add some new variables for manual pages when using imake.
168 IMAKE_KERNMAN_SUFFIX=${IMAKE_KERNMAN_SUFFIX} \
c0bfef7b » jschauma
2003-02-24 When using imake, add a bunch of variables to the PLIST_SUBST list, in
169 IMAKE_FILEMAN_SUFFIX=${IMAKE_FILEMAN_SUFFIX} \
ba1ecdde » xtraeme
2004-01-31 Add some new variables for manual pages when using imake.
170 IMAKE_MISCMAN_SUFFIX=${IMAKE_MISCMAN_SUFFIX} \
c0bfef7b » jschauma
2003-02-24 When using imake, add a bunch of variables to the PLIST_SUBST list, in
171 IMAKE_MANNEWSUFFIX=${IMAKE_MANNEWSUFFIX}
be9411f7 » danw
2004-03-19 When using imake and buildlink together, assert our definitions of
172 . if empty(USE_BUILDLINK2:M[nN][oO]) || empty(USE_BUILDLINK3:M[nN][oO])
173 MAKE_FLAGS+= CC="${CC}" CXX="${CXX}"
174 . endif
39f7810b » jlam
2002-10-22 Have USE_IMAKE imply USE_X11BASE imply USE_X11. Now we can just check if
175 .endif
176 .if defined(USE_X11BASE)
177 USE_X11?= implied
178 .endif
179
0151ac5d » jlam
2004-01-06 If xpkgwedge is installed, then _always_ add it to BUILD_DEPENDS. Also
180 # Set the PREFIX appropriately.
81787ae8 » jlam
2003-09-02 Merge pkgviews-mk branch into the HEAD by running:
181 .if ${PKG_INSTALLATION_TYPE} == "overwrite"
182 . if defined(USE_X11BASE)
6898ba3c » jlam
2000-07-31 Motif-checking code broke when X11PREFIX == X11BASE and both lesstif and
183 PREFIX= ${X11PREFIX}
81787ae8 » jlam
2003-09-02 Merge pkgviews-mk branch into the HEAD by running:
184 . elif defined(USE_CROSSBASE)
db506041 » tv
1998-08-11 - Introduce CROSSBASE and a USE_CROSSBASE option, for use with pkgs from
185 PREFIX= ${CROSSBASE}
c452a59e » tv
1998-08-12 Set NO_MTREE= for a USE_CROSSBASE pkg.
186 NO_MTREE= yes
81787ae8 » jlam
2003-09-02 Merge pkgviews-mk branch into the HEAD by running:
187 . else
db506041 » tv
1998-08-11 - Introduce CROSSBASE and a USE_CROSSBASE option, for use with pkgs from
188 PREFIX= ${LOCALBASE}
81787ae8 » jlam
2003-09-02 Merge pkgviews-mk branch into the HEAD by running:
189 . endif
190 .elif ${PKG_INSTALLATION_TYPE} == "pkgviews"
191 PREFIX= ${DEPOTBASE}/${PKGNAME}
192 NO_MTREE= yes
193 .endif
194
9a8b21f6 » jlam
2004-01-23 Move all of the code that sets USE_XPKGWEDGE from bsd.pkg.mk into
195 # If USE_XPKGWEDGE is set, then add a build dependency on xpkgwedge for
196 # X11 packages.
197 #
72045be9 » jlam
2004-01-06 Create a variable USE_XPKGWEDGE that determines whether or not pkgsrc…
198 .if defined(USE_X11BASE)
199 . if !empty(USE_XPKGWEDGE:M[yY][eE][sS])
200 BUILD_DEPENDS+= xpkgwedge>=${_XPKGWEDGE_REQD}:../../pkgtools/xpkgwedge
201 . endif
202 .endif
203
81787ae8 » jlam
2003-09-02 Merge pkgviews-mk branch into the HEAD by running:
204 .if empty(DEPOT_SUBDIR)
205 PKG_FAIL_REASON+= "DEPOT_SUBDIR may not be empty."
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
206 .endif
e7f1bfb7 » tv
1998-07-31 - Integrate xpkgwedge with a switch, USE_LOCALBASE_FOR_X11, which leaves
207
81787ae8 » jlam
2003-09-02 Merge pkgviews-mk branch into the HEAD by running:
208 .if ${PKG_INSTALLATION_TYPE} == "pkgviews"
209 #
210 # _PLIST_IGNORE_FILES basically mirrors the list of ignored files found
211 # in pkg_views(1). It's used by the dynamic PLIST generator to skip
212 # adding the named files to the PLIST.
213 #
214 _PLIST_IGNORE_FILES= +* # package metadata files
215 _PLIST_IGNORE_FILES+= info/dir
216 .if defined(INFO_DIR) && empty(INFO_DIR:Minfo)
217 _PLIST_IGNORE_FILES+= ${INFO_DIR}/dir
218 .endif
219 _PLIST_IGNORE_FILES+= *[~\#] *.OLD *.orig *,v # scratch config files
220 _PLIST_IGNORE_FILES+= ${PLIST_IGNORE_FILES}
221 .endif
222 BUILD_DEFS+= _PLIST_IGNORE_FILES
223
f559a264 » jlam
2001-10-04 If USE_IMAKE is set, then ensure that the buildlink-x11 package isn't
224 # We need to make sure the buildlink-x11 package is not installed since it
da530438 » jlam
2002-08-06 USE_BUILDLINK_X11 is dead too with the removal of pkgtools/buildlink-…
225 # breaks builds that use imake.
f559a264 » jlam
2001-10-04 If USE_IMAKE is set, then ensure that the buildlink-x11 package isn't
226 #
da530438 » jlam
2002-08-06 USE_BUILDLINK_X11 is dead too with the removal of pkgtools/buildlink-…
227 .if defined(USE_IMAKE)
f559a264 » jlam
2001-10-04 If USE_IMAKE is set, then ensure that the buildlink-x11 package isn't
228 . if exists(${LOCALBASE}/lib/X11/config/buildlinkX11.def) || \
229 exists(${X11BASE}/lib/X11/config/buildlinkX11.def)
ed320c6b » schmonz
2002-12-07 Replace IGNORE into PKG_FAIL_REASON and PKG_SKIP_REASON, so pkgsrc
230 PKG_FAIL_REASON+= "${PKGNAME} uses imake, but the buildlink-x11 package was found." \
f559a264 » jlam
2001-10-04 If USE_IMAKE is set, then ensure that the buildlink-x11 package isn't
231 " Please deinstall it (pkg_delete buildlink-x11)."
232 . endif
da530438 » jlam
2002-08-06 USE_BUILDLINK_X11 is dead too with the removal of pkgtools/buildlink-…
233 .endif # USE_IMAKE
f559a264 » jlam
2001-10-04 If USE_IMAKE is set, then ensure that the buildlink-x11 package isn't
234
93f7d8cd » jlam
2003-08-27 Forgot a USE_GMAKE => USE_GNU_TOOLS+=make. (from pkgviews-mk)
235 .if defined(USE_GNU_TOOLS) && !empty(USE_GNU_TOOLS:Mmake)
f7da5090 » jlam
2003-08-26 Create a symlink from the "make" requested by the package into
236 _USE_GMAKE= yes
237 .endif
238
239 .if defined(_USE_GMAKE)
3689d634 » agc
1997-11-05 Let make do the work:
240 MAKE_PROGRAM= ${GMAKE}
f7da5090 » jlam
2003-08-26 Create a symlink from the "make" requested by the package into
241 .elif defined(USE_IMAKE)
c2ead5be » agc
2001-11-21 Add a definition of _IMAKE_MAKE to the individual defs.${OPSYS}.mk
242 MAKE_PROGRAM= ${_IMAKE_MAKE}
f7da5090 » jlam
2003-08-26 Create a symlink from the "make" requested by the package into
243 .else
6b858897 » tron
2001-06-07 Fix thinko in last commit.
244 MAKE_PROGRAM= ${MAKE}
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
245 .endif
6b285bd2 » jlam
2004-02-12 Several GNU configure scripts (old ones, typically) can't handle it when
246 CONFIGURE_ENV+= MAKE="${MAKE_PROGRAM:T}"
85d24187 » tv
1999-05-24 Implement some parts of proposals posted to tech-pkg:
247
e66393ec » cjep
2002-06-15 Change USE_KERBEROS to PKG_USE_KERBEROS in pkgsrc. There was a "confl…
248 .if defined(PKG_USE_KERBEROS)
0f10a1dd » jlam
2004-02-02 Kerberos-using packages now set CRYPTO, not RESTRICTED. Approved by p…
249 CRYPTO?= uses Kerberos encryption code
f4d3f502 » kim
1999-09-14 Change how Kerberos support is enabled in pkgsrc.
250 BUILD_DEFS+= KERBEROS
251 .endif
252
778ef557 » jlam
2004-02-10 Turn PERL5_REQD into a list of values, the highest of which will be used
253 # Distill the PERL5_REQD list into a single _PERL5_REQD value that is the
254 # highest version of Perl required.
255 #
256 PERL5_REQD+= 5.0
257 PERL5_REQD+= ${_OPSYS_PERL_REQD}
258
259 _PERL5_STRICTEST_REQD?= none
260 .for _version_ in ${PERL5_REQD}
261 . for _pkg_ in perl-${_version_}
262 . if ${_PERL5_STRICTEST_REQD} == "none"
263 _PERL5_PKG_SATISFIES_DEP= YES
264 . for _vers_ in ${PERL5_REQD}
265 . if !empty(_PERL5_PKG_SATISFIES_DEP:M[yY][eE][sS])
266 _PERL5_PKG_SATISFIES_DEP!= \
96f5175c » jlam
2004-03-13 Discard unused error messages from "pkg_admin pmatch".
267 if ${PKG_ADMIN} pmatch 'perl>=${_vers_}' ${_pkg_} 2>/dev/null; then \
778ef557 » jlam
2004-02-10 Turn PERL5_REQD into a list of values, the highest of which will be used
268 ${ECHO} "YES"; \
269 else \
270 ${ECHO} "NO"; \
271 fi
272 . endif
273 . endfor
274 . if !empty(_PERL5_PKG_SATISFIES_DEP:M[yY][eE][sS])
275 _PERL5_STRICTEST_REQD= ${_version_}
276 . endif
277 . endif
278 . endfor
279 .endfor
280 _PERL5_REQD= ${_PERL5_STRICTEST_REQD}
799a9dae » jlam
2002-07-24 * Change the semantics of the USE_PERL5 variable. USE_PERL5 may now take
281
282 # Convert USE_PERL5 to be two-valued: either "build" or "run" to denote
283 # whether we want a build-time or run-time dependency on perl.
284 #
4d586d1a » dmcmahill
2001-05-09 put the PERL5_REQD outside the USE_PERL5 check so packages can do:
285 .if defined(USE_PERL5)
799a9dae » jlam
2002-07-24 * Change the semantics of the USE_PERL5 variable. USE_PERL5 may now take
286 . if (${USE_PERL5} == "build")
287 _PERL5_DEPMETHOD= BUILD_DEPENDS
7775d17d » jlam
2002-07-22 Adapt to using perl-5.8.0. Perl 5.8.0 removes the need for libperl as
288 . else
799a9dae » jlam
2002-07-24 * Change the semantics of the USE_PERL5 variable. USE_PERL5 may now take
289 USE_PERL5:= run
290 _PERL5_DEPMETHOD= DEPENDS
7775d17d » jlam
2002-07-22 Adapt to using perl-5.8.0. Perl 5.8.0 removes the need for libperl as
291 . endif
e432db16 » jlam
2004-04-26 Allow perl-thread to also be acceptable when USE_PERL5 is defined.
292 _PERL5_DEPENDS= {perl>=${_PERL5_REQD},perl-thread>=${_PERL5_REQD}}
fa68053a » jlam
2004-03-29 Make lang/perl58 the default perl package installed when a package needs
293 PERL5_PKGSRCDIR?= ../../lang/perl58
c6d16c66 » jlam
2003-09-13 Don't add the perl dependency in bsd.pkg.mk if BUILDLINK_DEPENDS.perl is
294 . if !defined(BUILDLINK_DEPENDS.perl)
799a9dae » jlam
2002-07-24 * Change the semantics of the USE_PERL5 variable. USE_PERL5 may now take
295 ${_PERL5_DEPMETHOD}+= ${_PERL5_DEPENDS}:${PERL5_PKGSRCDIR}
914fcea0 » jlam
2002-09-06 Don't add the perl dependency if perl5/buildlink2.mk is included as the
296 . endif
799a9dae » jlam
2002-07-24 * Change the semantics of the USE_PERL5 variable. USE_PERL5 may now take
297 .endif
298
299 .if defined(USE_PERL5) && (${USE_PERL5} == "run")
e286cd00 » jlam
2003-09-12 Make the PERL5_* definitions sane in a pkgviews world.
300 . if !defined(PERL5_SITELIB) || !defined(PERL5_SITEARCH) || !defined(PERL5_ARCHLIB)
301 . if exists(${PERL5})
302 . if exists(${LOCALBASE}/share/mk/bsd.perl.mk)
303 . include "${LOCALBASE}/share/mk/bsd.perl.mk"
304 . else
87ee089c » jlam
2000-10-17 Quiet perl invocations in bsd.pkg.mk when the locale isn't properly s…
305 PERL5_SITELIB!= eval `${PERL5} -V:installsitelib 2>/dev/null`; \
abf3d02b » jlam
2001-06-12 Migrate some OS-specific variable definitions into OS-specific files.
306 ${ECHO} $${installsitelib}
87ee089c » jlam
2000-10-17 Quiet perl invocations in bsd.pkg.mk when the locale isn't properly s…
307 PERL5_SITEARCH!= eval `${PERL5} -V:installsitearch 2>/dev/null`; \
abf3d02b » jlam
2001-06-12 Migrate some OS-specific variable definitions into OS-specific files.
308 ${ECHO} $${installsitearch}
87ee089c » jlam
2000-10-17 Quiet perl invocations in bsd.pkg.mk when the locale isn't properly s…
309 PERL5_ARCHLIB!= eval `${PERL5} -V:installarchlib 2>/dev/null`; \
abf3d02b » jlam
2001-06-12 Migrate some OS-specific variable definitions into OS-specific files.
310 ${ECHO} $${installarchlib}
e286cd00 » jlam
2003-09-12 Make the PERL5_* definitions sane in a pkgviews world.
311 . endif # !exists(bsd.perl.mk)
312 . if ${PKG_INSTALLATION_TYPE} == "overwrite"
313 _PERL5_PREFIX!= eval `${PERL5} -V:prefix 2>/dev/null`; \
314 ${ECHO} $${prefix}
315 PERL5_SITELIB:= ${PERL5_SITELIB:S/^${_PERL5_PREFIX}/${LOCALBASE}/}
316 PERL5_SITEARCH:= ${PERL5_SITEARCH:S/^${_PERL5_PREFIX}/${LOCALBASE}/}
317 PERL5_ARCHLIB:= ${PERL5_ARCHLIB:S/^${_PERL5_PREFIX}/${LOCALBASE}/}
99404f48 » jlam
2004-02-06 If we're passing through MAKEFLAGS variables whose values may contain
318 MAKEFLAGS+= PERL5_SITELIB=${PERL5_SITELIB:Q}
319 MAKEFLAGS+= PERL5_SITEARCH=${PERL5_SITEARCH:Q}
320 MAKEFLAGS+= PERL5_ARCHLIB=${PERL5_ARCHLIB:Q}
e286cd00 » jlam
2003-09-12 Make the PERL5_* definitions sane in a pkgviews world.
321 . endif # PKG_INSTALLATION_TYPE == "overwrite"
322 . endif # exists($PERL5)
323 . endif # !defined(PERL5_*)
324 .endif # USE_PERL5 == run
85d24187 » tv
1999-05-24 Implement some parts of proposals posted to tech-pkg:
325
bede96e5 » dmcmahill
1999-11-22 - Add USE_FORTRAN variable. In packages which need a fortran compiler…
326 .if defined(USE_FORTRAN)
cee7bd8d » hubertf
2001-07-18 Change indentation (whitespace changes only!):
327 . if !exists(/usr/bin/f77)
bede96e5 » dmcmahill
1999-11-22 - Add USE_FORTRAN variable. In packages which need a fortran compiler…
328 PKG_FC?= f2c-f77
cee7bd8d » hubertf
2001-07-18 Change indentation (whitespace changes only!):
329 . endif
bede96e5 » dmcmahill
1999-11-22 - Add USE_FORTRAN variable. In packages which need a fortran compiler…
330 # it is anticipated that once /usr/bin/f77 is more stable that the following
331 # default will be changed to f77. However, in the case where there is no
332 # /usr/bin/f77, the default will remain as f2c-f77.
55e8de8a » dmcmahill
2002-05-19 make f77 be the default fortran compiler instead of f2c-f77 for netbs…
333 .for __tmp__ in 1.[5-9]* [2-9].*
334 . if ${MACHINE_PLATFORM:MNetBSD-${__tmp__}-*} != ""
335 PKG_FC?= f77
336 . endif # MACHINE_PLATFORM
337 .endfor # __tmp__
338 PKG_FC?= f2c-f77
cee7bd8d » hubertf
2001-07-18 Change indentation (whitespace changes only!):
339 . if (${PKG_FC} == "f2c-f77")
c614b2dd » dmcmahill
2001-04-18 when USE_FORTRAN is set and we don't have f77 set, or we've asked for
340 # this is a DEPENDS not BUILD_DEPENDS because of the
341 # shared Fortran libs
0b700850 » seb
2002-12-28 Fix typo.
342 . if empty(USE_BUILDLINK2:M[nN][oO])
2da1a7ef » jlam
2002-08-27 Fix USE_FORTRAN in the USE_BUILDLINK2 case.
343 . include "../../lang/f2c/buildlink2.mk"
28bb5b0a » jlam
2001-07-25 If USE_BUILDLINK_ONLY is defined, then use f2c/buildlink.mk instead of
344 . else
65998cc7 » jlam
2002-04-29 Change some spaces to tabs.
345 DEPENDS+= f2c>=20001205nb3:../../lang/f2c
28bb5b0a » jlam
2001-07-25 If USE_BUILDLINK_ONLY is defined, then use f2c/buildlink.mk instead of
346 . endif
cee7bd8d » hubertf
2001-07-18 Change indentation (whitespace changes only!):
347 . endif
bede96e5 » dmcmahill
1999-11-22 - Add USE_FORTRAN variable. In packages which need a fortran compiler…
348 FC= ${PKG_FC}
349 F77= ${PKG_FC}
175671e6 » jtb
2001-02-02 Set the variables F77 and FFLAGS in the configure environment (CONFIG…
350 CONFIGURE_ENV+= F77="${F77}"
ca82652e » jlam
2004-02-14 GNU configure scripts generated by newer autoconf sometimes try to
351 CONFIGURE_ENV+= FFLAGS="${FFLAGS:M*}"
c7eb7a7a » dmcmahill
1999-11-23 add "" around ${F77} and ${FC} when adding to MAKE_ENV. This way if s…
352 MAKE_ENV+= F77="${F77}"
353 MAKE_ENV+= FC="${FC}"
bede96e5 » dmcmahill
1999-11-22 - Add USE_FORTRAN variable. In packages which need a fortran compiler…
354 .endif
355
548c62be » tron
2002-01-04 Add a new variable "UNLIMIT_RESOURCES" which can be used to raise pro…
356 # Automatically increase process limit where necessary for building.
357 _ULIMIT_CMD=
358 .if defined(UNLIMIT_RESOURCES)
5c31b381 » seb
2002-08-28 Allow more flexibility in the handling of UNLIMIT_RESOURCES.
359 . for __tmp__ in ${UNLIMIT_RESOURCES}
360 . if defined(ULIMIT_CMD_${__tmp__})
361 _ULIMIT_CMD+= ${ULIMIT_CMD_${__tmp__}} ;
362 . endif
363 . endfor
548c62be » tron
2002-01-04 Add a new variable "UNLIMIT_RESOURCES" which can be used to raise pro…
364 .endif
365
5809bd25 » schmonz
2002-06-02 Introduce CPP_PRECOMP_FLAGS, defaulting to "-no-cpp-precomp" on
366 CPPFLAGS+= ${CPP_PRECOMP_FLAGS}
367
b0a12645 » jlam
2001-06-12 If GNU_CONFIGURE is defined, then pass LIBS to the GNU configure script.
368 # If GNU_CONFIGURE is defined, then pass LIBS to the GNU configure script.
1cb4aa68 » dmcmahill
2002-04-07 add CONFIG_SHELL to CONFIGURE_ENV. This avoids picking up bash as the…
369 # also pass in a CONFIG_SHELL to avoid picking up bash
b0a12645 » jlam
2001-06-12 If GNU_CONFIGURE is defined, then pass LIBS to the GNU configure script.
370 .if defined(GNU_CONFIGURE)
3d8ac510 » agc
2002-12-03 Abstract out the base value of libtool required into _OPSYS_LIBTOOL_R…
371 CONFIGURE_ENV+= LIBS="${LIBS}"
1cb4aa68 » dmcmahill
2002-04-07 add CONFIG_SHELL to CONFIGURE_ENV. This avoids picking up bash as the…
372 CONFIG_SHELL?= ${SH}
373 CONFIGURE_ENV+= CONFIG_SHELL=${CONFIG_SHELL}
e8b99815 » tv
2004-04-23 Rather than work around an automake braindeadness, parameterize insta…
374 CONFIGURE_ENV+= install_sh=${INSTALL:Q}
b0a12645 » jlam
2001-06-12 If GNU_CONFIGURE is defined, then pass LIBS to the GNU configure script.
375 .endif
376
60999c92 » grant
2003-01-21 require at least libtool 1.4.20010614nb12 on Darwin.
377 .if defined(_OPSYS_LIBTOOL_REQD)
378 LIBTOOL_REQD= ${_OPSYS_LIBTOOL_REQD}
379 .else
e3e3b3ef » reed
2004-03-09 Change LIBTOOL_REQD to recent libtool version, 1.5.2nb4. (This
380 LIBTOOL_REQD?= 1.5.2nb4
60999c92 » grant
2003-01-21 require at least libtool 1.4.20010614nb12 on Darwin.
381 .endif
fdab65c5 » jlam
2004-02-09 We need the full path to the libtool that needs to be invoked when we
382 #
383 # PKG_LIBTOOL is the path to the libtool script installed by libtool-base.
384 # _LIBTOOL is the path the libtool used by the build, which could be the
8f1525e2 » jlam
2004-02-12 typo in comment
385 # path to a libtool wrapper script.
fdab65c5 » jlam
2004-02-09 We need the full path to the libtool that needs to be invoked when we
386 # LIBTOOL is the publicly-readable variable that should be used by
387 # Makefiles to invoke the proper libtool.
388 #
cab73805 » jlam
2004-02-08 * Let CC/CXX/CPP/FC always point to the compiler used in the actual
389 PKG_LIBTOOL?= ${LOCALBASE}/bin/libtool
390 PKG_SHLIBTOOL?= ${LOCALBASE}/bin/shlibtool
fdab65c5 » jlam
2004-02-09 We need the full path to the libtool that needs to be invoked when we
391 _LIBTOOL?= ${PKG_LIBTOOL}
392 _SHLIBTOOL?= ${PKG_SHLIBTOOL}
cab73805 » jlam
2004-02-08 * Let CC/CXX/CPP/FC always point to the compiler used in the actual
393 LIBTOOL?= ${PKG_LIBTOOL}
394 SHLIBTOOL?= ${PKG_SHLIBTOOL}
7dfb434e » jlam
2002-09-17 Move the LIBTOOL definition outside of the USE_LIBTOOL conditional so…
395 .if defined(USE_LIBTOOL)
f94a04f5 » tv
2001-08-27 Since libtool has now been split, it's no longer necessary to have a
396 BUILD_DEPENDS+= libtool-base>=${LIBTOOL_REQD}:../../devel/libtool-base
cab73805 » jlam
2004-02-08 * Let CC/CXX/CPP/FC always point to the compiler used in the actual
397 CONFIGURE_ENV+= LIBTOOL="${LIBTOOL} ${LIBTOOL_FLAGS}"
398 MAKE_ENV+= LIBTOOL="${LIBTOOL} ${LIBTOOL_FLAGS}"
1984af52 » jlam
2004-02-14 Make LIBTOOL_OVERRIDE more powerful by taking a list of shell globs
399 LIBTOOL_OVERRIDE?= libtool */libtool */*/libtool
d0ee045a » tv
1998-07-24 Add the USE_LIBTOOL pkg Makefile option. When set, it adds a build
400 .endif
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
401
448b4f6c » tron
2002-01-05 Ignore "/usr/bin/msgfmt" under Solaris because it's not the GNU version.
402 .if defined(BUILD_USES_MSGFMT) && \
414cdee7 » agc
2002-12-03 Use a more generic way of determining, on an opsys-dependent basis,
403 (!exists(/usr/bin/msgfmt) || ${_USE_GNU_GETTEXT} == "yes")
f638b491 » jlam
2001-06-16 Add BUILD_USES_GETTEXT_M4 to set a build dependency on either an older
404 BUILD_DEPENDS+= gettext>=0.10.35nb1:../../devel/gettext
405 .endif
406
4a5a4038 » rh
2004-01-14 Add *RECOMMENDED variables as discussed on tech-pkg@ to allow for a …
407 .if defined(RECOMMENDED)
408 . if !empty(IGNORE_RECOMMENDED:M[nN][oO])
409 DEPENDS+= ${RECOMMENDED}
410 . else
411 BUILD_DEFS+= IGNORE_RECOMMENDED
412 . endif
413 .endif
414
4f685d30 » tv
1999-05-24 - The comment above the _COOKIE settings says "don't change these!!", so
415 EXTRACT_COOKIE= ${WRKDIR}/.extract_done
93cd8e15 » jlam
2002-08-22 Merge pkgsrc/mk from the buildlink2 branch back into the main trunk.
416 BUILDLINK_COOKIE= ${WRKDIR}/.buildlink_done
4f685d30 » tv
1999-05-24 - The comment above the _COOKIE settings says "don't change these!!", so
417 CONFIGURE_COOKIE= ${WRKDIR}/.configure_done
418 INSTALL_COOKIE= ${WRKDIR}/.install_done
922037a3 » dillo
2002-11-07 Add a test target to bsd.pkg.mk:
419 TEST_COOKIE= ${WRKDIR}/.test_done
4f685d30 » tv
1999-05-24 - The comment above the _COOKIE settings says "don't change these!!", so
420 BUILD_COOKIE= ${WRKDIR}/.build_done
421 PATCH_COOKIE= ${WRKDIR}/.patch_done
f2a7b212 » jlam
2003-08-16 Move the hide-tools portion of bsd.buildlink2.mk into tools.mk, and
422 TOOLS_COOKIE= ${WRKDIR}/.tools_done
4f685d30 » tv
1999-05-24 - The comment above the _COOKIE settings says "don't change these!!", so
423 PACKAGE_COOKIE= ${WRKDIR}/.package_done
481cd51e » agc
2002-08-07 Don't create the ${INTERACTIVE_COOKIE}s in the ${WRKDIR} - this will …
424 INTERACTIVE_COOKIE= .interactive_stage
6ef5f9a4 » seb
2002-05-14 Introduce NULL_COOKIE and use it instead of /dev/null for touch (see …
425 NULL_COOKIE= ${WRKDIR}/.null
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
426
0539cd41 » agc
2001-03-06 Add support for message digests other than md5 into pkgsrc. This is done
427 # New message digest defs
428 DIGEST_ALGORITHM?= SHA1
429
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
430 # Miscellaneous overridable commands:
33ed0c46 » hubertf
1999-11-29 Add code to include the size of a package into both the
431 SHCOMMENT?= ${ECHO_MSG} >/dev/null '***'
0539cd41 » agc
2001-03-06 Add support for message digests other than md5 into pkgsrc. This is done
432
37af9ec7 » agc
2001-04-17 Distinfo changes.
433 DISTINFO_FILE?= ${.CURDIR}/distinfo
434
6f949fde » jlam
2002-10-22 x11.buildlink.mk is no more so remove checks for X11_BUILDLINK_MK.
435 .if defined(USE_X11)
3697244c » grant
2003-03-30 kill some trailing whitespace
436 X11_LDFLAGS+= -Wl,${RPATH_FLAG}${X11BASE}/lib
6f949fde » jlam
2002-10-22 x11.buildlink.mk is no more so remove checks for X11_BUILDLINK_MK.
437 X11_LDFLAGS+= -L${X11BASE}/lib
81787ae8 » jlam
2003-09-02 Merge pkgviews-mk branch into the HEAD by running:
438 .endif
439 .if !empty(USE_BUILDLINK2:M[nN][oO]) && !empty(USE_BUILDLINK3:M[nN][oO])
440 LDFLAGS+= -Wl,${RPATH_FLAG}${LOCALBASE}/lib
441 LDFLAGS+= -L${LOCALBASE}/lib
442 . if defined(USE_X11)
297eccd8 » jlam
2002-09-23 Provide a separate variable "X11_LDFLAGS" that just contains the linker
443 LDFLAGS+= ${X11_LDFLAGS}
81787ae8 » jlam
2003-09-02 Merge pkgviews-mk branch into the HEAD by running:
444 . endif
4fe0aef0 » garbled
1998-09-14 Add new automatic handling for rpath. This sets the LDFLAGS variable
445 .endif
446 MAKE_ENV+= LDFLAGS="${LDFLAGS}"
d7087db1 » jschauma
2003-03-25 Export RPATH_FLAG to MAKE_ENV and CONFIGURE_ENV.
447 MAKE_ENV+= RPATH_FLAG="${RPATH_FLAG}"
9d857e64 » grant
2003-04-15 add OPSYS_{,NO_}WHOLE_ARCHIVE_FLAG which defines the argument passed
448 MAKE_ENV+= WHOLE_ARCHIVE_FLAG="${WHOLE_ARCHIVE_FLAG}"
449 MAKE_ENV+= NO_WHOLE_ARCHIVE_FLAG="${NO_WHOLE_ARCHIVE_FLAG}"
297f6129 » drochner
2003-06-06 export LINK_ALL_LIBGCC_HACK into the environment, just like
450 MAKE_ENV+= LINK_ALL_LIBGCC_HACK="${LINK_ALL_LIBGCC_HACK}"
9d857e64 » grant
2003-04-15 add OPSYS_{,NO_}WHOLE_ARCHIVE_FLAG which defines the argument passed
451
ca82652e » jlam
2004-02-14 GNU configure scripts generated by newer autoconf sometimes try to
452 CONFIGURE_ENV+= LDFLAGS="${LDFLAGS:M*}" M4="${M4}" YACC="${YACC}"
d7087db1 » jschauma
2003-03-25 Export RPATH_FLAG to MAKE_ENV and CONFIGURE_ENV.
453 CONFIGURE_ENV+= RPATH_FLAG="${RPATH_FLAG}"
4fe0aef0 » garbled
1998-09-14 Add new automatic handling for rpath. This sets the LDFLAGS variable
454
e64754f5 » agc
1998-06-10 Remove the trailing '-f' from MAKE_FLAGS in bsd.pkg.mk, and include it
455 MAKE_FLAGS?=
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
456 MAKEFILE?= Makefile
f9c8cc87 » agc
2002-05-03 Be consistent throughout the file with line continuations and whitesp…
457 MAKE_ENV+= PATH=${PATH}:${LOCALBASE}/bin:${X11BASE}/bin
458 MAKE_ENV+= PREFIX=${PREFIX} LOCALBASE=${LOCALBASE}
459 MAKE_ENV+= X11BASE=${X11BASE} CFLAGS="${CFLAGS}"
460 MAKE_ENV+= CPPFLAGS="${CPPFLAGS}" FFLAGS="${FFLAGS}"
461 MAKE_ENV+= X11PREFIX=${X11PREFIX}
6ff371e4 » abs
2003-06-07 if CC is defined, add it to MAKE_ENV
462 .if defined(CC)
463 MAKE_ENV+= CC="${CC}"
464 .endif
9e581bbd » grant
2003-06-14 if defined, add CXX and CPP to the make environment, as per CC.
465 .if defined(CXX)
466 MAKE_ENV+= CXX="${CXX}"
467 .endif
d0a32d3b » jmc
2003-08-04 Provide a new variable NO_EXPORT_CPP to further restrict CPP from get…
468 .if defined(CPP) && !defined(NO_EXPORT_CPP)
9e581bbd » grant
2003-06-14 if defined, add CXX and CPP to the make environment, as per CC.
469 MAKE_ENV+= CPP="${CPP}"
470 .endif
73265d75 » tron
2000-04-25 Don't use "MOTIFBASE" if "USE_MOTIF" was not defined. Patch supplied by
471
f7b45c8b » grant
2003-07-10 define user-visible variable PTHREAD_LDFLAGS that contains options
472 # export the flags needed to compile and link pthreaded code
473 MAKE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
474 MAKE_ENV+= PTHREAD_LDFLAGS="${PTHREAD_LDFLAGS}"
475
01594de1 » grant
2004-02-14 deprecate Zoularis: remove any tests for ZOULARIS* and bomb if
476 .if exists(${LOCALBASE}/bin/ftp)
477 FETCH_CMD?= ${LOCALBASE}/bin/ftp
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
478 .else
479 FETCH_CMD?= /usr/bin/ftp
480 .endif
481
85d24187 » tv
1999-05-24 Implement some parts of proposals posted to tech-pkg:
482 TOUCH_FLAGS?= -f
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
483
ded5906d » grant
2004-03-31 fix comment about needing patch(1).
484 # determine if we need a working patch(1).
30e93b47 » grant
2003-10-11 add a BUILD_DEPENDS on devel/patch if no suitable patch(1) is
485 _NEED_PATCH!= if [ -d ${PATCHDIR} ]; then \
486 if [ "`${ECHO} ${PATCHDIR}/patch-*`" != "${PATCHDIR}/patch-*" ]; then \
487 ${ECHO} YES; \
488 else \
489 ${ECHO} NO; \
490 fi \
491 else \
492 ${ECHO} NO; \
493 fi
494 .if defined(PATCHFILES)
495 _NEED_PATCH= YES
496 .endif
497
26c05c02 » grant
2004-01-29 let tools.mk decide whether GNU patch is needed.
498 .if ${_NEED_PATCH} == "YES"
691a6a2f » grant
2004-01-29 add GNU gnu patch(1), to override patch(1) on some platforms.
499 USE_GNU_TOOLS+= patch
30e93b47 » grant
2003-10-11 add a BUILD_DEPENDS on devel/patch if no suitable patch(1) is
500 .endif
501
85d24187 » tv
1999-05-24 Implement some parts of proposals posted to tech-pkg:
502 PATCH_STRIP?= -p0
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
503 PATCH_DIST_STRIP?= -p0
f97b12fe » agc
1998-06-18 Add automatic manual page handling. This is backwards-compatible with
504 .if defined(PATCH_DEBUG) || defined(PKG_VERBOSE)
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
505 PATCH_DEBUG_TMP= yes
85d24187 » tv
1999-05-24 Implement some parts of proposals posted to tech-pkg:
506 PATCH_ARGS?= -d ${WRKSRC} -E ${PATCH_STRIP}
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
507 PATCH_DIST_ARGS?= -d ${WRKSRC} -E ${PATCH_DIST_STRIP}
508 .else
509 PATCH_DEBUG_TMP= no
85d24187 » tv
1999-05-24 Implement some parts of proposals posted to tech-pkg:
510 PATCH_ARGS?= -d ${WRKSRC} --forward --quiet -E ${PATCH_STRIP}
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
511 PATCH_DIST_ARGS?= -d ${WRKSRC} --forward --quiet -E ${PATCH_DIST_STRIP}
512 .endif
513 .if defined(BATCH)
514 PATCH_ARGS+= --batch
515 PATCH_DIST_ARGS+= --batch
516 .endif
2575256a » hubertf
2002-12-11 * pass BSD_INSTALL to programs, just like the other BSD_INSTALL_* ma…
517 .if defined(_PATCH_CAN_BACKUP) && ${_PATCH_CAN_BACKUP} == "yes"
c67fef36 » lukem
2002-03-14 make _PATCH_BACKUP_ARG be more useful to callers by moving "-V simple"
518 PATCH_ARGS+= ${_PATCH_BACKUP_ARG} .orig
99fcfca8 » wiz
2003-03-22 Let distribution patches generate ${NAME}.orig_dist backup copies to …
519 PATCH_DIST_ARGS+= ${_PATCH_BACKUP_ARG} .orig_dist
e3575b00 » jschauma
2002-12-02 Add initial support for IRIX.
520 .endif
2f1fbfb6 » abs
2000-12-06 Enable 'PATCH_FUZZ_FACTOR?= -F0' by default, rather than just iff PKG…
521 PATCH_FUZZ_FACTOR?= -F0 # Default to zero fuzz
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
522
d820b5d7 » tron
1999-02-13 Add automatic handling for ".tar.bz2" archives - just set "EXTRACT_SUFX"
523 EXTRACT_SUFX?= .tar.gz
892cc26c » agc
1999-04-01 Rewrite the extraction commands to be more intuitive.
524
d65cf949 » jlam
2001-12-19 Teach bsd.pkg.mk how to extract all files in ${EXTRACT_ONLY} that end in
525 # We need bzip2 for PATCHFILES with .bz2 suffix.
0b6de3c7 » fredb
2000-05-17 Support bzip2 compressed patch files.
526 .if defined(PATCHFILES)
cee7bd8d » hubertf
2001-07-18 Change indentation (whitespace changes only!):
527 . if ${PATCHFILES:E} == "bz2" && ${EXTRACT_SUFX} != ".tar.bz2"
528 . if exists(/usr/bin/bzcat)
0b6de3c7 » fredb
2000-05-17 Support bzip2 compressed patch files.
529 BZCAT= /usr/bin/bzcat
cee7bd8d » hubertf
2001-07-18 Change indentation (whitespace changes only!):
530 . else
0b6de3c7 » fredb
2000-05-17 Support bzip2 compressed patch files.
531 BZCAT= ${LOCALBASE}/bin/bzcat
ecc9249b » dogcow
2001-08-16 change BUILD_DEPENDS+= bzip2-0.9.0b:../../archivers/bzip2 to >=0.9.0b;
532 BUILD_DEPENDS+= bzip2>=0.9.0b:../../archivers/bzip2
cee7bd8d » hubertf
2001-07-18 Change indentation (whitespace changes only!):
533 . endif # !exists bzcat
534 . endif
0b6de3c7 » fredb
2000-05-17 Support bzip2 compressed patch files.
535 .endif # defined(PATCHFILES)
536
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
537 # Figure out where the local mtree file is
538 .if !defined(MTREE_FILE)
39f7810b » jlam
2002-10-22 Have USE_IMAKE imply USE_X11BASE imply USE_X11. Now we can just check if
539 . if defined(USE_X11BASE)
b3b8afd4 » agc
2001-12-15 Modify all references to PKGSRCDIR to _PKGSRCDIR, except in the external
540 MTREE_FILE= ${_PKGSRCDIR}/mk/${OPSYS}.x11.dist
cee7bd8d » hubertf
2001-07-18 Change indentation (whitespace changes only!):
541 . else
b3b8afd4 » agc
2001-12-15 Modify all references to PKGSRCDIR to _PKGSRCDIR, except in the external
542 MTREE_FILE= ${_PKGSRCDIR}/mk/${OPSYS}.pkg.dist
cee7bd8d » hubertf
2001-07-18 Change indentation (whitespace changes only!):
543 . endif
42ce3723 » agc
1999-03-08 Add Solaris support to pkgsrc, using Christos Zoulas' NetBSD emulation
544 .endif # ! MTREE_FILE
545
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
546 MTREE_ARGS?= -U -f ${MTREE_FILE} -d -e -p
547
42ce3723 » agc
1999-03-08 Add Solaris support to pkgsrc, using Christos Zoulas' NetBSD emulation
548 # Debugging levels for this file, dependent on PKG_DEBUG_LEVEL definition
549 # 0 == normal, default, quiet operation
550 # 1 == all shell commands echoed before invocation
551 # 2 == shell "set -x" operation
552 PKG_DEBUG_LEVEL?= 0
553 _PKG_SILENT= @
952a343a » jlam
2002-09-26 When PKG_DEBUG_LEVEL=2, set_PKG_DEBUG_SCRIPT is set to "${SH} -x". Use
554 _PKG_DEBUG= # empty
555 _PKG_DEBUG_SCRIPT= # empty
42ce3723 » agc
1999-03-08 Add Solaris support to pkgsrc, using Christos Zoulas' NetBSD emulation
556
557 .if ${PKG_DEBUG_LEVEL} > 0
952a343a » jlam
2002-09-26 When PKG_DEBUG_LEVEL=2, set_PKG_DEBUG_SCRIPT is set to "${SH} -x". Use
558 _PKG_SILENT= # empty
42ce3723 » agc
1999-03-08 Add Solaris support to pkgsrc, using Christos Zoulas' NetBSD emulation
559 .endif
560
561 .if ${PKG_DEBUG_LEVEL} > 1
562 _PKG_DEBUG= set -x;
952a343a » jlam
2002-09-26 When PKG_DEBUG_LEVEL=2, set_PKG_DEBUG_SCRIPT is set to "${SH} -x". Use
563 _PKG_DEBUG_SCRIPT= ${SH} -x
f4e645fd » hubertf
1997-09-28 - Add OpenBSD and FreeBSD Ids in the header
564 .endif
565
28497bec » agc
2001-09-10 Set the default value of WRKSRC in a slightly different way (from Hubert
566 WRKSRC?= ${WRKDIR}/${DISTNAME}
367b4584 » agc
1998-09-15 Modifications for a read-only pkgsrc (but writable WRKOBJDIR).
567
f0e3be9a » hubertf
1998-03-08 Make definition of OBJMACHINE in mk.conf work.
568 .if defined(NO_WRKSUBDIR)
9809dc8b » schmonz
2003-01-09 Introduce NO_PKGTOOLS_REQD_CHECK, with which a package can disable
569 PKG_FAIL_REASON+='NO_WRKSUBDIR has been deprecated - please replace it with an explicit'
570 PKG_FAIL_REASON+='assignment of WRKSRC= $${WRKDIR}'
9ae56666 » hubertf
1998-07-03 When OBJMACHINE and WRKOBJDIR set, be sure to also add the arch name to
571 .endif # NO_WRKSUBDIR
f0e3be9a » hubertf
1998-03-08 Make definition of OBJMACHINE in mk.conf work.
572
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
573 # A few aliases for *-install targets
12cb1c54 » danw
2004-04-23 add an ${INSTALL_UNSTRIPPED} variable that can be used to block
574 .if !defined(INSTALL_UNSTRIPPED) || empty(INSTALL_UNSTRIPPED:M[yY][eE][sS])
804c41ee » jschauma
2004-05-12 Introduce new variables:
575 INSTALL_PROGRAM?= \
616dce3a » yyamano
2002-05-29 Replace STRIPFLAG with _STRIPFLAG_INSTALL to fix pkg/15467.
576 ${INSTALL} ${COPY} ${_STRIPFLAG_INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
804c41ee » jschauma
2004-05-12 Introduce new variables:
577 INSTALL_GAME?= \
578 ${INSTALL} ${COPY} ${_STRIPFLAG_INSTALL} -o ${GAMEOWN} -g ${GAMEGRP} -m ${GAMEMODE}
12cb1c54 » danw
2004-04-23 add an ${INSTALL_UNSTRIPPED} variable that can be used to block
579 .else
804c41ee » jschauma
2004-05-12 Introduce new variables:
580 INSTALL_PROGRAM?= \
12cb1c54 » danw
2004-04-23 add an ${INSTALL_UNSTRIPPED} variable that can be used to block
581 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
804c41ee » jschauma
2004-05-12 Introduce new variables:
582 INSTALL_GAME?= \
583 ${INSTALL} ${COPY} -o ${GAMEOWN} -g ${GAMEGRP} -m ${GAMEMODE}
12cb1c54 » danw
2004-04-23 add an ${INSTALL_UNSTRIPPED} variable that can be used to block
584 .endif
804c41ee » jschauma
2004-05-12 Introduce new variables:
585 INSTALL_SCRIPT?= \
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
586 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
804c41ee » jschauma
2004-05-12 Introduce new variables:
587 INSTALL_LIB?= \
43e03225 » tv
2004-04-27 Add a new install macro INSTALL_LIB for use when installing libraries
588 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
804c41ee » jschauma
2004-05-12 Introduce new variables:
589 INSTALL_DATA?= \
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
590 ${INSTALL} ${COPY} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE}
804c41ee » jschauma
2004-05-12 Introduce new variables:
591 INSTALL_MAN?= \
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
592 ${INSTALL} ${COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE}
804c41ee » jschauma
2004-05-12 Introduce new variables:
593 INSTALL_PROGRAM_DIR?= \
66d391fc » wiz
2003-07-12 Create directories with mode 0755, since that is what the mtree
594 ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m ${PKGDIRMODE}
804c41ee » jschauma
2004-05-12 Introduce new variables:
595 INSTALL_SCRIPT_DIR?= \
2fcd7fe7 » hubertf
1998-03-07 Add INSTALL_*_DIR macros.
596 ${INSTALL_PROGRAM_DIR}
804c41ee » jschauma
2004-05-12 Introduce new variables:
597 INSTALL_LIB_DIR?= \
43e03225 » tv
2004-04-27 Add a new install macro INSTALL_LIB for use when installing libraries
598 ${INSTALL_PROGRAM_DIR}
804c41ee » jschauma
2004-05-12 Introduce new variables:
599 INSTALL_DATA_DIR?= \
66d391fc » wiz
2003-07-12 Create directories with mode 0755, since that is what the mtree
600 ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m ${PKGDIRMODE}
804c41ee » jschauma
2004-05-12 Introduce new variables:
601 INSTALL_MAN_DIR?= \
66d391fc » wiz
2003-07-12 Create directories with mode 0755, since that is what the mtree
602 ${INSTALL} -d -o ${MANOWN} -g ${MANGRP} -m ${PKGDIRMODE}
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
603
b232e315 » jlam
2001-06-12 Use ${SORT} and ${WC} instead of sort and wc. Also some minor whitespace
604 INSTALL_MACROS= BSD_INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
605 BSD_INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
43e03225 » tv
2004-04-27 Add a new install macro INSTALL_LIB for use when installing libraries
606 BSD_INSTALL_LIB="${INSTALL_LIB}" \
b232e315 » jlam
2001-06-12 Use ${SORT} and ${WC} instead of sort and wc. Also some minor whitespace
607 BSD_INSTALL_DATA="${INSTALL_DATA}" \
608 BSD_INSTALL_MAN="${INSTALL_MAN}" \
2575256a » hubertf
2002-12-11 * pass BSD_INSTALL to programs, just like the other BSD_INSTALL_* ma…
609 BSD_INSTALL="${INSTALL}" \
b232e315 » jlam
2001-06-12 Use ${SORT} and ${WC} instead of sort and wc. Also some minor whitespace
610 BSD_INSTALL_PROGRAM_DIR="${INSTALL_PROGRAM_DIR}" \
611 BSD_INSTALL_SCRIPT_DIR="${INSTALL_SCRIPT_DIR}" \
43e03225 » tv
2004-04-27 Add a new install macro INSTALL_LIB for use when installing libraries
612 BSD_INSTALL_LIB_DIR="${INSTALL_LIB_DIR}" \
b232e315 » jlam
2001-06-12 Use ${SORT} and ${WC} instead of sort and wc. Also some minor whitespace
613 BSD_INSTALL_DATA_DIR="${INSTALL_DATA_DIR}" \
614 BSD_INSTALL_MAN_DIR="${INSTALL_MAN_DIR}"
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
615 MAKE_ENV+= ${INSTALL_MACROS}
616 SCRIPTS_ENV+= ${INSTALL_MACROS}
617
618 # The user can override the NO_PACKAGE by specifying this from
619 # the make command line
620 .if defined(FORCE_PACKAGE)
cee7bd8d » hubertf
2001-07-18 Change indentation (whitespace changes only!):
621 . undef NO_PACKAGE
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
622 .endif
623
659515a2 » wiz
2001-02-16 Change COMMENT handling:
624 .if !defined(COMMENT)
b4700ff6 » tv
2004-04-07 Convert "${ECHO} -n" to "${ECHO_N}", and introduce that into the defs.*
625 COMMENT!= (${CAT} ${PKGDIR}/COMMENT || ${ECHO_N} "(no description)") 2>/dev/null
659515a2 » wiz
2001-02-16 Change COMMENT handling:
626 .endif
627
85d24187 » tv
1999-05-24 Implement some parts of proposals posted to tech-pkg:
628 DESCR= ${WRKDIR}/.DESCR
4b398184 » agc
2001-11-09 Check for DESCR_SRC, PLIST_SRC, MESSAGE_SRC, DEINSTALL and INSTALL files
629 .if !defined(DESCR_SRC)
1ffa6079 » hubertf
2000-12-30 * Remove old PLIST-mi/md.shared/md.static that was only used for
630 DESCR_SRC?= ${PKGDIR}/DESCR
4b398184 » agc
2001-11-09 Check for DESCR_SRC, PLIST_SRC, MESSAGE_SRC, DEINSTALL and INSTALL files
631 .endif
80679914 » agc
1998-09-17 Make any INSTALL or DEINSTALL scripts specifiable in the package
632 PLIST= ${WRKDIR}/.PLIST
35738a50 » grant
2002-12-25 Introduce automatic platform dependant PLIST handling, as proposed on
633
81787ae8 » jlam
2003-09-02 Merge pkgviews-mk branch into the HEAD by running:
634 .if ${PLIST_TYPE} == "static"
8123fc4a » grant
2003-01-04 fix a typo in a comment.
635 # Automatic platform dependent PLIST handling
81787ae8 » jlam
2003-09-02 Merge pkgviews-mk branch into the HEAD by running:
636 . if !defined(PLIST_SRC)
637 . if exists(${PKGDIR}/PLIST.common)
35738a50 » grant
2002-12-25 Introduce automatic platform dependant PLIST handling, as proposed on
638 PLIST_SRC= ${PKGDIR}/PLIST.common
81787ae8 » jlam
2003-09-02 Merge pkgviews-mk branch into the HEAD by running:
639 . if exists(${PKGDIR}/PLIST.${OPSYS})
35738a50 » grant
2002-12-25 Introduce automatic platform dependant PLIST handling, as proposed on
640 PLIST_SRC+= ${PKGDIR}/PLIST.${OPSYS}
81787ae8 » jlam
2003-09-02 Merge pkgviews-mk branch into the HEAD by running:
641 . endif
642 . if exists(${PKGDIR}/PLIST.common_end)
2ab05c0d » grant
2002-12-25 add support for PLIST.common_end to automatic PLIST handling, which is
643 PLIST_SRC+= ${PKGDIR}/PLIST.common_end
81787ae8 » jlam
2003-09-02 Merge pkgviews-mk branch into the HEAD by running:
644 . endif
645 . elif exists(${PKGDIR}/PLIST.${OPSYS})
35738a50 » grant
2002-12-25 Introduce automatic platform dependant PLIST handling, as proposed on
646 PLIST_SRC= ${PKGDIR}/PLIST.${OPSYS}
81787ae8 » jlam
2003-09-02 Merge pkgviews-mk branch into the HEAD by running:
647 . else
35738a50 » grant
2002-12-25 Introduce automatic platform dependant PLIST handling, as proposed on
648 PLIST_SRC= ${PKGDIR}/PLIST
81787ae8 » jlam
2003-09-02 Merge pkgviews-mk branch into the HEAD by running:
649 . endif
35738a50 » grant
2002-12-25 Introduce automatic platform dependant PLIST handling, as proposed on
650 . endif
81787ae8 » jlam
2003-09-02 Merge pkgviews-mk branch into the HEAD by running:
651 _PLIST_SRC= ${PLIST_SRC}
652 .elif ${PLIST_TYPE} == "dynamic"
653 _PLIST_SRC= # empty, since we're using a dynamic PLIST
4b398184 » agc
2001-11-09 Check for DESCR_SRC, PLIST_SRC, MESSAGE_SRC, DEINSTALL and INSTALL files
654 .endif
35738a50 » grant
2002-12-25 Introduce automatic platform dependant PLIST handling, as proposed on
655
2a0e4ad2 » rh
1999-08-29 Add 'update' target to update a package and all depending packages.
656 DLIST= ${WRKDIR}/.DLIST
657 DDIR= ${WRKDIR}/.DDIR
80679914 » agc
1998-09-17 Make any INSTALL or DEINSTALL scripts specifiable in the package
658
1ffa6079 » hubertf
2000-12-30 * Remove old PLIST-mi/md.shared/md.static that was only used for
659
0c6bf26a » sakamoto
1999-09-03 s/PLIST_SUB/PLIST_SUBST/
660 # Set PLIST_SUBST to substitute "${variable}" to "value" in PLIST
74d9b137 » jlam
2000-08-27 Changes for building dynamic PLIST for perl packages:
661 PLIST_SUBST+= OPSYS=${OPSYS} \
662 OS_VERSION=${OS_VERSION} \
663 MACHINE_ARCH=${MACHINE_ARCH} \
664 MACHINE_GNU_ARCH=${MACHINE_GNU_ARCH} \
665 MACHINE_GNU_PLATFORM=${MACHINE_GNU_PLATFORM} \
a9f2d0b5 » rh
2002-07-13 Add missing LN to PLIST_SUBST
666 LN=${LN:Q} \
74d9b137 » jlam
2000-08-27 Changes for building dynamic PLIST for perl packages:
667 LOWER_VENDOR=${LOWER_VENDOR} \
668 LOWER_OPSYS=${LOWER_OPSYS} \
893cbf3e » abs
2001-12-12 Add LOWER_OS_VERSION to match LOWER_OPSYS, LOWER_VENDOR, and LOWER_ARCH
669 LOWER_OS_VERSION=${LOWER_OS_VERSION} \
497a81ca » jlam
2001-11-14 Add ${PKGBASE} to the things to substitute for in PLISTs.
670 PKGBASE=${PKGBASE} \
13cc4c1a » tron
2002-03-15 Invent a new variable "PKGNAME_NOREV" which holds the package name wi…
671 PKGNAME=${PKGNAME_NOREV} \
fe5e2f62 » tron
2001-09-24 Fix cut and paste error in last commit.
672 PKGLOCALEDIR=${PKGLOCALEDIR} \
673 PKGVERSION=${PKGVERSION:C/nb[0-9]*$//} \
2ae742bf » skrll
2002-02-05 Don't hardcode /usr/X11R6 when making directories or running X based
674 LOCALBASE=${LOCALBASE} \
f3a93736 » jlam
2003-11-23 Make the value of VIEWBASE available in more settings.
675 VIEWBASE=${VIEWBASE} \
2ae742bf » skrll
2002-02-05 Don't hardcode /usr/X11R6 when making directories or running X based
676 X11BASE=${X11BASE} \
677 X11PREFIX=${X11PREFIX} \
756a336a » jlam
2001-11-01 So many of our PLIST use mkdir, rmdir, and true, and we have full pat…
678 SVR4_PKGNAME=${SVR4_PKGNAME} \
a562193a » jlam
2001-11-03 Also substitute for CHMOD, CHOWN, CHGRP in PLISTs.
679 CHGRP=${CHGRP:Q} \
680 CHMOD=${CHMOD:Q} \
681 CHOWN=${CHOWN:Q} \
756a336a » jlam
2001-11-01 So many of our PLIST use mkdir, rmdir, and true, and we have full pat…
682 MKDIR=${MKDIR:Q} \
683 RMDIR=${RMDIR:Q} \
ced2d2ec » skrll
2002-02-15 mkdir -> ${MKDIR}
684 RM=${RM:Q} \
a00c14a1 » zuntum
2002-01-21 Add QMAILDIR variable that defaults to /var/qmail, may be set in /etc…
685 TRUE=${TRUE:Q} \
686 QMAILDIR=${QMAILDIR}
ce66a230 » jlam
2000-08-29 Fix errors with not finding perl in another way.
687 .if defined(PERL5_SITELIB)
688 PLIST_SUBST+= PERL5_SITELIB=${PERL5_SITELIB:S/^${LOCALBASE}\///}
689 .endif
690 .if defined(PERL5_SITEARCH)
691 PLIST_SUBST+= PERL5_SITEARCH=${PERL5_SITEARCH:S/^${LOCALBASE}\///}
692 .endif
693 .if defined(PERL5_ARCHLIB)
694 PLIST_SUBST+= PERL5_ARCHLIB=${PERL5_ARCHLIB:S/^${LOCALBASE}\///}
6f89ba4c » jlam
2000-08-28 Surround the PERL5_* in PLIST_SUBST with .if defined(USE_PERL5) ... .…
695 .endif
bb5add89 » sakamoto
1999-08-31 Add support for PLIST_SUB variable. It is a list of "VAR=VALUE" pairs,
696
ec825509 » jlam
2003-08-30 Back out last revision since we modified bsd.pkg.install.mk to require
697 # Handle info files
698 #
c81e4d55 » jlam
2004-02-12 Remove trailing whitespace.
699 INFO_FILES?= # default to no info files to handle
ec825509 » jlam
2003-08-30 Back out last revision since we modified bsd.pkg.install.mk to require
700 USE_MAKEINFO?= no # default to not using makeinfo
701 .if !empty(INFO_FILES) || empty(USE_MAKEINFO:M[nN][oO])
702 . include "../../mk/texinfo.mk"
703 .endif
704
0a7cbe81 » jlam
2003-09-17 Introduce a new variable "CONF_DEPENDS" for pkgviews: a package's
705 # CONF_DEPENDS notes a dependency where the config directory for the
706 # package matches the dependency's config directory. CONF_DEPENDS is
707 # only meaningful if ${PKG_INSTALLATION_TYPE} == "pkgviews".
708 #
709 CONF_DEPENDS?= # empty
710 .if !empty(CONF_DEPENDS)
711 USE_PKGINSTALL= yes
712 .endif
713
41ad09d8 » jlam
2003-01-29 Move the inclusion of bsd.pkg.install.mk higher so that binary packages
714 .if defined(USE_PKGINSTALL) && !empty(USE_PKGINSTALL:M[yY][eE][sS])
715 . include "../../mk/bsd.pkg.install.mk"
716 .endif
717
80679914 » agc
1998-09-17 Make any INSTALL or DEINSTALL scripts specifiable in the package
718 # Set INSTALL_FILE to be the name of any INSTALL file
719 .if !defined(INSTALL_FILE) && exists(${PKGDIR}/INSTALL)
720 INSTALL_FILE= ${PKGDIR}/INSTALL
721 .endif
722
723 # Set DEINSTALL_FILE to be the name of any DEINSTALL file
724 .if !defined(DEINSTALL_FILE) && exists(${PKGDIR}/DEINSTALL)
725 DEINSTALL_FILE= ${PKGDIR}/DEINSTALL
726 .endif
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
727
1ca7a4f3 » jlam
2001-11-14 Allow MESSAGE_SRC to be a space-separated list of files, like PLIST_SRC,
728 # If MESSAGE hasn't been defined, then set MESSAGE_SRC to be a space-separated
729 # list of files to be concatenated together to generate the MESSAGE file.
730 #
6d37e91a » grant
2002-12-05 Add OS and arch specific MESSAGE file handling. This removes the
731 .if !defined(MESSAGE_SRC) && !defined(MESSAGE)
56af313f » seb
2002-12-07 Partially revert to behavior of revision 1.1100 wrt MESSAGE_SRC:
732 . if exists(${PKGDIR}/MESSAGE)
733 MESSAGE_SRC= ${PKGDIR}/MESSAGE
734 . else
735 . if exists(${PKGDIR}/MESSAGE.common)
6d37e91a » grant
2002-12-05 Add OS and arch specific MESSAGE file handling. This removes the
736 MESSAGE_SRC= ${PKGDIR}/MESSAGE.common
56af313f » seb
2002-12-07 Partially revert to behavior of revision 1.1100 wrt MESSAGE_SRC:
737 . endif
738 . if exists(${PKGDIR}/MESSAGE.${OPSYS})
6d37e91a » grant
2002-12-05 Add OS and arch specific MESSAGE file handling. This removes the
739 MESSAGE_SRC+= ${PKGDIR}/MESSAGE.${OPSYS}
56af313f » seb
2002-12-07 Partially revert to behavior of revision 1.1100 wrt MESSAGE_SRC:
740 . endif
f47f0f34 » salo
2003-04-03 Add architecture specific MESSAGE file handling.
741 . if exists(${PKGDIR}/MESSAGE.${MACHINE_ARCH:C/i[3-6]86/i386/g})
742 MESSAGE_SRC+= ${PKGDIR}/MESSAGE.${MACHINE_ARCH:C/i[3-6]86/i386/g}
743 . endif
dcb217c5 » grant
2002-12-10 use the form MESSAGE.${OPSYS}-${MACHINE_PLATFORM} for automatic
744 . if exists(${PKGDIR}/MESSAGE.${OPSYS}-${MACHINE_ARCH:C/i[3-6]86/i386/g})
745 MESSAGE_SRC+= ${PKGDIR}/MESSAGE.${OPSYS}-${MACHINE_ARCH:C/i[3-6]86/i386/g}
56af313f » seb
2002-12-07 Partially revert to behavior of revision 1.1100 wrt MESSAGE_SRC:
746 . endif
6d37e91a » grant
2002-12-05 Add OS and arch specific MESSAGE file handling. This removes the
747 . endif
a28eea9b » wiz
2001-01-29 Add automatic ${VARIABLE} handling for MESSAGE files.
748 .endif
749
750 .if defined(MESSAGE_SRC)
751 MESSAGE= ${WRKDIR}/.MESSAGE
752
753 # Set MESSAGE_SUBST to substitute "${variable}" to "value" in MESSAGE
754 MESSAGE_SUBST+= PKGNAME=${PKGNAME} \
755 PREFIX=${PREFIX} \
756 LOCALBASE=${LOCALBASE} \
f3a93736 » jlam
2003-11-23 Make the value of VIEWBASE available in more settings.
757 VIEWBASE=${VIEWBASE} \
a28eea9b » wiz
2001-01-29 Add automatic ${VARIABLE} handling for MESSAGE files.
758 X11PREFIX=${X11PREFIX} \
625d612c » jlam
2002-01-10 Also substitute for ${PKG_SYSCONFDIR} in MESSAGE files.
759 X11BASE=${X11BASE} \
42380fa9 » zuntum
2002-01-21 Add ${QMAILDIR} to MESSAGE_SUBST, as it is going to be used in all qm…
760 PKG_SYSCONFDIR=${PKG_SYSCONFDIR} \
701973bb » jlam
2002-10-08 Recognize ROOT_USER and ROOT_GROUP in MESSAGE files.
761 ROOT_GROUP=${ROOT_GROUP} \
762 ROOT_USER=${ROOT_USER} \
42380fa9 » zuntum
2002-01-21 Add ${QMAILDIR} to MESSAGE_SUBST, as it is going to be used in all qm…
763 QMAILDIR=${QMAILDIR}
1ca7a4f3 » jlam
2001-11-14 Allow MESSAGE_SRC to be a space-separated list of files, like PLIST_SRC,
764
765 MESSAGE_SUBST_SED= ${MESSAGE_SUBST:S/=/}!/:S/$/!g/:S/^/ -e s!\\\${/}
89a889b1 » agc
1998-09-17 Make the REQ and MESSAGE files specifiable from package Makefiles,
766 .endif
767
3bfda945 » jlam
2004-03-22 Due to the special handling of pkgtools/digest in pkgsrc (it must be
768 # If pkgsrc is supposed to ensure that tests are run before installation
769 # of the package, then the build targets should be "build test", otherwise
770 # just "build" suffices. _PKGSRC_BUILD_TARGETS is used in the "all",
771 # "install", and "uptodate-digest" targets.
772 #
773 .if !empty(PKGSRC_RUN_TEST:M[yY][eE][sS])
774 _PKGSRC_BUILD_TARGETS= build test
775 .else
776 _PKGSRC_BUILD_TARGETS= build
777 .endif
778
0539cd41 » agc
2001-03-06 Add support for message digests other than md5 into pkgsrc. This is done
779 # Latest version of digest(1) required for pkgsrc
780 DIGEST_REQD= 20010302
781
3e1f9b11 » jlam
2004-03-13 If USE_DIGEST is "no", then skip the check for an up-to-date digest.
782 USE_DIGEST?= yes
783
5dc948e0 » jmmv
2003-07-23 Mark all targets that do not correspond to real files with the .PHONY
784 .PHONY: uptodate-digest
0539cd41 » agc
2001-03-06 Add support for message digests other than md5 into pkgsrc. This is done
785 uptodate-digest:
6dd50f78 » jlam
2004-03-13 Test was reversed.
786 .if !empty(USE_DIGEST:M[yY][eE][sS])
0539cd41 » agc
2001-03-06 Add support for message digests other than md5 into pkgsrc. This is done
787 ${_PKG_SILENT}${_PKG_DEBUG} \
80258e3e » abs
2003-06-17 Change uptodate-digest check from excluding digest on 'digest-* | pkg…
788 if [ -f ${DISTINFO_FILE} -a \( ! -f ${DIGEST} -o ${DIGEST_VERSION} -lt ${DIGEST_REQD} \) ]; then \
789 { cd ${_PKGSRCDIR}/pkgtools/digest; \
790 ${MAKE} clean; \
791 if [ -f ${DIGEST} ]; then \
792 ${MAKE} ${MAKEFLAGS} deinstall; \
793 fi; \
3bfda945 » jlam
2004-03-22 Due to the special handling of pkgtools/digest in pkgsrc (it must be
794 ${MAKE} ${MAKEFLAGS} ${_PKGSRC_BUILD_TARGETS}; \
795 if [ -f ${DIGEST} ]; then \
796 ${MAKE} ${MAKEFLAGS} deinstall; \
797 fi; \
80258e3e » abs
2003-06-17 Change uptodate-digest check from excluding digest on 'digest-* | pkg…
798 ${MAKE} ${MAKEFLAGS} ${DEPENDS_TARGET}; \
799 ${MAKE} ${MAKEFLAGS} clean; } \
0539cd41 » agc
2001-03-06 Add support for message digests other than md5 into pkgsrc. This is done
800 fi
3e1f9b11 » jlam
2004-03-13 If USE_DIGEST is "no", then skip the check for an up-to-date digest.
801 .else
802 @${DO_NADA}
803 .endif
0539cd41 » agc
2001-03-06 Add support for message digests other than md5 into pkgsrc. This is done
804
fcdf1961 » grant
2003-04-17 allow defs.*.mk to override PKGTOOLS_REQD, starting with Solaris
805 # Latest version of pkgtools required for correct pkgsrc operation.
806 .if defined(_OPSYS_PKGTOOLS_REQD)
807 PKGTOOLS_REQD= ${_OPSYS_PKGTOOLS_REQD}
808 .else
13896f68 » wiz
2003-11-02 Depend on pkgtools-20030918 again; http support is not really a requi…
809 PKGTOOLS_REQD= 20030918
fcdf1961 » grant
2003-04-17 allow defs.*.mk to override PKGTOOLS_REQD, starting with Solaris
810 .endif
9aa73c78 » hubertf
2000-01-09 Fix size-registering code.
811
16149d92 » tron
2001-03-23 Add a version check for the installed Zoularis version.
812 # Check that we are using up-to-date pkg_* tools with this file.
01594de1 » grant
2004-02-14 deprecate Zoularis: remove any tests for ZOULARIS* and bomb if
813 .PHONY: uptodate-pkgtools
9aa73c78 » hubertf
2000-01-09 Fix size-registering code.
814 uptodate-pkgtools:
9809dc8b » schmonz
2003-01-09 Introduce NO_PKGTOOLS_REQD_CHECK, with which a package can disable
815 . if !defined(NO_PKGTOOLS_REQD_CHECK)
816 . if ${PKGTOOLS_VERSION} < ${PKGTOOLS_REQD}
48936a3a » grant
2003-12-09 make the "update your package tools!" failure message more accurate
817 PKG_FAIL_REASON+='Error: The package tools installed on this system are out of date.'
818 PKG_FAIL_REASON+='The installed package tools are dated ${PKGTOOLS_VERSION:C|(....)(..)(..)|\1/\2/\3|} and you must update'
819 PKG_FAIL_REASON+='them to at least ${PKGTOOLS_REQD:C|(....)(..)(..)|\1/\2/\3|} using the following command:'
820 PKG_FAIL_REASON+=''
67245bb4 » jlam
2003-09-14 Recommend "make clean && make install" instead of just "make install"…
821 PKG_FAIL_REASON+=' cd ${_PKGSRCDIR}/pkgtools/pkg_install && ${MAKE} clean && ${MAKE} install'
9809dc8b » schmonz
2003-01-09 Introduce NO_PKGTOOLS_REQD_CHECK, with which a package can disable
822 . endif
823 . endif
9aa73c78 » hubertf
2000-01-09 Fix size-registering code.
824
825 # Files to create for versioning and build information
826 BUILD_VERSION_FILE= ${WRKDIR}/.build_version
827 BUILD_INFO_FILE= ${WRKDIR}/.build_info
828
829 # Files containing size of pkg w/o and w/ all required pkgs
89455e54 » wiz
2000-06-26 rename Size* to .Size*
830 SIZE_PKG_FILE= ${WRKDIR}/.SizePkg
831 SIZE_ALL_FILE= ${WRKDIR}/.SizeAll
9aa73c78 » hubertf
2000-01-09 Fix size-registering code.
832
2b46b127 » agc
2003-01-10 Add the PKG_PRESERVE capability to bsd.pkg.mk.
833 # File to denote "no deletion of a package"
834 PRESERVE_FILE= ${WRKDIR}/.PRESERVE
835
675041e6 » jwise
2001-01-29 As per discussion on tech-pkg, correct behavior of `make package' in the
836 .ifndef PKG_ARGS_COMMON
005bc334 » bouyer
2002-10-28 Revert previous. There are extra quotes in COMMENT files created by make
837 PKG_ARGS_COMMON= -v -c -${COMMENT:Q}" " -d ${DESCR} -f ${PLIST}
659515a2 » wiz
2001-02-16 Change COMMENT handling:
838 PKG_ARGS_COMMON+= -l -b ${BUILD_VERSION_FILE} -B ${BUILD_INFO_FILE}
675041e6 » jwise
2001-01-29 As per discussion on tech-pkg, correct behavior of `make package' in the
839 PKG_ARGS_COMMON+= -s ${SIZE_PKG_FILE} -S ${SIZE_ALL_FILE}
8b08eac9 » tv
2004-04-02 Undo implicit recursive package registration. The buildlink[23] syste…
840 PKG_ARGS_COMMON+= -P "`${MAKE} ${MAKEFLAGS} run-depends-list | ${SORT} -u`"
f28b5125 » jlam
2003-11-25 Don't write conflicts into the binary packages unless they're "overwr…
841 . if defined(CONFLICTS) && (${PKG_INSTALLATION_TYPE} == "overwrite")
675041e6 » jwise
2001-01-29 As per discussion on tech-pkg, correct behavior of `make package' in the
842 PKG_ARGS_COMMON+= -C "${CONFLICTS}"
cee7bd8d » hubertf
2001-07-18 Change indentation (whitespace changes only!):
843 . endif
844 . ifdef INSTALL_FILE
675041e6 » jwise
2001-01-29 As per discussion on tech-pkg, correct behavior of `make package' in the
845 PKG_ARGS_COMMON+= -i ${INSTALL_FILE}
cee7bd8d » hubertf
2001-07-18 Change indentation (whitespace changes only!):
846 . endif
847 . ifdef DEINSTALL_FILE
675041e6 » jwise
2001-01-29 As per discussion on tech-pkg, correct behavior of `make package' in the
848 PKG_ARGS_COMMON+= -k ${DEINSTALL_FILE}
cee7bd8d » hubertf
2001-07-18 Change indentation (whitespace changes only!):
849 . endif
850 . ifdef MESSAGE
a28eea9b » wiz
2001-01-29 Add automatic ${VARIABLE} handling for MESSAGE files.
851 PKG_ARGS_COMMON+= -D ${MESSAGE}
cee7bd8d » hubertf
2001-07-18 Change indentation (whitespace changes only!):
852 . endif
853 . ifndef NO_MTREE
675041e6 » jwise
2001-01-29 As per discussion on tech-pkg, correct behavior of `make package' in the
854 PKG_ARGS_COMMON+= -m ${MTREE_FILE}
cee7bd8d » hubertf
2001-07-18 Change indentation (whitespace changes only!):
855 . endif
2b46b127 » agc
2003-01-10 Add the PKG_PRESERVE capability to bsd.pkg.mk.
856 . ifdef PKG_PRESERVE
857 PKG_ARGS_COMMON+= -n ${PRESERVE_FILE}
858 . endif
675041e6 » jwise
2001-01-29 As per discussion on tech-pkg, correct behavior of `make package' in the
859
860 PKG_ARGS_INSTALL= -p ${PREFIX} ${PKG_ARGS_COMMON}
de09ff81 » hubertf
2001-03-29 Don't use regexp substitution where plain substitution is intended,
861 PKG_ARGS_BINPKG= -p ${PREFIX:S/^${DESTDIR}//} -L ${PREFIX} ${PKG_ARGS_COMMON}
675041e6 » jwise
2001-01-29 As per discussion on tech-pkg, correct behavior of `make package' in the
862 .endif # !PKG_ARGS_COMMON
863
81787ae8 » jlam
2003-09-02 Merge pkgviews-mk branch into the HEAD by running:
864 .if ${PKG_INSTALLATION_TYPE} == "pkgviews"
865 PKG_ARGS_INSTALL+= -U # don't update the pkgdb.byfile.db
866 PKG_ARGS_BINPKG+= -E # create an empty views file in the binpkg
867 .endif
868
9aa73c78 » hubertf
2000-01-09 Fix size-registering code.
869 PKG_SUFX?= .tgz
1ffa6079 » hubertf
2000-12-30 * Remove old PLIST-mi/md.shared/md.static that was only used for
870 #PKG_SUFX?= .tbz # bzip2(1) pkgs
9aa73c78 » hubertf
2000-01-09 Fix size-registering code.
871
04f7e634 » agc
2000-03-13 Previous commit to bsd.pkg.mk caught some "SMART_MESSAGES" work - doc…
872 # Define SMART_MESSAGES in /etc/mk.conf for messages giving the tree
2899a745 » jlam
2001-01-30 Typo in comment for SMART_MESSAGES.
873 # of dependencies for building, and the current target.
fce33061 » agc
2000-03-13 Fix PACKAGE_DEPENDS_QUICK when installing on Solaris - escape the
874 .ifdef SMART_MESSAGES
875 _PKGSRC_IN?= ===> ${.TARGET} [${PKGNAME}${_PKGSRC_DEPS}] ===
876 .else
877 _PKGSRC_IN?= ===
878 .endif
879
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
880 # Used to print all the '===>' style prompts - override this to turn them off.
881 ECHO_MSG?= ${ECHO}
882
6348997d » hubertf
1998-02-02 Introduce TRUE?=/usr/bin/true, and use it.
883 # How to do nothing. Override if you, for some strange reason, would rather
884 # do something.
885 DO_NADA?= ${TRUE}
886
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
887 ALL_TARGET?= all
888 INSTALL_TARGET?= install
889
3689d634 » agc
1997-11-05 Let make do the work:
890 .if defined(USE_IMAKE) && !defined(NO_INSTALL_MANPAGES)
891 INSTALL_TARGET+= install.man
892 .endif
893
c502b71e » agc
1998-05-29 Implement a new PASSIVE_FETCH definition, which can be set in the
894 # If this host is behind a filtering firewall, use passive ftp(1)
895 .if defined(PASSIVE_FETCH)
896 FETCH_BEFORE_ARGS += -p
897 .endif
898
3697244c » grant
2003-03-30 kill some trailing whitespace
899 # Check if we got "rman" with XFree86, for packages that need "rman".
3deac7b8 » fredb
2001-03-20 As discussed on tech-pkg, introduce USE_RMAN to accomodate the XFree8…
900 .if defined(USE_RMAN)
cee7bd8d » hubertf
2001-07-18 Change indentation (whitespace changes only!):
901 . if !exists(${X11BASE}/bin/rman)
3deac7b8 » fredb
2001-03-20 As discussed on tech-pkg, introduce USE_RMAN to accomodate the XFree8…
902 DEPENDS+= rman-3.0.9:../../textproc/rman
903 RMAN?= ${LOCALBASE}/bin/rman
cee7bd8d » hubertf
2001-07-18 Change indentation (whitespace changes only!):
904 . else
3deac7b8 » fredb
2001-03-20 As discussed on tech-pkg, introduce USE_RMAN to accomodate the XFree8…
905 RMAN?= ${X11BASE}/bin/rman
cee7bd8d » hubertf
2001-07-18 Change indentation (whitespace changes only!):
906 . endif
3deac7b8 » fredb
2001-03-20 As discussed on tech-pkg, introduce USE_RMAN to accomodate the XFree8…
907 .endif
908
5d4578f3 » jlam
2002-10-13 Reorder EVAL_PREFIX, PKG_JAVA_HOME, and CLASSPATH sections so that
909 .if defined(EVAL_PREFIX)
910 . for def in ${EVAL_PREFIX}
911 . if !defined(${def:C/=.*//}_DEFAULT)
912 ${def:C/=.*//}_DEFAULT= ${X11PREFIX}
913 . endif
914 . if !defined(${def:C/=.*//})
915 _depend_${def:C/=.*//} != ${PKG_INFO} -e ${def:C/.*=//} 2>/dev/null; ${ECHO}
916 . if (${_depend_${def:C/=.*//}} == "")
917 ${def:C/=.*//}=${${def:C/=.*//}_DEFAULT}
918 . else
919 _dir_${def:C/=.*//} != (${PKG_INFO} -qp ${def:C/.*=//} 2>/dev/null) | ${AWK} '{ print $$2; exit }'
920 ${def:C/=.*//}=${_dir_${def:C/=.*//}}
921 MAKEFLAGS+= ${def:C/=.*//}=${_dir_${def:C/=.*//}}
922 . endif
923 . endif
924 . endfor
925 .endif
926
927 # Set the CLASSPATH for Java packages. This must come after EVAL_PREFIX
928 # is evaluated because PKG_JAVA_HOME is used in a .if.endif conditional,
5dd074b3 » snj
2004-01-20 s/it's/its/
929 # and its value is indirectly set by EVAL_PREFIX.
5d4578f3 » jlam
2002-10-13 Reorder EVAL_PREFIX, PKG_JAVA_HOME, and CLASSPATH sections so that
930 #
931 .if defined(USE_JAVA)
43c57ba5 » abs
2003-01-29 Set _JAVA_BASE_CLASSES to classes.zip or wre.jar in java-vm.mk, then …
932 . if exists(${PKG_JAVA_HOME}/lib/${_JAVA_BASE_CLASSES})
933 _JAVA_CLASSES_ZIP= ${PKG_JAVA_HOME}/lib/${_JAVA_BASE_CLASSES}:
5d4578f3 » jlam
2002-10-13 Reorder EVAL_PREFIX, PKG_JAVA_HOME, and CLASSPATH sections so that
934 . endif
935 . if exists(${PKG_JAVA_HOME}/lib/tools.jar)
936 _JAVA_TOOLS_JAR= ${PKG_JAVA_HOME}/lib/tools.jar:
937 . endif
938 CLASSPATH?= ${_JAVA_CLASSES_ZIP}${_JAVA_TOOLS_JAR}.
939
940 MAKE_ENV+= CLASSPATH=${CLASSPATH}
941 CONFIGURE_ENV+= CLASSPATH=${CLASSPATH}
942 SCRIPTS_ENV+= CLASSPATH=${CLASSPATH}
943 .endif
944
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
945 # Popular master sites
946 MASTER_SITE_XCONTRIB+= \
41d7ba4b » wiz
2001-06-28 Update MASTER_SITE_XCONTRIB server list, inspired by a posting to tec…
947 ftp://uiarchive.uiuc.edu/pub/ftp/ftp.x.org/contrib/ \
948 ftp://sunsite.doc.ic.ac.uk/packages/X11/contrib/ \
949 ftp://ftp.gwdg.de/pub/x11/x.org/contrib/ \
950 ftp://ftp.sunet.se/pub/X11/contrib/ \
951 ftp://sunsite.sut.ac.jp/pub/archives/X11/contrib/ \
952 ftp://sunsite.icm.edu.pl/pub/X11/contrib/ \
953 ftp://ftp.task.gda.pl/mirror/ftp.x.org/contrib/ \
954 ftp://ftp.ntua.gr/pub/X11/contrib/ \
955 ftp://sunsite.cnlab-switch.ch/mirror/X11/contrib/ \
956 ftp://ftp.cica.es/pub/X/contrib/ \
957 ftp://ftp.unicamp.br/pub/X11/contrib/ \
d77722cd » tron
1999-04-15 Completely replace "MASTER_SITE_SUBDIR" and "PATCH_SITE_SUBDIR" with
958 ftp://ftp.x.org/contrib/
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
959
960 MASTER_SITE_GNU+= \
d77722cd » tron
1999-04-15 Completely replace "MASTER_SITE_SUBDIR" and "PATCH_SITE_SUBDIR" with
961 ftp://ftp.gnu.org/pub/gnu/ \
10adc4db » grant
2003-12-11 remove ftp.progsoc.uts.edu.au from MASTER_SITE_GNU as it has been
962 http://public.planetmirror.com.au/pub/gnu/ \
ae28d589 » salo
2003-02-16 Add more mirrors to MASTER_SITE_MOZILLA, MASTER_SITE_GNOME, MASTER_SI…
963 ftp://gatekeeper.dec.com/pub/GNU/ \
964 ftp://ftp.uu.net/archive/systems/gnu/ \
965 ftp://ftp.de.uu.net/pub/gnu/ \
966 ftp://ftp.funet.fi/pub/gnu/prep/ \
967 ftp://ftp.leo.org/pub/comp/os/unix/gnu/ \
968 ftp://ftp.digex.net/pub/gnu/ \
969 ftp://ftp.wustl.edu/mirrors/gnu/ \
970 ftp://ftp.kddlabs.co.jp/pub/gnu/ \
971 ftp://ftp.dti.ad.jp/pub/GNU/ \
972 ftp://ftp.mirror.ac.uk/sites/ftp.gnu.org/gnu/ \
973 ftp://sunsite.org.uk/Mirrors/ftp.gnu.org/pub/gnu/ \
974 ftp://ftp.informatik.hu-berlin.de/pub/gnu/ \
975 ftp://ftp.rediris.es/mirror/gnu/ \
976 ftp://ftp.lip6.fr/pub/gnu/ \
977 ftp://ftp.tuwien.ac.at/linux/gnu/gnusrc/ \
978 ftp://ftp.chg.ru/pub/gnu/
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
979
fed8ee45 » rh
2002-09-27 Add MASTER_SITE_GNUSTEP
980 MASTER_SITE_GNUSTEP+= \
981 ftp://ftp.gnustep.org/pub/gnustep/ \
00ae3181 » grant
2003-04-10 planetmirror -> http (the ftp server has a 250 user limit), use
982 http://public.planetmirror.com.au/pub/gnustep/gnustep/ \
fed8ee45 » rh
2002-09-27 Add MASTER_SITE_GNUSTEP
983 http://www.peanuts.org/peanuts/Mirrors/GNUstep/gnustep/ \
984 ftp://archive.progeny.com/gnustep/ \
985 http://archive.progeny.com/gnustep/ \
986 ftp://ftp.easynet.nl/mirror/GNUstep/ \
987 http://ftp.easynet.nl/mirror/GNUstep/
988
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
989 MASTER_SITE_PERL_CPAN+= \
dab5b5d4 » grant
2002-06-17 MASTER_SITE_PERL_CPAN, cpan.pair.com: s/by-modules/by-module/
990 ftp://cpan.pair.com/pub/CPAN/modules/by-module/ \
ae201abb » wiz
2002-03-13 Remove one, and add four CPAN mirrors, more or less randomly chosen a…
991 ftp://mirrors.cloud9.net/pub/mirrors/CPAN/modules/by-module/ \
992 ftp://ftp.sunet.se/pub/lang/perl/CPAN/modules/by-module/ \
993 ftp://ftp.uvsq.fr/pub/perl/CPAN/modules/by-module/ \
6e217225 » tron
2001-02-17 Add german CPAN mirror.
994 ftp://ftp.gmd.de/mirrors/CPAN/modules/by-module/ \
ae201abb » wiz
2002-03-13 Remove one, and add four CPAN mirrors, more or less randomly chosen a…
995 ftp://ftp.tuwien.ac.at/pub/CPAN/modules/by-module/ \
72a92691 » david
2000-12-12 Add authoritative CPAN ftp site as a last resort in case packages have
996 ftp://cpan.perl.org/CPAN/modules/by-module/
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
997
3ee0188f » rh
2000-02-01 Change the 'update' target to skip non-existent (removed) directories.
998 MASTER_SITE_R_CRAN+= \
999 http://cran.r-project.org/src/ \
1000 ftp://cran.r-project.org/pub/R/src/ \
1001 http://cran.at.r-project.org/src/ \
1002 ftp://cran.at.r-project.org/pub/R/src/ \
1003 http://cran.dk.r-project.org/src/ \
1004 http://cran.ch.r-project.org/src/ \
1005 http://cran.uk.r-project.org/src/ \
1006 http://cran.us.r-project.org/src/ \
1007 http://lib.stat.cmu.edu/R/CRAN/src/ \
1008 ftp://ftp.biostat.washington.edu/mirrors/R/CRAN/src/ \
1009 http://cran.stat.wisc.edu/src/ \
1010 http://SunSITE.auc.dk/R/src/ \
1011 http://www.stat.unipg.it/pub/stat/statlib/R/CRAN/src/ \
1012 ftp://ftp.u-aizu.ac.jp/pub/lang/R/CRAN/src/ \
1013 ftp://dola.snu.ac.kr/pub/R/CRAN/src/ \
1014 http://stat.ethz.ch/CRAN/src/ \
1015 http://www.stats.bris.ac.uk/R/src/
1016
f9c8cc87 » agc
2002-05-03 Be consistent throughout the file with line continuations and whitesp…
1017 MASTER_SITE_TEX_CTAN+= \
19320212 » agc
2002-05-13 Standardise on the format of continuation lines. No functional change.
1018 ftp://ftp.wustl.edu/packages/TeX/ \
1019 ftp://ftp.funet.fi/pub/TeX/CTAN/ \
1020 ftp://ftp.tex.ac.uk/public/ctan/tex-archive/ \
d77722cd » tron
1999-04-15 Completely replace "MASTER_SITE_SUBDIR" and "PATCH_SITE_SUBDIR" with
1021 ftp://ftp.dante.de/tex-archive/
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
1022
1023 MASTER_SITE_SUNSITE+= \
d77722cd » tron
1999-04-15 Completely replace "MASTER_SITE_SUBDIR" and "PATCH_SITE_SUBDIR" with
1024 ftp://sunsite.unc.edu/pub/Linux/ \
e4f4a6cb » tron
2000-03-01 Add mirror on "ftp.informatik.rwth-aachen.de" to "MASTER_SITE_SUNSITE".
1025 ftp://ftp.infomagic.com/pub/mirrors/linux/sunsite/ \
ae28d589 » salo
2003-02-16 Add more mirrors to MASTER_SITE_MOZILLA, MASTER_SITE_GNOME, MASTER_SI…
1026 ftp://ftp.chg.ru/pub/Linux/sunsite/ \
1027 ftp://ftp.is.co.za/linux/sunsite/ \
1028 ftp://ftp.kddlabs.co.jp/Linux/metalab.unc.edu/ \
1029 ftp://ftp.kobe-u.ac.jp/pub/Linux/metalab.unc.edu/ \
1030 ftp://ftp.cse.cuhk.edu.hk/pub4/Linux/ \
1031 ftp://ftp.icm.edu.pl/pub/Linux/sunsite/ \
1032 ftp://ftp.nvg.ntnu.no/pub/mirrors/metalab.unc.edu/ \
1033 ftp://ftp.uvsq.fr/pub5/linux/sunsite/ \
1034 ftp://ftp.lip6.fr/pub/linux/sunsite/ \
1035 ftp://ftp.uni-stuttgart.de/pub/mirror/sunsite.unc.edu/pub/Linux/ \
1036 ftp://ftp.uni-magdeburg.de/pub/mirror/linux/ftp.metalab.unc.edu/ \
1037 ftp://ftp.uni-jena.de/pub/linux/MIRROR.sunsite/ \
1038 ftp://ftp.fu-berlin.de/unix/linux/mirrors/sunsite.unc.edu/ \
1039 ftp://ftp.cs.tu-berlin.de/pub/linux/Mirrors/sunsite.unc.edu/ \
1040 ftp://sunsite.cnlab-switch.ch/mirror/linux/sunsite/ \
1041 ftp://ftp.tuwien.ac.at/pub/linux/ibiblio/ \
3697244c » grant
2003-03-30 kill some trailing whitespace
1042 ftp://ftp.unicamp.br/pub/systems/Linux/
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
1043
519a77c5 » tron
1999-08-22 Fix typo in last commit.
1044 MASTER_SITE_GNOME+= \
dcdac6ab » tron
1999-08-22 Add "MASTER_SITE_GNOME" for GNOME related packages.
1045 ftp://ftp.gnome.org/pub/GNOME/ \
1046 ftp://ftp.sunet.se/pub/X11/GNOME/ \
31d4d255 » salo
2003-02-16 oops. add few missing backslashes from previous.
1047 ftp://ftp.tuwien.ac.at/hci/GNOME/ \
ae28d589 » salo
2003-02-16 Add more mirrors to MASTER_SITE_MOZILLA, MASTER_SITE_GNOME, MASTER_SI…
1048 ftp://ftp.cse.buffalo.edu/pub/Gnome/ \
1049 ftp://ftp.tuwien.ac.at/linux/gnome.org/ \
1050 ftp://ftp.dti.ad.jp/pub/X/gnome/ \
1051 ftp://ftp.kddlabs.co.jp/pub/GNOME/ \
1052 ftp://ftp.chg.ru/pub/X11/gnome/ \
1053 ftp://ftp.dataplus.se/pub/linux/gnome/ \
1054 ftp://ftp.dit.upm.es/linux/gnome/ \
3697244c » grant
2003-03-30 kill some trailing whitespace
1055 ftp://ftp.mirror.ac.uk/sites/ftp.gnome.org/pub/GNOME/
dcdac6ab » tron
1999-08-22 Add "MASTER_SITE_GNOME" for GNOME related packages.
1056
994990d6 » tron
2000-11-11 Add new master site list "MASTER_SITE_SOURCEFORGE" for
1057 MASTER_SITE_SOURCEFORGE+= \
2d490de6 » wiz
2003-05-18 Add aleron, easynews, and heanet sourceforge mirrors.
1058 http://aleron.dl.sourceforge.net/sourceforge/ \
4750ed8b » wiz
2003-08-31 Add belnet and keihanna sourceforge mirrors; remove switch and osdn.
1059 http://belnet.dl.sourceforge.net/sourceforge/ \
bd60d1f5 » wiz
2002-08-23 Add some more sourceforge mirror sites.
1060 http://cesnet.dl.sourceforge.net/sourceforge/ \
2d490de6 » wiz
2003-05-18 Add aleron, easynews, and heanet sourceforge mirrors.
1061 http://easynews.dl.sourceforge.net/sourceforge/ \
1062 http://heanet.dl.sourceforge.net/sourceforge/ \
4750ed8b » wiz
2003-08-31 Add belnet and keihanna sourceforge mirrors; remove switch and osdn.
1063 http://keihanna.dl.sourceforge.net/sourceforge/ \
750ea2fc » jmmv
2004-01-23 Add http://osdn.dl.sourceforge.net/sourceforge/ as a master site for
1064 http://osdn.dl.sourceforge.net/sourceforge/ \
46cf9933 » drochner
2002-05-08 add actual sourceforge mirrors, and remove non-working
1065 http://telia.dl.sourceforge.net/sourceforge/ \
bd60d1f5 » wiz
2002-08-23 Add some more sourceforge mirror sites.
1066 http://twtelecom.dl.sourceforge.net/sourceforge/ \
1067 http://umn.dl.sourceforge.net/sourceforge/ \
1068 http://unc.dl.sourceforge.net/sourceforge/ \
91375db5 » tron
2001-04-18 Reorder "MASTER_SITE_SOURCEFORGE" in the interest of performance.
1069 ftp://ftp3.sourceforge.net/pub/sourceforge/ \
79a5b499 » wiz
2002-09-01 Fix sourceforge path on ftp.tuwien.ac.at.
1070 ftp://ftp.tuwien.ac.at/linux/sourceforge/
2fb0d7cd » grant
2004-04-24 flow.dl.sourceforge.net has been unreachable for a while now, due to
1071 # http://flow.dl.sourceforge.net/sourceforge/
994990d6 » tron
2000-11-11 Add new master site list "MASTER_SITE_SOURCEFORGE" for
1072
fc3454ee » wiz
2003-02-14 Add some SUSE mirror sites. From Juan RP in PR 19768.
1073 MASTER_SITE_SUSE+= \
890735af » xtraeme
2004-02-11 Add another mirror to MASTER_SITE_SUSE, needed for emulators/suse_x11
1074 http://altruistic.lbl.gov/mirrors/suse/${MACHINE_ARCH}/${SUSE_VERSION}/suse/ \
7ed62055 » xtraeme
2004-01-22 Add three additional mirrors to MASTER_SITE_SUSE.
1075 ftp://rpmfind.net/linux/SuSE-Linux/${MACHINE_ARCH}/update/${SUSE_VERSION}/ \
1076 ftp://fr.rpmfind.net/linux/SuSE-Linux/${MACHINE_ARCH}/update/${SUSE_VERSION}/ \
1077 ftp://fr2.rpmfind.net/linux/SuSE-Linux/${MACHINE_ARCH}/update/${SUSE_VERSION}/ \
1078 ftp://speakeasy.rpmfind.net/linux/SuSE-Linux/${MACHINE_ARCH}/update/${SUSE_VERSION}/ \
fc3454ee » wiz
2003-02-14 Add some SUSE mirror sites. From Juan RP in PR 19768.
1079 ftp://ftp.duth.gr/pub/suse/${MACHINE_ARCH}/${SUSE_VERSION}/suse/ \
1080 ftp://ftp.kddlabs.co.jp/Linux/packages/SuSE/suse/${MACHINE_ARCH}/${SUSE_VERSION}/suse/ \
1081 ftp://sunsite.cnlab-switch.ch/mirror/SuSE/suse/${MACHINE_ARCH}/${SUSE_VERSION}/suse/ \
1082 ftp://ftp.mirror.ac.uk/sites/ftp.suse.com/pub/suse/${MACHINE_ARCH}/${SUSE_VERSION}/suse/ \
3697244c » grant
2003-03-30 kill some trailing whitespace
1083 ftp://mirror.mcs.anl.gov/pub/ftp.suse.com/${MACHINE_ARCH}/${SUSE_VERSION}/suse/
ae28d589 » salo
2003-02-16 Add more mirrors to MASTER_SITE_MOZILLA, MASTER_SITE_GNOME, MASTER_SI…
1084
4ba1284e » kei
2002-06-23 forgot to commit in previous.
1085 MASTER_SITE_MOZILLA+= \
488b8b51 » taya
2003-11-27 update directory structure of ftp.mozilla.org in MASTER_SITE_MOZILLA
1086 ftp://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/ \
03d86ec9 » tron
2003-09-05 Remove "/pub" from pathnames on "ftp.fu-berlin.de" because such a dir…
1087 ftp://ftp.fu-berlin.de/unix/network/www/mozilla/releases/ \
ae28d589 » salo
2003-02-16 Add more mirrors to MASTER_SITE_MOZILLA, MASTER_SITE_GNOME, MASTER_SI…
1088 ftp://sunsite.utk.edu/pub/netscape-source/ \
1089 ftp://ftp.informatik.uni-bonn.de/pub/www/mozilla/ \
1090 ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/ftp.mozilla.org/pub/ \
1091 ftp://sunsite.auc.dk/pub/mozilla/ \
1092 ftp://ftp.funet.fi/pub/mirrors/ftp.mozilla.org/pub/ \
1093 ftp://ftp.sunsite.kth.se/archive/www/ftp.mozilla.org/ \
00ae3181 » grant
2003-04-10 planetmirror -> http (the ftp server has a 250 user limit), use
1094 http://public.planetmirror.com.au/pub/mozilla/releases/ \
ae28d589 » salo
2003-02-16 Add more mirrors to MASTER_SITE_MOZILLA, MASTER_SITE_GNOME, MASTER_SI…
1095 ftp://ftp2.sinica.edu.tw/pub3/www/mozilla/ \
1096 ftp://ftp.is.co.za/networking/info-service/www/clients/netscape/mozilla/ \
1097 ftp://ftp.rediris.es/mirror/mozilla/ \
3697244c » grant
2003-03-30 kill some trailing whitespace
1098 ftp://ftp.chg.ru/pub/WWW/mozilla/
4ba1284e » kei
2002-06-23 forgot to commit in previous.
1099
7b7cacb1 » uebayasi
2003-02-22 Add MASTER_SITE_XEMACS.
1100 MASTER_SITE_XEMACS+= \
1101 ftp://ftp.xemacs.org/pub/xemacs/ \
1102 ftp://ftp.dti.ad.jp/pub/unix/editor/xemacs/ \
1103 ftp://ftp.jaist.ac.jp/pub/GNU/xemacs/ \
1104 ftp://ftp.pasteur.fr/pub/computing/xemacs/ \
00ae3181 » grant
2003-04-10 planetmirror -> http (the ftp server has a 250 user limit), use
1105 http://public.planetmirror.com.au/pub/xemacs/ \
7b7cacb1 » uebayasi
2003-02-22 Add MASTER_SITE_XEMACS.
1106 ftp://mirror.aarnet.edu.au/pub/xemacs/ \
1107 ftp://mirror.cict.fr/xemacs/ \
1108 ftp://mirror.nucba.ac.jp/mirror/xemacs/ \
1109 ftp://ring.aist.go.jp/pub/text/xemacs/ \
1110 ftp://ring.asahi-net.or.jp/pub/text/xemacs/
1111
d0b2758a » jmmv
2003-02-23 Add a MASTER_SITE_APACHE variable with a bunch of apache.org mirrors.
1112 MASTER_SITE_APACHE+= \
1113 http://www.apache.org/dist/ \
1114 http://mirrors.midco.net/pub/apache.org/ \
1115 http://apache.mirror.digitalspace.net/ \
1116 http://apache.mirrorcentral.com/dist/ \
1117 http://www.rge.com/pub/infosystems/apache/ \
1118 http://mirrors.ccs.neu.edu/Apache/dist/ \
1119 http://www.apache.inetcosmos.org/dist/ \
1120 http://www.ibiblio.org/pub/packages/infosystems/WWW/servers/apache/ \
1121 http://apache.ttlhost.com/ \
1122 http://apache.towardex.com/ \
1123 http://mirrors.theonlinerecordstore.com/apache/ \
1124 http://apache.oregonstate.edu/ \
1125 http://mirror.telentente.com/pub/apache/dist/ \
1126 http://www.tux.org/pub/net/apache/dist/ \
1127 http://apache.secsup.org/dist/ \
1128 http://ftp.epix.net/apache/ \
00ae3181 » grant
2003-04-10 planetmirror -> http (the ftp server has a 250 user limit), use
1129 http://public.planetmirror.com.au/pub/apache/dist/ \
d0b2758a » jmmv
2003-02-23 Add a MASTER_SITE_APACHE variable with a bunch of apache.org mirrors.
1130 ftp://ftp.rge.com/pub/infosystems/apache/ \
1131 ftp://ftp.epix.net/pub/apache/ \
1132 ftp://ftp.ccs.neu.edu/net/mirrors/Apache/dist/ \
1133 ftp://ftp.tux.org/pub/net/apache/dist/ \
1134 ftp://ftp.apache.inetcosmos.org/pub/apache/dist/ \
1135 ftp://www.ibiblio.org/pub/packages/infosystems/WWW/servers/apache/ \
1136 ftp://ftp.knowledge.com/pub/mirrors/apache/dist/ \
1137 ftp://ftp.sunsite.utk.edu/pub/apache/dist/ \
1138 ftp://ftp.oregonstate.edu/pub/apache/ \
1139 ftp://apache.secsup.org/pub/apache/dist/ \
1140 ftp://mirror.telentente.com/pub/apache/dist/ \
1141 ftp://mirrors.midco.net/pub/apache.org/ \
1142 http://nagoya.apache.org/mirror/
1143
5a031afa » jmmv
2003-06-05 Introduce the MASTER_SITE_DEBIAN variable. It currently contains a li…
1144 MASTER_SITE_DEBIAN+= \
1145 http://ftp.debian.org/debian/ \
1146 http://ftp.at.debian.org/debian/ \
1147 http://ftp.au.debian.org/debian/ \
1148 http://ftp.wa.au.debian.org/debian/ \
1149 http://ftp.bg.debian.org/debian/ \
1150 http://ftp.br.debian.org/debian/ \
1151 http://ftp.cl.debian.org/debian/ \
1152 http://ftp.cz.debian.org/debian/ \
1153 http://ftp.de.debian.org/debian/ \
1154 http://ftp2.de.debian.org/debian/ \
1155 http://ftp.dk.debian.org/debian/ \
1156 http://ftp.ee.debian.org/debian/ \
1157 http://ftp.es.debian.org/debian/ \
1158 http://ftp.fi.debian.org/debian/ \
1159 http://ftp.fr.debian.org/debian/ \
1160 http://ftp2.fr.debian.org/debian/ \
1161 http://ftp.uk.debian.org/debian/ \
1162 http://ftp.hk.debian.org/debian/ \
1163 http://ftp.hr.debian.org/debian/ \
1164 http://ftp.hu.debian.org/debian/ \
1165 http://ftp.ie.debian.org/debian/ \
1166 http://ftp.is.debian.org/debian/ \
1167 http://ftp.it.debian.org/debian/ \
1168 http://ftp2.it.debian.org/debian/ \
1169 http://ftp.jp.debian.org/debian/ \
1170 http://ftp.nl.debian.org/debian/ \
1171 http://ftp.no.debian.org/debian/ \
1172 http://ftp.nz.debian.org/debian/ \
1173 http://ftp.pl.debian.org/debian/ \
1174 http://ftp.ru.debian.org/debian/ \
1175 http://ftp.se.debian.org/debian/ \
1176 http://ftp.si.debian.org/debian/ \
1177 http://ftp.sk.debian.org/debian/ \
1178 http://ftp.tr.debian.org/debian/ \
1179 http://ftp.us.debian.org/debian/
1180
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
1181 # The primary backup site.
371a5aaa » mycroft
1999-07-27 Don't put a // in MASTER_SITE_BACKUP if DIST_SUBDIR is empty/undefined.
1182 MASTER_SITE_BACKUP?= \
56a424c7 » grant
2004-02-25 s/netbsd.org/NetBSD.org/, s/freebsd.org/FreeBSD.org/
1183 ftp://ftp.fi.NetBSD.org/pub/NetBSD/packages/distfiles/ \
1184 ftp://ftp.cz.NetBSD.org/pub/NetBSD/packages/distfiles/ \
1185 ftp://ftp.NetBSD.org/pub/NetBSD/packages/distfiles/ \
1186 ftp://ftp.FreeBSD.org/pub/FreeBSD/distfiles/
f82ed569 » hubertf
1999-11-20 Automatically set MASTER_SITE_LOCAL from MASTER_SITE_BACKUP, and make…
1187 .if defined(DIST_SUBDIR)
8a6c9b40 » hubertf
2000-07-26 Don't apply ${DIST_SUBDIR} twice.
1188 _MASTER_SITE_BACKUP:= ${MASTER_SITE_BACKUP:=${DIST_SUBDIR}/}
1189 . if defined(MASTER_SITE_OVERRIDE)
1190 _MASTER_SITE_OVERRIDE:= ${MASTER_SITE_OVERRIDE:=${DIST_SUBDIR}/}
1191 . endif # MASTER_SITE_OVERRIDE
1192 .else # !DIST_SUBDIR
1193 _MASTER_SITE_BACKUP:= ${MASTER_SITE_BACKUP}
1194 . if defined(MASTER_SITE_OVERRIDE)
1195 _MASTER_SITE_OVERRIDE:= ${MASTER_SITE_OVERRIDE}
1196 . endif # MASTER_SITE_OVERRIDE
608d9dc0 » hubertf
2000-02-25 Only add DIST_SUBDIR to MASTER_SITE_OVERRIDE if MASTER_SITE_OVERRIDE
1197 .endif # DIST_SUBDIR
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
1198
1199 # Where to put distfiles that don't have any other master site
1200 MASTER_SITE_LOCAL?= \
b593c1ae » tron
2002-08-11 Add "ftp.fi.netbsd.org" to "MASTER_SITE_LOCAL" so that e.g. building
1201 ${MASTER_SITE_BACKUP:=LOCAL_PORTS/} \
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
1202
1203 # Derived names so that they're easily overridable.
1204 DISTFILES?= ${DISTNAME}${EXTRACT_SUFX}
b4daf4a7 » hubertf
2001-12-08 Treat PKGREVISION=0 as if it wasn't set (-> add no "nb0")
1205 .if defined(PKGREVISION) && ${PKGREVISION} != "" && ${PKGREVISION} != "0"
f4af9691 » hubertf
2001-11-29 Get rid of manually adding "nbX" to PKGNAME when a pkg was changed in
1206 . if defined(PKGNAME)
13cc4c1a » tron
2002-03-15 Invent a new variable "PKGNAME_NOREV" which holds the package name wi…
1207 PKGNAME_NOREV:= ${PKGNAME}
f4af9691 » hubertf
2001-11-29 Get rid of manually adding "nbX" to PKGNAME when a pkg was changed in
1208 PKGNAME:= ${PKGNAME}nb${PKGREVISION}
1209 . else
1210 PKGNAME?= ${DISTNAME}nb${PKGREVISION}
13cc4c1a » tron
2002-03-15 Invent a new variable "PKGNAME_NOREV" which holds the package name wi…
1211 PKGNAME_NOREV= ${DISTNAME}
f4af9691 » hubertf
2001-11-29 Get rid of manually adding "nbX" to PKGNAME when a pkg was changed in
1212 . endif
1213 .else
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
1214 PKGNAME?= ${DISTNAME}
13cc4c1a » tron
2002-03-15 Invent a new variable "PKGNAME_NOREV" which holds the package name wi…
1215 PKGNAME_NOREV= ${PKGNAME}
f4af9691 » hubertf
2001-11-29 Get rid of manually adding "nbX" to PKGNAME when a pkg was changed in
1216 .endif
46eef682 » veego
2001-01-21 Add support for SVR4_PKGNAME:
1217 SVR4_PKGNAME?= ${PKGNAME}
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
1218
56a424c7 » grant
2004-02-25 s/netbsd.org/NetBSD.org/, s/freebsd.org/FreeBSD.org/
1219 MAINTAINER?= tech-pkg@NetBSD.org
cd03a226 » agc
1998-08-06 Add back default MAINTAINER field.
1220
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
1221 ALLFILES?= ${DISTFILES} ${PATCHFILES}
8fb71f41 » tv
1999-05-21 Speed up the evaluation of ${CKSUMFILES} vs. ${IGNOREFILES} a little …
1222 CKSUMFILES?= ${ALLFILES}
1223 .for __tmp__ in ${IGNOREFILES}
1224 CKSUMFILES:= ${CKSUMFILES:N${__tmp__}}
1225 .endfor
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
1226
070ed36a » tron
1998-08-14 Fix MD5 checksum test in "do-fetch:" target to work with "DIST_SUBDIR".
1227 # List of all files, with ${DIST_SUBDIR} in front. Used for fetch and checksum.
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
1228 .if defined(DIST_SUBDIR)
cee7bd8d » hubertf
2001-07-18 Change indentation (whitespace changes only!):
1229 . if ${CKSUMFILES} != ""
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
1230 _CKSUMFILES?= ${CKSUMFILES:S/^/${DIST_SUBDIR}\//}
cee7bd8d » hubertf
2001-07-18 Change indentation (whitespace changes only!):
1231 . endif
8c4b5d52 » cube
2003-12-06 When DIST_SUBDIR is set, make sure various download variables don't get
1232 . if !empty(DISTFILES)
070ed36a » tron
1998-08-14 Fix MD5 checksum test in "do-fetch:" target to work with "DIST_SUBDIR".
1233 _DISTFILES?= ${DISTFILES:S/^/${DIST_SUBDIR}\//}
8c4b5d52 » cube
2003-12-06 When DIST_SUBDIR is set, make sure various download variables don't get
1234 . else
1235 _DISTFILES?= # empty
1236 . endif
1237 . if defined(IGNOREFILES) && !empty(IGNOREFILES)
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
1238 _IGNOREFILES?= ${IGNOREFILES:S/^/${DIST_SUBDIR}\//}
8c4b5d52 » cube
2003-12-06 When DIST_SUBDIR is set, make sure various download variables don't get
1239 . endif
1240 . if defined(PATCHFILES) && !empty(PATCHFILES)
070ed36a » tron
1998-08-14 Fix MD5 checksum test in "do-fetch:" target to work with "DIST_SUBDIR".
1241 _PATCHFILES?= ${PATCHFILES:S/^/${DIST_SUBDIR}\//}
8c4b5d52 » cube
2003-12-06 When DIST_SUBDIR is set, make sure various download variables don't get
1242 . else
1243 _PATCHFILES?= # empty
1244 . endif
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
1245 .else
1246 _CKSUMFILES?= ${CKSUMFILES}
070ed36a » tron
1998-08-14 Fix MD5 checksum test in "do-fetch:" target to work with "DIST_SUBDIR".
1247 _DISTFILES?= ${DISTFILES}
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
1248 _IGNOREFILES?= ${IGNOREFILES}
070ed36a » tron
1998-08-14 Fix MD5 checksum test in "do-fetch:" target to work with "DIST_SUBDIR".
1249 _PATCHFILES?= ${PATCHFILES}
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
1250 .endif
d811f671 » fredb
2002-01-06 Re-work the fetch target(s), as discussed on "tech-pkg". The primary
1251 _ALLFILES?= ${_DISTFILES} ${_PATCHFILES}
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
1252
1253 # This is what is actually going to be extracted, and is overridable
4d9bdae4 » grant
2004-03-31 tweak whitespace in comment
1254 # by user.
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
1255 EXTRACT_ONLY?= ${DISTFILES}
1256
cd03a226 » agc
1998-08-06 Add back default MAINTAINER field.
1257 .if !defined(CATEGORIES) || !defined(DISTNAME)
9809dc8b » schmonz
2003-01-09 Introduce NO_PKGTOOLS_REQD_CHECK, with which a package can disable
1258 PKG_FAIL_REASON+='CATEGORIES and DISTNAME are mandatory.'
a3b8afc0 » hubertf
1998-01-25 MAINTAINER = packages@NetBSD.ORG
1259 .endif
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
1260
f84b201e » tv
1998-08-05 - Nuke LIB_DEPENDS pkg cruft. Add an error message if LIB_DEPENDS is …
1261 .if defined(LIB_DEPENDS)
9809dc8b » schmonz
2003-01-09 Introduce NO_PKGTOOLS_REQD_CHECK, with which a package can disable
1262 PKG_FAIL_REASON+='LIB_DEPENDS is deprecated and must be replaced with DEPENDS.'
d77722cd » tron
1999-04-15 Completely replace "MASTER_SITE_SUBDIR" and "PATCH_SITE_SUBDIR" with
1263 .endif
1264
367f4697 » hubertf
2000-11-11 Stopgag fix to force people to unset PKG_PATH before doing pkgsrc
1265 .if defined(PKG_PATH)
9809dc8b » schmonz
2003-01-09 Introduce NO_PKGTOOLS_REQD_CHECK, with which a package can disable
1266 PKG_FAIL_REASON+='Please unset PKG_PATH before doing pkgsrc work!'
367f4697 » hubertf
2000-11-11 Stopgag fix to force people to unset PKG_PATH before doing pkgsrc
1267 .endif
1268
d77722cd » tron
1999-04-15 Completely replace "MASTER_SITE_SUBDIR" and "PATCH_SITE_SUBDIR" with
1269 .if defined(MASTER_SITE_SUBDIR)
9809dc8b » schmonz
2003-01-09 Introduce NO_PKGTOOLS_REQD_CHECK, with which a package can disable
1270 PKG_FAIL_REASON+='MASTER_SITE_SUBDIR is deprecated and must be replaced with MASTER_SITES.'
d77722cd » tron
1999-04-15 Completely replace "MASTER_SITE_SUBDIR" and "PATCH_SITE_SUBDIR" with
1271 .endif
1272
1273 .if defined(PATCH_SITE_SUBDIR)
9809dc8b » schmonz
2003-01-09 Introduce NO_PKGTOOLS_REQD_CHECK, with which a package can disable
1274 PKG_FAIL_REASON+='PATCH_SITE_SUBDIR is deprecated and must be replaced with PATCH_SITES.'
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
1275 .endif
1276
6feda597 » tv
1999-05-24 Change {ONLY,NOT}_FOR_{ARCH,OPSYS} format to {ONLY,NOT}_FOR_PLATFORM
1277 .if defined(ONLY_FOR_ARCHS) || defined(NOT_FOR_ARCHS) \
1278 || defined(ONLY_FOR_OPSYS) || defined(NOT_FOR_OPSYS)
9809dc8b » schmonz
2003-01-09 Introduce NO_PKGTOOLS_REQD_CHECK, with which a package can disable
1279 PKG_FAIL_REASON+='ONLY/NOT_FOR_ARCHS/OPSYS are deprecated and must be replaced with ONLY/NOT_FOR_PLATFORM.'
6feda597 » tv
1999-05-24 Change {ONLY,NOT}_FOR_{ARCH,OPSYS} format to {ONLY,NOT}_FOR_PLATFORM
1280 .endif
1281
9809dc8b » schmonz
2003-01-09 Introduce NO_PKGTOOLS_REQD_CHECK, with which a package can disable
1282 .if (${PKGSRC_LOCKTYPE} == "sleep" || ${PKGSRC_LOCKTYPE} == "once")
3697244c » grant
2003-03-30 kill some trailing whitespace
1283 . if !defined(OBJHOSTNAME)
9809dc8b » schmonz
2003-01-09 Introduce NO_PKGTOOLS_REQD_CHECK, with which a package can disable
1284 PKG_FAIL_REASON+='PKGSRC_LOCKTYPE needs OBJHOSTNAME defined.'
1285 . elif !exists(${SHLOCK})
1286 PKG_FAIL_REASON+='The ${SHLOCK} utility does not exist, and is necessary for locking.'
1287 PKG_FAIL_REASON+='Please "${MAKE} install" in ../../pkgtools/shlock.'
1288 . endif
1ccb9971 » agc
2002-01-19 Add coarse-grained locking to pkgsrc builds, by means of a beefed
1289 .endif
1290
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
1291 PKGREPOSITORYSUBDIR?= All
1292 PKGREPOSITORY?= ${PACKAGES}/${PKGREPOSITORYSUBDIR}
1293 PKGFILE?= ${PKGREPOSITORY}/${PKGNAME}${PKG_SUFX}
1294
93cd8e15 » jlam
2002-08-22 Merge pkgsrc/mk from the buildlink2 branch back into the main trunk.
1295 CONFIGURE_DIRS?= ${WRKSRC}
039c3f9d » tron
2000-03-27 Don't invoke "${CONFIGURE_SCRIPT}" with leading "./" so that an absolute
1296 CONFIGURE_SCRIPT?= ./configure
4f588637 » hubertf
1998-01-15 - Our default for FETCH_CMD is ftp, not fetch.
1297 CONFIGURE_ENV+= PATH=${PATH}:${LOCALBASE}/bin:${X11BASE}/bin
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
1298
1299 .if defined(GNU_CONFIGURE)
444cb24b » jlam
2002-06-23 New variable GNU_CONFIGURE_PREFIX whose value is the argument to the
1300 #
d405635c » jlam
2004-01-31 It's GNU_CONFIGURE_PREFIX, not CONFIGURE_PREFIX.
1301 # GNU_CONFIGURE_PREFIX is the argument to the --prefix option passed to the
444cb24b » jlam
2002-06-23 New variable GNU_CONFIGURE_PREFIX whose value is the argument to the
1302 # GNU configure script.
1303 #
1304 GNU_CONFIGURE_PREFIX?= ${PREFIX}
1305 CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM}
1306 CONFIGURE_ARGS+= --prefix=${GNU_CONFIGURE_PREFIX}
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
1307 HAS_CONFIGURE= yes
ac86563d » seb
2004-02-12 Always add --x-{includes,libraries}=${X11BASE}/{include,lib}
1308 . if defined(USE_X11)
6f949fde » jlam
2002-10-22 x11.buildlink.mk is no more so remove checks for X11_BUILDLINK_MK.
1309 CONFIGURE_ARGS+= --x-includes=${X11BASE}/include
1310 CONFIGURE_ARGS+= --x-libraries=${X11BASE}/lib
cee7bd8d » hubertf
2001-07-18 Change indentation (whitespace changes only!):
1311 . endif
d598c3a0 » reed
2004-05-08 Rename NO_CONFIGURE_INFODIR to CONFIGURE_HAS_INFODIR (which defaults to
1312 CONFIGURE_HAS_INFODIR?= yes
1313 . if !empty(INFO_FILES) && !empty(CONFIGURE_HAS_INFODIR:M[yY][eE][sS])
ebc2c7fa » reed
2004-05-08 If using GNU_CONFIGURE then set --infodir to ${PREFIX}/${INFO_DIR}.
1314 CONFIGURE_ARGS+= --infodir=${PREFIX}/${INFO_DIR}
1315 . endif
df695c59 » grant
2004-02-14 if using GNU configure and CONFIG_{GUESS,SUB}_OVERRIDE is not defined,
1316 #
1317 # By default, override config.guess and config.sub for GNU configure
1318 # packages. pkgsrc's updated versions of these scripts allows GNU
1319 # configure to recognise NetBSD ports such as shark.
1320 #
2c41357b » jlam
2004-02-14 Make CONFIG_{GUESS,SUB}_OVERRIDE slighly more powerful by allowing th…
1321 CONFIG_GUESS_OVERRIDE?= \
1322 config.guess */config.guess */*/config.guess
1323 CONFIG_SUB_OVERRIDE?= \
1324 config.sub */config.sub */*/config.sub
9de0bce2 » jlam
2004-02-14 Default to overriding config.status after GNU configure has been run. We
1325 #
1326 # By default, override config.status for GNU configure packages. We
1327 # never want it to execute after the configure phase has ended as it
1328 # might overwrite any post-configure changes we might have made to the
1329 # generated files.
1330 #
1331 CONFIG_STATUS_OVERRIDE?= \
1332 config.status */config.status */*/config.status
a7639ccc » jlam
2001-07-05 Update buildlink-x11 to 0.5. Changes from previous version are the
1333 .endif
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
1334
5da865d4 » jlam
2001-11-28 Move the PKG_SYSCONFDIR logic below the definition of PKGNAME. PKGNAM…
1335 #
1717ca39 » hubertf
2002-05-22 Move description of variables used for config file handling to
1336 # Config file related settings - see Packages.txt
27734d78 » jlam
2002-02-07 Create a new knob: PKG_SYSCONFVAR
1337 #
1338 PKG_SYSCONFVAR?= ${PKGBASE}
5da865d4 » jlam
2001-11-28 Move the PKG_SYSCONFDIR logic below the definition of PKGNAME. PKGNAM…
1339 PKG_SYSCONFSUBDIR?= # empty
9c8fc30c » jlam
2004-03-29 Set DFLT_PKG_SYSCONDIR to the location that PKG_SYSCONFDIR would have
1340 .if ${PKG_INSTALLATION_TYPE} == "overwrite"
81787ae8 » jlam
2003-09-02 Merge pkgviews-mk branch into the HEAD by running:
1341 PKG_SYSCONFDEPOTBASE= # empty
b6d609cb » jlam
2003-09-05 Package Makefiles should refer to PKG_SYSCONFBASEDIR instead of
1342 PKG_SYSCONFBASEDIR= ${PKG_SYSCONFBASE}
9c8fc30c » jlam
2004-03-29 Set DFLT_PKG_SYSCONDIR to the location that PKG_SYSCONFDIR would have
1343 .else
1344 . if !empty(PKG_SYSCONFBASE:M${PREFIX}) || \
1345 !empty(PKG_SYSCONFBASE:M${PREFIX}/*)
81787ae8 » jlam
2003-09-02 Merge pkgviews-mk branch into the HEAD by running:
1346 PKG_SYSCONFDEPOTBASE= # empty
b6d609cb » jlam
2003-09-05 Package Makefiles should refer to PKG_SYSCONFBASEDIR instead of
1347 PKG_SYSCONFBASEDIR= ${PKG_SYSCONFBASE}
9c8fc30c » jlam
2004-03-29 Set DFLT_PKG_SYSCONDIR to the location that PKG_SYSCONFDIR would have
1348 . if !empty(CONF_DEPENDS)
1349 _PLIST_IGNORE_FILES+= ${PKG_SYSCONFDIR:S,^${PREFIX}/,,}
81787ae8 » jlam
2003-09-02 Merge pkgviews-mk branch into the HEAD by running:
1350 . endif
5da865d4 » jlam
2001-11-28 Move the PKG_SYSCONFDIR logic below the definition of PKGNAME. PKGNAM…
1351 . else
9c8fc30c » jlam
2004-03-29 Set DFLT_PKG_SYSCONDIR to the location that PKG_SYSCONFDIR would have
1352 PKG_SYSCONFDEPOTBASE= ${PKG_SYSCONFBASE}/${DEPOT_SUBDIR}
1353 PKG_SYSCONFBASEDIR= ${PKG_SYSCONFDEPOTBASE}/${PKGNAME}
5da865d4 » jlam
2001-11-28 Move the PKG_SYSCONFDIR logic below the definition of PKGNAME. PKGNAM…
1354 . endif
1355 .endif
9c8fc30c » jlam
2004-03-29 Set DFLT_PKG_SYSCONDIR to the location that PKG_SYSCONFDIR would have
1356 .if empty(PKG_SYSCONFSUBDIR)
1357 DFLT_PKG_SYSCONFDIR:= ${PKG_SYSCONFBASEDIR}
1358 .else
1359 DFLT_PKG_SYSCONFDIR:= ${PKG_SYSCONFBASEDIR}/${PKG_SYSCONFSUBDIR}
1360 .endif
1361 PKG_SYSCONFDIR= ${DFLT_PKG_SYSCONFDIR}
1362 .if defined(PKG_SYSCONFDIR.${PKG_SYSCONFVAR})
1363 PKG_SYSCONFDIR= ${PKG_SYSCONFDIR.${PKG_SYSCONFVAR}}
1364 PKG_SYSCONFBASEDIR= ${PKG_SYSCONFDIR.${PKG_SYSCONFVAR}}
1365 PKG_SYSCONFDEPOTBASE= # empty
1366 .endif
5da865d4 » jlam
2001-11-28 Move the PKG_SYSCONFDIR logic below the definition of PKGNAME. PKGNAM…
1367
1368 CONFIGURE_ENV+= PKG_SYSCONFDIR="${PKG_SYSCONFDIR}"
1369 MAKE_ENV+= PKG_SYSCONFDIR="${PKG_SYSCONFDIR}"
0a7cbe81 » jlam
2003-09-17 Introduce a new variable "CONF_DEPENDS" for pkgviews: a package's
1370 BUILD_DEFS+= PKG_SYSCONFBASEDIR PKG_SYSCONFDIR
5da865d4 » jlam
2001-11-28 Move the PKG_SYSCONFDIR logic below the definition of PKGNAME. PKGNAM…
1371
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
1372 # Passed to most of script invocations
4f588637 » hubertf
1998-01-15 - Our default for FETCH_CMD is ftp, not fetch.
1373 SCRIPTS_ENV+= CURDIR=${.CURDIR} DISTDIR=${DISTDIR} \
970dfa8c » mrg
1998-06-05 move documentation to packages.7. also, remove ts=4 crap.
1374 PATH=${PATH}:${LOCALBASE}/bin:${X11BASE}/bin \
1375 WRKDIR=${WRKDIR} WRKSRC=${WRKSRC} PATCHDIR=${PATCHDIR} \
1376 SCRIPTDIR=${SCRIPTDIR} FILESDIR=${FILESDIR} \
b3b8afd4 » agc
2001-12-15 Modify all references to PKGSRCDIR to _PKGSRCDIR, except in the external
1377 _PKGSRCDIR=${_PKGSRCDIR} DEPENDS="${DEPENDS}" \
417e8a95 » minskim
2004-04-17 Add VIEWBASE to SCRIPTS_ENV. This fixes the problem that pkgviews
1378 PREFIX=${PREFIX} LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} \
1379 VIEWBASE=${VIEWBASE}
4f7dd975 » agc
1997-08-20 Initial import of FreeBSD's ports makefiles.
1380
1381 .if defined(BATCH)
1382 SCRIPTS_ENV+= BATCH=yes
1383 .endif