pkgsrc/pkgtools/pkglint/select.mk
2022-01-28 20:38:18 +00:00

19 lines
657 B
Makefile

# $NetBSD: select.mk,v 1.8 2022/01/28 20:38:18 schmonz 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
# While it's wrong in the above, go14 does not build on NetBSD 5.
.if ${MACHINE_ARCH:Ni386:Nx86_64:Nevbarm:Naarch64} || \
${MACHINE_PLATFORM:MSunOS-*-i386} || \
${MACHINE_PLATFORM:MDarwin-*-i386} || \
${MACHINE_PLATFORM:MNetBSD-[1-5].*-*} || \
${MACHINE_PLATFORM} == "NetBSD-9.0-aarch64"
DEPENDS+= pkglint4>=4.82<5:../../pkgtools/pkglint4
.else
DEPENDS+= pkglint>=5:../../pkgtools/pkglint
.endif