diff options
author | jperkin <jperkin@pkgsrc.org> | 2016-02-26 10:24:10 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2016-02-26 10:24:10 +0000 |
commit | 0d58ef3d0eed2838ec18ee471bcc311006973ec0 (patch) | |
tree | 0296198370532d82efd6efd523c7ca1570359f37 /sysutils/flashrom | |
parent | f6b2cf7254c97c7c8f1b78ceb7e869b364b9ed9e (diff) | |
download | pkgsrc-0d58ef3d0eed2838ec18ee471bcc311006973ec0.tar.gz |
Use OPSYSVARS.
Diffstat (limited to 'sysutils/flashrom')
-rw-r--r-- | sysutils/flashrom/Makefile | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/sysutils/flashrom/Makefile b/sysutils/flashrom/Makefile index 9ca00a76032..67acc88b1bc 100644 --- a/sysutils/flashrom/Makefile +++ b/sysutils/flashrom/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2014/02/26 10:31:40 wiedi Exp $ +# $NetBSD: Makefile,v 1.9 2016/02/26 10:24:12 jperkin Exp $ # DISTNAME= flashrom-0.9.7 @@ -20,24 +20,21 @@ USE_TOOLS+= gmake pkg-config DEPENDS+= dmidecode-[0-9]*:../../sysutils/dmidecode .endif -.if ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS" - -SUBST_CLASSES+= pciutils +SUBST_CLASSES.NetBSD+= pciutils +SUBST_CLASSES.SunOS+= pciutils SUBST_FILES.pciutils= Makefile SUBST_FILES.pciutils+= hwaccess.h SUBST_MESSAGE.pciutils= adjusting pciutils headers SUBST_STAGE.pciutils= pre-configure SUBST_SED.pciutils+= -e 's,<pci/pci.h>,<pciutils/pci.h>,g' -LDFLAGS+= -lpci -CPPFLAGS+= -I/${PREFIX}/include - +.if ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS" +LDFLAGS+= -lpci +CPPFLAGS+= -I/${PREFIX}/include .endif -LDFLAGS.SunOS+= -lsocket -lnsl -.if ${OPSYS} == "SunOS" -MAKE_ENV+= WARNERROR=0 -.endif +LDFLAGS.SunOS+= -lsocket -lnsl +MAKE_ENV.SunOS+= WARNERROR=0 INSTALLATION_DIRS= sbin ${PKGMANDIR}/man8 |