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_OSVER |
226 |
# - A space-separated list of OS versions the port can be built on. |
227 |
# An OS version may be : |
228 |
# - a single value (e.g. 700000), |
229 |
# - a lower limit (e.g. 700000+), |
230 |
# - a higher limit (e.g. 800000-), |
231 |
# - a range (e.g. 700000-800000). |
232 |
# ONLY_FOR_OSVER_REASON |
233 |
# - Reason why it's only for ${ONLY_FOR_OSVER} |
234 |
# |
225 |
# Dependency checking. Use these if your port requires another port |
235 |
# Dependency checking. Use these if your port requires another port |
226 |
# not in the list below. (Default: empty.) |
236 |
# not in the list below. (Default: empty.) |
227 |
# |
237 |
# |
Lines 295-300
Link Here
|
295 |
# passed to the compiler by setting DEBUG_FLAGS. It is |
305 |
# passed to the compiler by setting DEBUG_FLAGS. It is |
296 |
# set to "-g" at default. |
306 |
# set to "-g" at default. |
297 |
# |
307 |
# |
|
|
308 |
## |
309 |
# USE_SRC - If set, this port needs kernel sources to build. |
310 |
# If set to "yes", presence of ${SRC_BASE}/sys/Makefile |
311 |
# is checked. If set to a space-separated list of files, |
312 |
# presence of those files under ${SRC_BASE}/ is checked. |
313 |
# SRC_BASE - Set to the base directory of your kernel sources |
314 |
# Default: /usr/src |
315 |
## |
298 |
# USE_BZIP2 - If set, this port tarballs use bzip2, not gzip, for |
316 |
# USE_BZIP2 - If set, this port tarballs use bzip2, not gzip, for |
299 |
# compression. |
317 |
# compression. |
300 |
# USE_XZ - If set, this port tarballs use xz (or lzma) |
318 |
# USE_XZ - If set, this port tarballs use xz (or lzma) |
Lines 1394-1399
Link Here
|
1394 |
WWWDIR?= ${PREFIX}/www/${PORTNAME} |
1412 |
WWWDIR?= ${PREFIX}/www/${PORTNAME} |
1395 |
ETCDIR?= ${PREFIX}/etc/${PORTNAME} |
1413 |
ETCDIR?= ${PREFIX}/etc/${PORTNAME} |
1396 |
|
1414 |
|
|
|
1415 |
.if defined(USE_SRC) |
1416 |
SRC_BASE?= /usr/src |
1417 |
. if ${USE_SRC:L} == "yes" |
1418 |
_SRC_CHECK_FILES= sys/Makefile |
1419 |
. else |
1420 |
_SRC_CHECK_FILES= ${USE_SRC} |
1421 |
.endif |
1422 |
|
1423 |
.for file in ${_SRC_CHECK_FILES} |
1424 |
. if !defined(${IGNORE}) && !exists(${SRC_BASE}/${file}) |
1425 |
IGNORE= requires kernel source files |
1426 |
. endif |
1427 |
.endfor |
1428 |
.endif # defined(USE_SRC) |
1429 |
|
1397 |
.if defined(USE_LINUX_RPM) |
1430 |
.if defined(USE_LINUX_RPM) |
1398 |
.include "${PORTSDIR}/Mk/bsd.linux-rpm.mk" |
1431 |
.include "${PORTSDIR}/Mk/bsd.linux-rpm.mk" |
1399 |
.endif |
1432 |
.endif |
Lines 3257-3262
Link Here
|
3257 |
|
3290 |
|
3258 |
.endif |
3291 |
.endif |
3259 |
|
3292 |
|
|
|
3293 |
# Check for OS version compatibility |
3294 |
.if defined(ONLY_FOR_OSVER) |
3295 |
|
3296 |
# Sanity check |
3297 |
_ONLY_FOR_OSVER_CHECK:= ${ONLY_FOR_OSVER:C/^[[:digit:]]+((-[[:digit:]]+)|[-+])?$//} |
3298 |
|
3299 |
. if (${_ONLY_FOR_OSVER_CHECK}x != "x") |
3300 |
IGNORE= invalid value specified for ONLY_FOR_OSVER: ${_ONLY_FOR_OSVER_CHECK} |
3301 |
. else |
3302 |
_ONLY_FOR_OSVER_IGNORE= requires FreeBSD ${ONLY_FOR_OSVER} |
3303 |
|
3304 |
. for version in ${ONLY_FOR_OSVER} |
3305 |
_ONLY_FOR_OSVER:= ${version:C/\+$//} |
3306 |
. if ${_ONLY_FOR_OSVER} != "${version}" |
3307 |
# OSVERSION+ provided |
3308 |
_ONLY_FOR_MIN_OSVER:= ${_ONLY_FOR_OSVER} |
3309 |
. else |
3310 |
_ONLY_FOR_OSVER:= ${version:C/-$//} |
3311 |
. if ${_ONLY_FOR_OSVER} != "${version}" |
3312 |
# OSVERSION- provided |
3313 |
_ONLY_FOR_MAX_OSVER:= ${_ONLY_FOR_OSVER} |
3314 |
. else |
3315 |
_ONLY_FOR_OSVER:= ${version:C/-//} |
3316 |
. if ${_ONLY_FOR_OSVER} != "${version}" |
3317 |
# OSVERSION-OSVERSION range provided |
3318 |
_ONLY_FOR_MIN_OSVER:= ${version:C/-.*$//} |
3319 |
_ONLY_FOR_MAX_OSVER:= ${version:C/^.*-//} |
3320 |
. else |
3321 |
# single OSVERSION provided |
3322 |
_ONLY_FOR_MIN_OSVER:= ${version} |
3323 |
_ONLY_FOR_MAX_OSVER:= ${version} |
3324 |
. endif |
3325 |
. endif |
3326 |
. endif |
3327 |
|
3328 |
# Check OSVERSION against current requirements, one success is enough to continue |
3329 |
. if (!defined(_ONLY_FOR_MAX_OSVER) && (${OSVERSION} >= ${_ONLY_FOR_MIN_OSVER})) || \ |
3330 |
(!defined(_ONLY_FOR_MIN_OSVER) && (${OSVERSION} <= ${_ONLY_FOR_MAX_OSVER})) || \ |
3331 |
(defined(_ONLY_FOR_MIN_OSVER) && defined(_ONLY_FOR_MAX_OSVER) && \ |
3332 |
(${OSVERSION} >= ${_ONLY_FOR_MIN_OSVER}) && (${OSVERSION} <= ${_ONLY_FOR_MAX_OSVER})) |
3333 |
. undef _ONLY_FOR_OSVER_IGNORE |
3334 |
. endif |
3335 |
|
3336 |
. undef _ONLY_FOR_OSVER |
3337 |
. undef _ONLY_FOR_MIN_OSVER |
3338 |
. undef _ONLY_FOR_MAX_OSVER |
3339 |
. endfor |
3340 |
|
3341 |
. if defined(_ONLY_FOR_OSVER_IGNORE) |
3342 |
IGNORE= ${_ONLY_FOR_OSVER_IGNORE} |
3343 |
. if defined(ONLY_FOR_OSVER_REASON) |
3344 |
IGNORE+= (${ONLY_FOR_OSVER_REASON}) |
3345 |
. endif |
3346 |
. endif |
3347 |
. endif |
3348 |
.endif # defined(ONLY_FOR_OSVER) |
3349 |
|
3260 |
# Check the user interaction and legal issues |
3350 |
# Check the user interaction and legal issues |
3261 |
.if !defined(NO_IGNORE) |
3351 |
.if !defined(NO_IGNORE) |
3262 |
.if (defined(IS_INTERACTIVE) && defined(BATCH)) |
3352 |
.if (defined(IS_INTERACTIVE) && defined(BATCH)) |