pkgsrc/sysutils/flashrom/Makefile
nia ae618bb1d1 flashrom: Update to 1.2
This release was rushed a bit so that we have a release that includes
numerous build fixes that have been merged since v1.1. Fedora's build
system started to encounter compilation issues that needed to be
addressed for their upcoming release, so that became our canary in the
coal mine this time around.

Other highlights:
- Meson support (hello fwupd!)
- Layout improvements/fixes and many, many code cleanups.
- New chips: MX25U25635F, MX25L51245G, GD25Q256D, M95M02-A125,
N25Q/MT25Q variants, W25Q128JW_DTR, AT25SF321, S25FL512S
- New programmers: National Instruments USB-845x, Tin Can Tools
Flyswatter/Flyswatter 2, STLINK V3, more Intel PCHs (Apollo Lake,
Cannon Lake variants, Ice Lake U)
- Reduced dependency on libusb0
- Syntax: Added --flash-name and --flash-size arguments to print
information about the flash chip

Please report issues, and as always thanks to all who have contributed.
2020-02-20 14:50:07 +00:00

48 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.13 2020/02/20 14:50:07 nia Exp $
DISTNAME= flashrom-v1.2
PKGNAME= ${DISTNAME:S/-v/-/}
CATEGORIES= sysutils
MASTER_SITES= https://download.flashrom.org/releases/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= jakllsch@NetBSD.org
HOMEPAGE= https://www.flashrom.org/
COMMENT= Universal (coreboot/LinuxBIOS) flash utility
LICENSE= gnu-gpl-v2
USE_TOOLS+= gmake pkg-config
.include "../../mk/bsd.prefs.mk"
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
DEPENDS+= dmidecode-[0-9]*:../../sysutils/dmidecode
.endif
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'
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS"
LDFLAGS+= -lpci
CPPFLAGS+= -I/${PREFIX}/include
.endif
LDFLAGS.SunOS+= -lsocket -lnsl
# Disable -Werror.
MAKE_ENV+= WARNERROR=no
INSTALLATION_DIRS= sbin ${PKGMANDIR}/man8
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/flashrom ${DESTDIR}${PREFIX}/sbin/flashrom
${INSTALL_MAN} ${WRKSRC}/flashrom.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/flashrom.8
.include "../../devel/libftdi1/buildlink3.mk"
.include "../../sysutils/pciutils/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"