summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorobache <obache>2013-02-15 09:22:50 +0000
committerobache <obache>2013-02-15 09:22:50 +0000
commit7db9059d0c77281c81dc23c25fb5f434c7c49dfd (patch)
treeefce3222db14bd9213f5cde5a61a7d330cee599c /mk
parented02cc36455b9b2c7cfe3e1046e6a42122f1e910 (diff)
downloadpkgsrc-7db9059d0c77281c81dc23c25fb5f434c7c49dfd.tar.gz
check requirement of uac manifest, it is required for Windows Vista
(aka NT-6.0) and later.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk8
-rw-r--r--mk/platform/Cygwin.mk8
2 files changed, 12 insertions, 4 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 22150739334..4e8a9f8a9c3 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1984 2013/02/10 13:04:08 obache Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1985 2013/02/15 09:22:50 obache Exp $
#
# This file is in the public domain.
#
@@ -787,8 +787,10 @@ ${_MAKEVARS_MK.${_phase_}}: ${WRKDIR}
.include "pbulk/pbulk-index.mk"
.endif
-.if ${OPSYS} == "Cygwin" && defined(UAC_REQD_EXECS) && !empty(UAC_REQD_EXECS)
-. include "misc/uac-manifest.mk"
+.if defined(_OPSYS_REQUIRE_UAC_MANIFEST) && !empty(_OPSYS_REQUIRE_UAC_MANIFEST:M[Yy][Ee][Ss])
+. if defined(UAC_REQD_EXECS) && !empty(UAC_REQD_EXECS)
+.include "misc/uac-manifest.mk"
+. endif
.endif
.if defined(PKG_DEVELOPER) && ${PKG_DEVELOPER} != "no"
diff --git a/mk/platform/Cygwin.mk b/mk/platform/Cygwin.mk
index 7267b55a6f9..7934dc3b0cc 100644
--- a/mk/platform/Cygwin.mk
+++ b/mk/platform/Cygwin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: Cygwin.mk,v 1.1 2013/02/10 12:25:18 obache Exp $
+# $NetBSD: Cygwin.mk,v 1.2 2013/02/15 09:22:50 obache Exp $
#
# Variable definitions for the Windows with Cygwin.
@@ -87,3 +87,9 @@ _OPSYS_CAN_CHECK_SHLIBS= no # can't use readelf in check/bsd.check-vars.mk
# check for maximum command line length and set it in configure's environment,
# to avoid a test required by the libtool script that takes forever.
_OPSYS_MAX_CMDLEN_CMD= ${ECHO} 262144
+
+# check for requirement of uac-manifest.
+.if !empty(OS_VARIANT:MCYGWIN_NT-[6-9].*)
+_OPSYS_REQUIRE_UAC_MANIFEST= yes
+.endif
+