diff --git a/sysutils/flashrom/Makefile b/sysutils/flashrom/Makefile index 5fb28103b4af..5215361465a7 100644 --- a/sysutils/flashrom/Makefile +++ b/sysutils/flashrom/Makefile @@ -1,43 +1,43 @@ PORTNAME= flashrom PORTVERSION= 1.3.0 DISTVERSIONPREFIX= v -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= sysutils MASTER_SITES= https://download.flashrom.org/releases/ MAINTAINER= mizhka@FreeBSD.org COMMENT= Utility for reading, writing, verifying, and erasing flash ROM chips WWW= https://www.flashrom.org/ LICENSE= GPLv2 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= meson pkgconfig tar:bzip2 PORTDOCS= * OPTIONS_DEFINE= 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 post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} cd ${WRKSRC}/Documentation && ${INSTALL_DATA} *.txt ${STAGEDIR}${DOCSDIR} .include diff --git a/sysutils/flashrom/files/patch-libflashrom.map b/sysutils/flashrom/files/patch-libflashrom.map new file mode 100644 index 000000000000..438f9a51b39a --- /dev/null +++ b/sysutils/flashrom/files/patch-libflashrom.map @@ -0,0 +1,18 @@ +--- libflashrom.map.orig 2024-02-01 08:22:08 UTC ++++ libflashrom.map +@@ -1,7 +1,5 @@ LIBFLASHROM_1.0 { + LIBFLASHROM_1.0 { + global: +- flashrom_board_info; +- flashrom_chipset_info; + flashrom_data_free; + flashrom_flag_get; + flashrom_flag_set; +@@ -9,7 +7,6 @@ LIBFLASHROM_1.0 { + flashrom_flash_getsize; + flashrom_flash_probe; + flashrom_flash_release; +- flashrom_flashchip_info; + flashrom_image_read; + flashrom_image_verify; + flashrom_image_write; diff --git a/sysutils/flashrom/files/patch-meson.build b/sysutils/flashrom/files/patch-meson.build new file mode 100644 index 000000000000..cef6c1d7d054 --- /dev/null +++ b/sysutils/flashrom/files/patch-meson.build @@ -0,0 +1,11 @@ +--- meson.build.orig 2023-04-27 13:51:02 UTC ++++ meson.build +@@ -234,7 +234,7 @@ programmer = { + }, + 'internal' : { + 'systems' : systems_hwaccess + ['linux'], +- 'cpu_families' : (host_machine.system() == 'linux' ? [host_machine.cpu_family()] : ['x86', 'x86_64']), ++ 'cpu_families' : (host_machine.system() in ['linux', 'freebsd'] ? [host_machine.cpu_family()] : ['x86', 'x86_64']), + 'deps' : [ libpci ], + 'groups' : [ group_internal ], + 'srcs' : (host_machine.cpu_family() in ['x86', 'x86_64'] ? files(