diff options
-rw-r--r-- | lang/python27/Makefile | 4 | ||||
-rw-r--r-- | lang/python31/Makefile | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/lang/python27/Makefile b/lang/python27/Makefile index 25c2366804a..0d8ee1f878e 100644 --- a/lang/python27/Makefile +++ b/lang/python27/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.21 2013/02/06 23:22:38 jperkin Exp $ +# $NetBSD: Makefile,v 1.22 2013/02/08 12:23:24 wiz Exp $ .include "dist.mk" @@ -54,7 +54,9 @@ PLIST_SRC+= ${.CURDIR}/../../lang/python27/PLIST.${OPSYS} PLIST_SRC+= ${.CURDIR}/../../lang/python27/PLIST.common_end .if ${OPSYS} == "NetBSD" +.if !defined(USE_DESTDIR) || empty(USE_DESTDIR:M[Yy][Ee][Ss]) PRIVILEGED_STAGES+= clean +.endif # XXX work around a botched autoconf check which ignores libintl CONFIGURE_ENV+= ac_cv_func_bind_textdomain_codeset=yes .endif diff --git a/lang/python31/Makefile b/lang/python31/Makefile index 72eee84c269..38b88dd9a06 100644 --- a/lang/python31/Makefile +++ b/lang/python31/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2013/02/06 23:22:38 jperkin Exp $ +# $NetBSD: Makefile,v 1.15 2013/02/08 12:23:24 wiz Exp $ .include "dist.mk" @@ -48,7 +48,7 @@ PLIST_SRC+= ${.CURDIR}/../../lang/python31/PLIST.${OPSYS} .endif PLIST_SRC+= ${.CURDIR}/../../lang/python31/PLIST.common_end -.if ${OPSYS} == "NetBSD" +.if ${OPSYS} == "NetBSD" && !defined(USE_DESTDIR) || empty(USE_DESTDIR:M[Yy][Ee][Ss]) PRIVILEGED_STAGES+= clean .endif |