> http://build-failures.rhaalovely.net//powerpc/2019-01-12/lang/iverilog.log
> http://build-failures.rhaalovely.net/sparc64/2019-02-03/lang/iverilog.log
(impacts also amd64 when ports-gcc is forced)
iverilog cannot find bzip2 includes when ports-gcc is used, also it
requires an appropriate LIB_DEPENDS.
WANTLIB has been changed as port-lib-depends-check said - bz2 is an
extra on amd64.
There may be a better solution, but i've found nothing specific in the
upstream build system.
It builds successfully on macppc and amd64, and WRKSRC/examples/* runs
fine as well.
Comments/feedback are welcome!
Charlène.
Index: Makefile
===================================================================
RCS file: /cvs/ports/lang/iverilog/Makefile,v
retrieving revision 1.18
diff -u -p -u -p -r1.18 Makefile
--- Makefile 24 Oct 2018 14:28:06 -0000 1.18
+++ Makefile 28 Feb 2019 18:50:36 -0000
@@ -6,7 +6,7 @@ V= 10.2
DISTNAME= verilog-$V
PKGNAME= iverilog-$V
CATEGORIES= lang devel
-REVISION= 0
+REVISION= 1
HOMEPAGE= http://iverilog.icarus.com/
@@ -15,13 +15,14 @@ PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= ftp://ftp.icarus.com/pub/eda/verilog/v10/
-WANTLIB += c m pthread readline ${COMPILER_LIBCXX} termcap z
+WANTLIB += c m pthread readline ${COMPILER_LIBCXX} curses z
COMPILER = base-clang ports-gcc base-gcc
USE_GMAKE= Yes
BUILD_DEPENDS= devel/bison
+LIB_DEPENDS = archivers/bzip2
YACC= bison
CONFIGURE_STYLE= gnu
@@ -38,3 +39,10 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/ivlpp/ivlpp.txt ${DOC_DIR}/ivlpp/
.include <bsd.port.mk>
+
+# Fix "lxt_write.h:37:19: fatal error: bzlib.h: No such file or directory"
+.if ${CHOSEN_COMPILER} == "ports-gcc"
+WANTLIB += bz2
+CFLAGS += -I${LOCALBASE}/include
+CXXFLAGS += -I${LOCALBASE}/include
+.endif
No comments:
Post a Comment