git: ba4004193fe9 - main - cad/spice: Fix build with llvm16
Date: Wed, 19 Jul 2023 19:27:32 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=ba4004193fe971bba49e83f4c92ffce5707f1457 commit ba4004193fe971bba49e83f4c92ffce5707f1457 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-07-19 19:23:32 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-07-19 19:27:16 +0000 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 --- cad/spice/Makefile | 12 +++++++----- 1 file 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