| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: bsd.prefs.mk,v 1.373 2015/11/07 20:00:19 sevan Exp $ | | 1 | # $NetBSD: bsd.prefs.mk,v 1.374 2015/12/27 12:37:29 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. |
| @@ -526,26 +526,27 @@ WARNINGS+= "[bsd.prefs.mk] The package $ | | | @@ -526,26 +526,27 @@ WARNINGS+= "[bsd.prefs.mk] The package $ |
526 | # | | 526 | # |
527 | .if ${_USE_DESTDIR} != "no" | | 527 | .if ${_USE_DESTDIR} != "no" |
528 | DESTDIR= ${WRKDIR}/.destdir | | 528 | DESTDIR= ${WRKDIR}/.destdir |
529 | . if ${_USE_DESTDIR} == "destdir" | | 529 | . if ${_USE_DESTDIR} == "destdir" |
530 | _MAKE_PACKAGE_AS_ROOT= yes | | 530 | _MAKE_PACKAGE_AS_ROOT= yes |
531 | _MAKE_CLEAN_AS_ROOT= yes | | 531 | _MAKE_CLEAN_AS_ROOT= yes |
532 | _MAKE_INSTALL_AS_ROOT= yes | | 532 | _MAKE_INSTALL_AS_ROOT= yes |
533 | . elif ${_USE_DESTDIR} == "user-destdir" | | 533 | . elif ${_USE_DESTDIR} == "user-destdir" |
534 | _MAKE_PACKAGE_AS_ROOT= no | | 534 | _MAKE_PACKAGE_AS_ROOT= no |
535 | _MAKE_CLEAN_AS_ROOT= no | | 535 | _MAKE_CLEAN_AS_ROOT= no |
536 | _MAKE_INSTALL_AS_ROOT= no | | 536 | _MAKE_INSTALL_AS_ROOT= no |
537 | . endif | | 537 | . endif |
538 | .else | | 538 | .else |
| | | 539 | PKG_FAIL_REASON+= "USE_DESTDIR=no is no longer supported." |
539 | DESTDIR= | | 540 | DESTDIR= |
540 | .endif | | 541 | .endif |
541 | | | 542 | |
542 | # controls whether binary packages are preserved in pkgsrc/packages/All | | 543 | # controls whether binary packages are preserved in pkgsrc/packages/All |
543 | # default is no (to preserve settings since 2013/05/23, prior to that it | | 544 | # default is no (to preserve settings since 2013/05/23, prior to that it |
544 | # was yes) | | 545 | # was yes) |
545 | _KEEP_BIN_PKGS?= no | | 546 | _KEEP_BIN_PKGS?= no |
546 | .if !empty(PKGSRC_KEEP_BIN_PKGS:U:M[Yy][Ee][Ss]) | | 547 | .if !empty(PKGSRC_KEEP_BIN_PKGS:U:M[Yy][Ee][Ss]) |
547 | _KEEP_BIN_PKGS= yes | | 548 | _KEEP_BIN_PKGS= yes |
548 | .endif | | 549 | .endif |
549 | | | 550 | |
550 | _MAKE_CLEAN_AS_ROOT?= no | | 551 | _MAKE_CLEAN_AS_ROOT?= no |
551 | # Whether to run the clean target as root. | | 552 | # Whether to run the clean target as root. |