summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2016-01-12 20:08:17 +0000
committerrillig <rillig@pkgsrc.org>2016-01-12 20:08:17 +0000
commita44ff190b8fd6213acff9f986be7d15d7ed4844f (patch)
tree6c2495139947b776bbaa4330c5f7da0b7839320d /pkgtools
parent214f0eff9da9e442f761c8cdbe599215ff53abb0 (diff)
downloadpkgsrc-a44ff190b8fd6213acff9f986be7d15d7ed4844f.tar.gz
Added version selection based on the platform
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/select.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/pkgtools/pkglint/select.mk b/pkgtools/pkglint/select.mk
new file mode 100644
index 00000000000..3959b002680
--- /dev/null
+++ b/pkgtools/pkglint/select.mk
@@ -0,0 +1,14 @@
+# $NetBSD: select.mk,v 1.1 2016/01/12 20:08:17 rillig Exp $
+#
+# Selects the proper version of pkglint, depending on whether the
+# platform supports the Go programming language.
+#
+
+.include "../../mk/bsd.fast.prefs.mk"
+
+# See lang/go/version.mk
+.if !empty(MACHINE_ARCH:Ni386:Nx86_64:Nevbarm) && !empty(MACHINE_PLATFORM:NSunOS-*-i386)
+DEPENDS+= pkglint>=4.82<5:../../pkgtools/pkglint4
+.else
+DEPENDS+= pkglint>=5:../../pkgtools/pkglint
+.endif