| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: bsd.prefs.mk,v 1.383 2016/04/10 15:08:39 joerg Exp $ | | 1 | # $NetBSD: bsd.prefs.mk,v 1.384 2016/04/10 15:10:12 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. |
| @@ -408,32 +408,26 @@ do-install: | | | @@ -408,32 +408,26 @@ do-install: |
408 | # After 2011Q1, the default is to use DESTDIR. | | 408 | # After 2011Q1, the default is to use DESTDIR. |
409 | USE_DESTDIR?= yes | | 409 | USE_DESTDIR?= yes |
410 | # PKG_DESTDIR_SUPPORT can only be one of "destdir", or "user-destdir". | | 410 | # PKG_DESTDIR_SUPPORT can only be one of "destdir", or "user-destdir". |
411 | PKG_DESTDIR_SUPPORT?= user-destdir | | 411 | PKG_DESTDIR_SUPPORT?= user-destdir |
412 | | | 412 | |
413 | .if ${PKG_DESTDIR_SUPPORT} == "user-destdir" | | 413 | .if ${PKG_DESTDIR_SUPPORT} == "user-destdir" |
414 | _USE_DESTDIR= user-destdir | | 414 | _USE_DESTDIR= user-destdir |
415 | .elif ${PKG_DESTDIR_SUPPORT} == "destdir" | | 415 | .elif ${PKG_DESTDIR_SUPPORT} == "destdir" |
416 | _USE_DESTDIR= destdir | | 416 | _USE_DESTDIR= destdir |
417 | .else | | 417 | .else |
418 | PKG_FAIL_REASON+= "PKG_DESTDIR_SUPPORT must be \`\`destdir'' or \`\`user-destdir''." | | 418 | PKG_FAIL_REASON+= "PKG_DESTDIR_SUPPORT must be \`\`destdir'' or \`\`user-destdir''." |
419 | .endif | | 419 | .endif |
420 | | | 420 | |
421 | # This stanza serves to warn the user; deciding to not build | | | |
422 | # non-DESTDIR-capable packages when not in DESTDIR mode is above. | | | |
423 | .if ${PKG_DESTDIR_SUPPORT} == "none" | | | |
424 | WARNINGS+= "[bsd.prefs.mk] The package ${PKGNAME} is missing DESTDIR support." | | | |
425 | .endif | | | |
426 | | | | |
427 | # When using staged installation, everything gets installed into | | 421 | # When using staged installation, everything gets installed into |
428 | # ${DESTDIR}${PREFIX} instead of ${PREFIX} directly. | | 422 | # ${DESTDIR}${PREFIX} instead of ${PREFIX} directly. |
429 | # | | 423 | # |
430 | .if ${_USE_DESTDIR} != "no" | | 424 | .if ${_USE_DESTDIR} != "no" |
431 | DESTDIR= ${WRKDIR}/.destdir | | 425 | DESTDIR= ${WRKDIR}/.destdir |
432 | . if ${_USE_DESTDIR} == "destdir" | | 426 | . if ${_USE_DESTDIR} == "destdir" |
433 | _MAKE_PACKAGE_AS_ROOT= yes | | 427 | _MAKE_PACKAGE_AS_ROOT= yes |
434 | _MAKE_CLEAN_AS_ROOT= yes | | 428 | _MAKE_CLEAN_AS_ROOT= yes |
435 | _MAKE_INSTALL_AS_ROOT= yes | | 429 | _MAKE_INSTALL_AS_ROOT= yes |
436 | . elif ${_USE_DESTDIR} == "user-destdir" | | 430 | . elif ${_USE_DESTDIR} == "user-destdir" |
437 | _MAKE_PACKAGE_AS_ROOT= no | | 431 | _MAKE_PACKAGE_AS_ROOT= no |
438 | _MAKE_CLEAN_AS_ROOT= no | | 432 | _MAKE_CLEAN_AS_ROOT= no |
439 | _MAKE_INSTALL_AS_ROOT= no | | 433 | _MAKE_INSTALL_AS_ROOT= no |