aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-07-19 19:23:32 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-07-19 19:27:16 +0000
commitba4004193fe971bba49e83f4c92ffce5707f1457 (patch)
tree31d364d7659fd728544986587818781f3cb5e63a
parent11134b8c3cff58b193abdc95c1087ffacbb23dd1 (diff)
downloadports-ba4004193fe971bba49e83f4c92ffce5707f1457.tar.gz
ports-ba4004193fe971bba49e83f4c92ffce5707f1457.zip
cad/spice: Fix build with llvm16
- Use native unzip instead of unzip from ports for do-extract target Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation
-rw-r--r--cad/spice/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/cad/spice/Makefile b/cad/spice/Makefile
index 9c7930688e76..c0b2e90c19e3 100644
--- a/cad/spice/Makefile
+++ b/cad/spice/Makefile
@@ -1,6 +1,6 @@
PORTNAME= spice
PORTVERSION= 3f5.2
-PORTREVISION= 13
+PORTREVISION= 14
CATEGORIES= cad
MASTER_SITES= https://ptolemy.berkeley.edu/projects/embedded/pubs/downloads/spice/:srcs \
http://home.hiroshima-u.ac.jp/usdl/HiSIM2/:hisim2 \
@@ -23,8 +23,6 @@ LICENSE_FILE= ${WRKSRC}/COPYRIGHT
BROKEN_aarch64= Fails to link: missing sbrk
BROKEN_riscv64= Fails to link: missing sbrk
-EXTRACT_DEPENDS= ${LOCALBASE}/bin/unzip:archivers/unzip
-
WRKSRC= ${WRKDIR}/${PORTNAME}3f5
MAKEFILE= ${FILESDIR}/Makefile
CONFIGURE_ENV= CONFIGFILE="${CONFIGFILE}" \
@@ -57,6 +55,10 @@ DEV_HISIM2_LICENSE= HISIML
.include <bsd.port.options.mk>
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+= -Wno-error=int-conversion
+.endif
+
# Configuration parameters.
CC_OPT= ${CFLAGS}
CONFIGFILE= ${WRKSRC}/conf/FreeBSD
@@ -91,10 +93,10 @@ post-extract-DEV_BSIM3-on:
-C ${WRKSRC}/src/lib/dev/bsim3
post-extract-DEV_BSIM4-on:
@${MKDIR} ${WRKSRC}/src/lib/dev/bsim4
- ${UNZIP_CMD} -qo ${DISTDIR}/${DIST_SUBDIR}/BSIM480_Code.zip \
+ ${UNZIP_MNATIVE_CMD} -qo ${DISTDIR}/${DIST_SUBDIR}/BSIM480_Code.zip \
-d ${WRKSRC}/src/lib/dev/bsim4
post-extract-DEV_HISIM2-on:
- ${UNZIP_CMD} -qo ${DISTDIR}/${DIST_SUBDIR}/HiSIM_2.8.0_Release_20140605.zip \
+ ${UNZIP_MNATIVE_CMD} -qo ${DISTDIR}/${DIST_SUBDIR}/HiSIM_2.8.0_Release_20140605.zip \
-d ${WRKDIR}
${MV} ${WRKDIR}/HiSIM_2.8.0_Release_20140605/HiSIM_2.8.0_C-Code/hisim2 \
${WRKSRC}/src/lib/dev