View | Details | Raw Unified | Return to bug 152804 | Differences between
and this patch

Collapse All | Expand All

(-)bsd.port.mk (+53 lines)
Lines 222-227 Link Here
222
#				- Set this instead of ONLY_FOR_ARCHS if the given port
222
#				- Set this instead of ONLY_FOR_ARCHS if the given port
223
#				  fetches and installs compiled i386 binaries.
223
#				  fetches and installs compiled i386 binaries.
224
#
224
#
225
# ONLY_FOR_MINVER
226
#				- Only build port if ${OSVERSION} is superior or equal
227
#				  to this value.
228
# ONLY_FOR_MINVER_REASON
229
#				- Reason why it's only for ${ONLY_FOR_MINVER}
230
# ONLY_FOR_MAXVER
231
#				- Only build port if ${OSVERSION} is inferior or equal
232
#				  to this value.
233
# ONLY_FOR_MAXVER_REASON
234
#				- Reason why it's only for ${ONLY_FOR_MAXVER}
235
#
225
# Dependency checking.  Use these if your port requires another port
236
# Dependency checking.  Use these if your port requires another port
226
# not in the list below.  (Default: empty.)
237
# not in the list below.  (Default: empty.)
227
#
238
#
Lines 295-300 Link Here
295
#                         passed to the compiler by setting DEBUG_FLAGS. It is
306
#                         passed to the compiler by setting DEBUG_FLAGS. It is
296
#                         set to "-g" at default.
307
#                         set to "-g" at default.
297
#
308
#
309
##
310
# USE_SRC		- If set, this port needs kernel sources to build.
311
#				  If set to "yes", presence of ${SRC_BASE}/sys/Makefile
312
#				  is checked. If set to a space-separated list of files,
313
#				  presence of those files under ${SRC_BASE}/ is checked.
314
# SRC_BASE		- Set to the base directory of your kernel sources
315
#				  Default: /usr/src
316
##
298
# USE_BZIP2		- If set, this port tarballs use bzip2, not gzip, for
317
# USE_BZIP2		- If set, this port tarballs use bzip2, not gzip, for
299
#				  compression.
318
#				  compression.
300
# USE_XZ		- If set, this port tarballs use xz (or lzma)
319
# USE_XZ		- If set, this port tarballs use xz (or lzma)
Lines 1388-1393 Link Here
1388
WWWDIR?=		${PREFIX}/www/${PORTNAME}
1407
WWWDIR?=		${PREFIX}/www/${PORTNAME}
1389
ETCDIR?=		${PREFIX}/etc/${PORTNAME}
1408
ETCDIR?=		${PREFIX}/etc/${PORTNAME}
1390
1409
1410
.if defined(USE_SRC)
1411
SRC_BASE?=	/usr/src
1412
. if ${USE_SRC:L} == "yes"
1413
_SRC_CHECK_FILES=	sys/Makefile
1414
. else
1415
_SRC_CHECK_FILES=	${USE_SRC}
1416
.endif
1417
1418
.for file in ${_SRC_CHECK_FILES}
1419
. if !defined(${IGNORE}) && !exists(${SRC_BASE}/${file})
1420
IGNORE=	requires kernel source files
1421
. endif
1422
.endfor
1423
.endif # defined(USE_SRC)
1424
1391
.if defined(USE_LINUX_RPM)
1425
.if defined(USE_LINUX_RPM)
1392
.include "${PORTSDIR}/Mk/bsd.linux-rpm.mk"
1426
.include "${PORTSDIR}/Mk/bsd.linux-rpm.mk"
1393
.endif
1427
.endif
Lines 3252-3257 Link Here
3252
3286
3253
.endif
3287
.endif
3254
3288
3289
# Check for minimum and maximum version compatibility
3290
.if defined(ONLY_FOR_MINVER)
3291
. if ${OSVERSION} < ${ONLY_FOR_MINVER}
3292
IGNORE=	requires FreeBSD ${ONLY_FOR_MINVER:C/([0-9]+)([0-9])[0-9]{4}/\1.\2/} or later
3293
.  if defined(ONLY_FOR_MINVER_REASON)
3294
IGNORE+= (${ONLY_FOR_MINVER_REASON})
3295
.  endif
3296
. endif
3297
.endif
3298
3299
.if defined(ONLY_FOR_MAXVER)
3300
. if ${OSVERSION} > ${ONLY_FOR_MAXVER}
3301
IGNORE=	requires FreeBSD ${ONLY_FOR_MAXVER:C/([0-9]+)([0-9])[0-9]{4}/\1.\2/} or earlier
3302
.  if defined(ONLY_FOR_MAXVER_REASON)
3303
IGNORE+= (${ONLY_FOR_MAXVER_REASON})
3304
.  endif
3305
. endif
3306
.endif
3307
3255
# Check the user interaction and legal issues
3308
# Check the user interaction and legal issues
3256
.if !defined(NO_IGNORE)
3309
.if !defined(NO_IGNORE)
3257
.if (defined(IS_INTERACTIVE) && defined(BATCH))
3310
.if (defined(IS_INTERACTIVE) && defined(BATCH))

Return to bug 152804