forked from Lainports/opnsense-ports
sysutils/flashrom: partially sync with upstream
Taken from: FreeBSD
This commit is contained in:
parent
8db31566ad
commit
9dbb99446f
2 changed files with 13 additions and 11 deletions
|
|
@ -1,6 +1,7 @@
|
|||
PORTNAME= flashrom
|
||||
PORTVERSION= 1.3.0
|
||||
DISTVERSIONPREFIX= v
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= https://download.flashrom.org/releases/
|
||||
|
||||
|
|
@ -14,18 +15,14 @@ LICENSE_FILE= ${WRKSRC}/COPYING
|
|||
NOT_FOR_ARCHS= aarch64 riscv64
|
||||
NOT_FOR_ARCHS_REASON= Unable to determine endianness.
|
||||
|
||||
BUILD_DEPENDS+= cmocka>=0:sysutils/cmocka
|
||||
LIB_DEPENDS= libpci.so:devel/libpci
|
||||
|
||||
USES= gmake localbase:ldflags tar:bzip2
|
||||
USES= meson pkgconfig tar:bzip2
|
||||
|
||||
MAKE_ENV= CONFIG_INTERNAL=yes WARNERROR=no
|
||||
LDFLAGS= -lpci
|
||||
|
||||
PLIST_FILES= bin/flashrom \
|
||||
man/man8/flashrom.8.gz
|
||||
PORTDOCS= *
|
||||
|
||||
OPTIONS_DEFINE= BUSPIRATE DOCS FTDI
|
||||
OPTIONS_DEFINE= DOCS FTDI
|
||||
OPTIONS_DEFINE_amd64= DMIDECODE
|
||||
OPTIONS_DEFINE_i386= DMIDECODE
|
||||
OPTIONS_DEFAULT_amd64= DMIDECODE
|
||||
|
|
@ -37,11 +34,8 @@ 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
|
||||
post-install:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
||||
cd ${WRKSRC}/Documentation && ${INSTALL_DATA} *.txt ${STAGEDIR}${DOCSDIR}
|
||||
|
|
|
|||
8
sysutils/flashrom/pkg-plist
Normal file
8
sysutils/flashrom/pkg-plist
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
include/libflashrom.h
|
||||
lib/libflashrom.a
|
||||
lib/libflashrom.so
|
||||
lib/libflashrom.so.1
|
||||
lib/libflashrom.so.1.0.0
|
||||
libdata/pkgconfig/flashrom.pc
|
||||
man/man8/flashrom.8.gz
|
||||
sbin/flashrom
|
||||
Loading…
Add table
Reference in a new issue