summaryrefslogtreecommitdiff
path: root/sysutils/pciutils
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2016-02-26 10:24:10 +0000
committerjperkin <jperkin@pkgsrc.org>2016-02-26 10:24:10 +0000
commitc049a2ca48d1150abe59446f3082ca4116323bc6 (patch)
tree0296198370532d82efd6efd523c7ca1570359f37 /sysutils/pciutils
parent0538ec5b33e56381337ee00b1bb6243bc3bc3c7a (diff)
downloadpkgsrc-c049a2ca48d1150abe59446f3082ca4116323bc6.tar.gz
Use OPSYSVARS.
Diffstat (limited to 'sysutils/pciutils')
-rw-r--r--sysutils/pciutils/Makefile16
1 files changed, 5 insertions, 11 deletions
diff --git a/sysutils/pciutils/Makefile b/sysutils/pciutils/Makefile
index b76b7528a56..361e6e57ca6 100644
--- a/sysutils/pciutils/Makefile
+++ b/sysutils/pciutils/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2016/02/15 00:51:13 msaitoh Exp $
+# $NetBSD: Makefile,v 1.27 2016/02/26 10:24:13 jperkin Exp $
DISTNAME= pciutils-3.4.1
PKGREVISION= 1
@@ -21,13 +21,9 @@ REPLACE_SH= *.sh
PKGCONFIG_OVERRIDE= lib/libpci.pc.in
-.include "../../mk/bsd.prefs.mk"
-
-.if ${OPSYS} == "NetBSD"
-PCIUTILS_LIBNAME= pciutils
-.else
-PCIUTILS_LIBNAME= pci
-.endif
+OPSYSVARS+= PCIUTILS_LIBNAME
+PCIUTILS_LIBNAME.NetBSD= pciutils
+PCIUTILS_LIBNAME.*= pci
PLIST_SUBST+= PCIUTILS_LIBNAME=${PCIUTILS_LIBNAME}
@@ -37,12 +33,10 @@ SUBST_MESSAGE.pc= Fixing library link specification in pkg-config file.
SUBST_STAGE.pc= pre-configure
SUBST_VARS.pc= PCIUTILS_LIBNAME
-.if ${OPSYS} == "SunOS"
-SUBST_CLASSES= dns
+SUBST_CLASSES.SunOS+= dns
SUBST_MESSAGE.dns= Disabling DNS support on Solaris
SUBST_STAGE.dns= pre-configure
SUBST_FILES.dns= Makefile
SUBST_SED.dns= -e 's/^DNS=/DNS=no/'
-.endif
.include "../../mk/bsd.pkg.mk"