| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: bsd.prefs.mk,v 1.304 2010/01/17 08:04:32 dholland Exp $ | | 1 | # $NetBSD: bsd.prefs.mk,v 1.305 2010/01/29 17:20:27 joerg Exp $ |
2 | # | | 2 | # |
3 | # This file includes the mk.conf file, which contains the user settings. | | 3 | # This file includes the mk.conf file, which contains the user settings. |
4 | # | | 4 | # |
5 | # Packages should include this file before any of the .if directives, as | | 5 | # Packages should include this file before any of the .if directives, as |
6 | # well as before modifying variables like CFLAGS, LDFLAGS, and so on. | | 6 | # well as before modifying variables like CFLAGS, LDFLAGS, and so on. |
7 | # Otherwise the behavior may be unexpected. | | 7 | # Otherwise the behavior may be unexpected. |
8 | # | | 8 | # |
9 | # When mk.conf is included by this file, the following variables are | | 9 | # When mk.conf is included by this file, the following variables are |
10 | # defined: | | 10 | # defined: |
11 | # | | 11 | # |
12 | # ACCEPTABLE_LICENSES | | 12 | # ACCEPTABLE_LICENSES |
13 | # This variable is set to the list of Open Source licenses. See | | 13 | # This variable is set to the list of Open Source licenses. See |
14 | # mk/license.mk for details. | | 14 | # mk/license.mk for details. |
| @@ -398,31 +398,26 @@ DISTFILES= # none | | | @@ -398,31 +398,26 @@ DISTFILES= # none |
398 | PLIST_SRC= # none | | 398 | PLIST_SRC= # none |
399 | CHECK_PERMS= no | | 399 | CHECK_PERMS= no |
400 | USE_LANGUAGES= # empty | | 400 | USE_LANGUAGES= # empty |
401 | do-patch: | | 401 | do-patch: |
402 | @${DO_NADA} | | 402 | @${DO_NADA} |
403 | do-install: | | 403 | do-install: |
404 | @${DO_NADA} | | 404 | @${DO_NADA} |
405 | .endif | | 405 | .endif |
406 | | | 406 | |
407 | # PKG_DESTDIR_SUPPORT can only be one of "destdir" or "user-destdir". | | 407 | # PKG_DESTDIR_SUPPORT can only be one of "destdir" or "user-destdir". |
408 | USE_DESTDIR?= no | | 408 | USE_DESTDIR?= no |
409 | PKG_DESTDIR_SUPPORT?= # empty | | 409 | PKG_DESTDIR_SUPPORT?= # empty |
410 | | | 410 | |
411 | .if !empty(USE_DESTDIR:M[Ff][Uu][Ll][Ll]) | | | |
412 | WARNINGS+= "USE_DESTDIR=full is deprecated, just use USE_DESTDIR=yes" | | | |
413 | USE_DESTDIR:= yes | | | |
414 | .endif | | | |
415 | | | | |
416 | .if empty(PKG_DESTDIR_SUPPORT) || empty(USE_DESTDIR:M[Yy][Ee][Ss]) | | 411 | .if empty(PKG_DESTDIR_SUPPORT) || empty(USE_DESTDIR:M[Yy][Ee][Ss]) |
417 | . if empty(USE_DESTDIR:M[Yy][Ee][Ss]) && empty(USE_DESTDIR:M[Nn][Oo]) | | 412 | . if empty(USE_DESTDIR:M[Yy][Ee][Ss]) && empty(USE_DESTDIR:M[Nn][Oo]) |
418 | PKG_FAIL_REASON+= "USE_DESTDIR must be either \`\`yes'' or \`\`no''" | | 413 | PKG_FAIL_REASON+= "USE_DESTDIR must be either \`\`yes'' or \`\`no''" |
419 | . endif | | 414 | . endif |
420 | _USE_DESTDIR= no | | 415 | _USE_DESTDIR= no |
421 | .elif ${PKG_DESTDIR_SUPPORT} == "user-destdir" | | 416 | .elif ${PKG_DESTDIR_SUPPORT} == "user-destdir" |
422 | _USE_DESTDIR= user-destdir | | 417 | _USE_DESTDIR= user-destdir |
423 | .elif ${PKG_DESTDIR_SUPPORT} == "destdir" | | 418 | .elif ${PKG_DESTDIR_SUPPORT} == "destdir" |
424 | _USE_DESTDIR= destdir | | 419 | _USE_DESTDIR= destdir |
425 | .else | | 420 | .else |
426 | PKG_FAIL_REASON+= "PKG_DESTDIR_SUPPORT must be \`\`destdir'' or \`\`user-destdir''." | | 421 | PKG_FAIL_REASON+= "PKG_DESTDIR_SUPPORT must be \`\`destdir'' or \`\`user-destdir''." |
427 | .endif | | 422 | .endif |
428 | | | 423 | |