On Darwin, add gsed to USE_TOOLS and patch the icestorm Makefile to stop working around a behavioral difference in the Darwin sed(1) -i option relative to other sed implementations. If textproc/nbsed supported the -i option, the USE_TOOLS change would not be necessary. But since the Darwin system sed(1) is not used in pkgsrc at the moment, the Makefile patch would still be required. See also PR pkg/57970.diff -r1.1 -r1.2 pkgsrc/devel/icestorm/Makefile
(thorpej)
@@ -1,26 +1,34 @@ | @@ -1,26 +1,34 @@ | |||
1 | # $NetBSD: Makefile,v 1.1 2024/02/28 06:02:38 thorpej Exp $ | 1 | # $NetBSD: Makefile,v 1.2 2024/02/29 02:03:20 thorpej Exp $ | |
2 | 2 | |||
3 | # There are no release tags for icestorm | 3 | # There are no release tags for icestorm | |
4 | ICESTORM_VERSION=0.0.20240227 | 4 | ICESTORM_VERSION=0.0.20240227 | |
5 | 5 | |||
6 | DISTNAME= icestorm-${ICESTORM_VERSION} | 6 | DISTNAME= icestorm-${ICESTORM_VERSION} | |
7 | CATEGORIES= devel | 7 | CATEGORIES= devel | |
8 | MASTER_SITES= ${MASTER_SITE_GITHUB:=YosysHQ/} | 8 | MASTER_SITES= ${MASTER_SITE_GITHUB:=YosysHQ/} | |
9 | GITHUB_TAG= 1a40ae75d4eebee9cce73a2c4d634fd42ed0110f | 9 | GITHUB_TAG= 1a40ae75d4eebee9cce73a2c4d634fd42ed0110f | |
10 | 10 | |||
11 | MAINTAINER= thorpej@NetBSD.org | 11 | MAINTAINER= thorpej@NetBSD.org | |
12 | HOMEPAGE= https://github.com/YosysHQ/icestorm | 12 | HOMEPAGE= https://github.com/YosysHQ/icestorm | |
13 | COMMENT= Lattice iCE40 FPGAs Bitstream Documentation and tools | 13 | COMMENT= Lattice iCE40 FPGAs Bitstream Documentation and tools | |
14 | LICENSE= isc | 14 | LICENSE= isc | |
15 | 15 | |||
16 | .include "../../mk/bsd.prefs.mk" | |||
17 | ||||
16 | USE_LANGUAGES= c c++ | 18 | USE_LANGUAGES= c c++ | |
17 | USE_TOOLS+= gmake | 19 | USE_TOOLS+= gmake | |
20 | .if ${OPSYS} == "Darwin" | |||
21 | # The -i option on Darwin sed(1) behaves differently, and textproc/nbsed | |||
22 | # (which gets substituted for the system sed(1) for other reasons) doesn't | |||
23 | # support the -i option. See also patches/patch-icebox_Makefile. | |||
24 | USE_TOOLS+= gsed | |||
25 | .endif | |||
18 | 26 | |||
19 | REPLACE_PYTHON+= icebox/*.py | 27 | REPLACE_PYTHON+= icebox/*.py | |
20 | 28 | |||
21 | INSTALLATION_DIRS= bin share | 29 | INSTALLATION_DIRS= bin share | |
22 | 30 | |||
23 | .include "../../devel/libftdi/buildlink3.mk" | 31 | .include "../../devel/libftdi/buildlink3.mk" | |
24 | .include "../../lang/python/application.mk" | 32 | .include "../../lang/python/application.mk" | |
25 | .include "../../lang/python/tool.mk" | 33 | .include "../../lang/python/tool.mk" | |
26 | .include "../../mk/bsd.pkg.mk" | 34 | .include "../../mk/bsd.pkg.mk" |
@@ -1,6 +1,7 @@ | @@ -1,6 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.1 2024/02/28 06:02:38 thorpej Exp $ | 1 | $NetBSD: distinfo,v 1.2 2024/02/29 02:03:20 thorpej Exp $ | |
2 | 2 | |||
3 | BLAKE2s (icestorm-0.0.20240227-1a40ae75d4eebee9cce73a2c4d634fd42ed0110f.tar.gz) = 511978571885ce362c39616dfb1fcccd5a1df31562b8cbb925547f15d5853cce | 3 | BLAKE2s (icestorm-0.0.20240227-1a40ae75d4eebee9cce73a2c4d634fd42ed0110f.tar.gz) = 511978571885ce362c39616dfb1fcccd5a1df31562b8cbb925547f15d5853cce | |
4 | SHA512 (icestorm-0.0.20240227-1a40ae75d4eebee9cce73a2c4d634fd42ed0110f.tar.gz) = f0bfbc0af651a5d1cc45ecc4ce6cb9f6a8fdf4797f17b2af7e70278f0786b8d063503606cbf624aee558a3e32a3dc7c595694ac335ce7b52bfece9b18b5543da | 4 | SHA512 (icestorm-0.0.20240227-1a40ae75d4eebee9cce73a2c4d634fd42ed0110f.tar.gz) = f0bfbc0af651a5d1cc45ecc4ce6cb9f6a8fdf4797f17b2af7e70278f0786b8d063503606cbf624aee558a3e32a3dc7c595694ac335ce7b52bfece9b18b5543da | |
5 | Size (icestorm-0.0.20240227-1a40ae75d4eebee9cce73a2c4d634fd42ed0110f.tar.gz) = 948430 bytes | 5 | Size (icestorm-0.0.20240227-1a40ae75d4eebee9cce73a2c4d634fd42ed0110f.tar.gz) = 948430 bytes | |
6 | SHA1 (patch-icebox_Makefile) = 2b99d8c0e780c3b22a0697bfbd9e5b0259e0839d | |||
6 | SHA1 (patch-icetime_iceutil.cc) = d5cd83337808631b148f64d9c2ac6157c0b4d823 | 7 | SHA1 (patch-icetime_iceutil.cc) = d5cd83337808631b148f64d9c2ac6157c0b4d823 |
$NetBSD: patch-icebox_Makefile,v 1.1 2024/02/29 02:03:20 thorpej Exp $
Disable special case for Darwin sed(1); the package Makefile forces
the use of GNU sed(1) on Darwin.
--- icebox/Makefile.orig 2024-02-28 20:06:15
+++ icebox/Makefile 2024-02-28 18:31:57
@@ -1,10 +1,10 @@
include ../config.mk
-ifneq ($(shell uname -s),Darwin)
+#ifneq ($(shell uname -s),Darwin)
SED_I = sed -i
-else
- SED_I = sed -i ''
-endif
+#else
+# SED_I = sed -i ''
+#endif
all: chipdb-384.txt chipdb-1k.txt chipdb-8k.txt chipdb-5k.txt chipdb-lm4k.txt chipdb-u4k.txt