summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2013-02-15 09:22:50 +0000
committerobache <obache@pkgsrc.org>2013-02-15 09:22:50 +0000
commit911568c679b59255a7e26cac5a7638632bc38d5f (patch)
treeefce3222db14bd9213f5cde5a61a7d330cee599c /mk
parent2323bf166f9af0a9e95aef56a5fa6e55c866ce9f (diff)
downloadpkgsrc-911568c679b59255a7e26cac5a7638632bc38d5f.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
+