summaryrefslogtreecommitdiff
path: root/cad/verilog/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'cad/verilog/Makefile')
-rw-r--r--cad/verilog/Makefile51
1 files changed, 47 insertions, 4 deletions
diff --git a/cad/verilog/Makefile b/cad/verilog/Makefile
index 1e1c8e20df4..4b8290f6d24 100644
--- a/cad/verilog/Makefile
+++ b/cad/verilog/Makefile
@@ -1,14 +1,14 @@
-# $NetBSD: Makefile,v 1.36 2013/07/15 02:02:18 ryoon Exp $
+# $NetBSD: Makefile,v 1.37 2014/01/07 09:43:54 mef Exp $
#
-DISTNAME= verilog-0.9.4
-PKGREVISION= 1
+DISTNAME= verilog-0.9.7
CATEGORIES= cad
MASTER_SITES= ftp://icarus.com/pub/eda/verilog/v0.9/
MAINTAINER= dmcmahill@NetBSD.org
HOMEPAGE= http://icarus.com/eda/verilog/index.html
COMMENT= Verilog simulation and synthesis tool (stable release version)
+LICENSE= gnu-gpl-v2
PKG_INSTALLATION_TYPES= overwrite pkgviews
@@ -18,9 +18,52 @@ USE_LANGUAGES= c c++
GNU_CONFIGURE= yes
USE_TOOLS+= gmake bison lex
-CONFIGURE_ARGS+= --without-ipal
TEST_TARGET= check
+INSTALLATION_DIRS+= share/ivl
+
+SUBST_CLASSES+= destdir
+SUBST_FILES.destdir= tgt-vhdl/Makefile.in \
+ tgt-fpga/Makefile.in \
+ tgt-null/Makefile.in \
+ tgt-pal/Makefile.in \
+ tgt-stub/Makefile.in \
+ tgt-verilog/Makefile.in \
+ tgt-vvp/Makefile.in
+SUBST_MESSAGE.destdir= Fix DESTDIR in various Makefile.in
+SUBST_STAGE.destdir= pre-configure
+SUBST_SED.destdir= '-e s, $$(libdir)/ivl, $$(DESTDIR)$$(libdir)/ivl,g'
+# Leading TAB
+SUBST_SED.destdir+= '-e s, $$(libdir)/ivl, $$(DESTDIR)$$(libdir)/ivl,g'
+# target:
+SUBST_SED.destdir+= '-e s,^$$(libdir)/ivl,$$(DESTDIR)$$(libdir)/ivl,'
+
+SUBST_CLASSES+= vpi-dest
+SUBST_STAGE.vpi-dest= pre-configure
+SUBST_FILES.vpi-dest= vpi/Makefile.in
+SUBST_MESSAGE.vpi-dest= Fix DESTDIR in vpi/Makefile.in (watch target:)
+SUBST_SED.vpi-dest= '-e s, $$(vpidir)/, $$(DESTDIR)$$(vpidir)/,g'
+# Leading TAB
+SUBST_SED.vpi-dest+= '-e s, $$(vpidir)/, $$(DESTDIR)$$(vpidir)/,g'
+SUBST_SED.vpi-dest+= '-e s,^$$(vpidir)/,$$(DESTDIR)$$(vpidir)/,g'
+
+# Some missing files not installed are handled by SUBST (above)
+# and rest of them are by following target.
+post-install:
+ (cd ${WRKSRC}; ${INSTALL_DATA} \
+ QUICK_START.txt \
+ README.txt \
+ ${DESTDIR}${PREFIX}/share/ivl )
+# include/iverilog
+ (cd ${WRKSRC}; ${INSTALL_DATA} \
+ acc_user.h ivl_target.h veriuser.h vpi_user.h \
+ ${DESTDIR}${PREFIX}/include/iverilog )
+# lib/ivl/include
+ (cd ${WRKSRC}; ${INSTALL_DATA} \
+ constants.vams \
+ disciplines.vams \
+ ${DESTDIR}${PREFIX}/lib/ivl/include )
+
.include "../../devel/zlib/buildlink3.mk"
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../devel/gperf/buildlink3.mk"