blob: 4911320a0cb362220ed877e356ee992073d1f11a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
PORTNAME= flashrom
PORTVERSION= 1.2
DISTVERSIONPREFIX= v
CATEGORIES= sysutils
MASTER_SITES= https://download.flashrom.org/releases/
MAINTAINER= mizhka@gmail.com
COMMENT= Utility for reading, writing, verifying, and erasing flash ROM chips
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
NOT_FOR_ARCHS= aarch64 riscv64
NOT_FOR_ARCHS_REASON= Unable to determine endianness.
LIB_DEPENDS= libpci.so:devel/libpci
USES= gmake tar:bzip2
MAKE_ENV= WARNERROR=no
PLIST_FILES= bin/flashrom \
man/man8/flashrom.8.gz
PORTDOCS= *
OPTIONS_DEFINE= BUSPIRATE DOCS FTDI
OPTIONS_DEFINE_amd64= DMIDECODE
OPTIONS_DEFINE_i386= DMIDECODE
OPTIONS_DEFAULT_amd64= DMIDECODE
OPTIONS_DEFAULT_i386= DMIDECODE
DMIDECODE_DESC= Use dmidecode to gather DMI information
FTDI_DESC= Enable external FT2232SPI flasher support
DMIDECODE_RUN_DEPENDS= dmidecode:sysutils/dmidecode
FTDI_LIB_DEPENDS= libftdi1.so:devel/libftdi1
FTDI_USES= pkgconfig
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/flashrom ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/flashrom.8 ${STAGEDIR}${MAN8PREFIX}/man/man8
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/Documentation && ${INSTALL_DATA} *.txt ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|