summaryrefslogtreecommitdiff
path: root/cad
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2006-02-10 16:37:51 +0000
committerdrochner <drochner@pkgsrc.org>2006-02-10 16:37:51 +0000
commit982160c7302b616d9c2f881569de81de2da258f6 (patch)
treea409348763a5223637d23f910af3030e50ff84bf /cad
parent00901fec892056e71f837e1bb68a2e62d87650f8 (diff)
downloadpkgsrc-982160c7302b616d9c2f881569de81de2da258f6.tar.gz
import GPL Cver 2.11a, another Verilog simulator
Diffstat (limited to 'cad')
-rw-r--r--cad/gplcver/DESCR4
-rw-r--r--cad/gplcver/Makefile22
-rw-r--r--cad/gplcver/PLIST10
-rw-r--r--cad/gplcver/buildlink3.mk28
-rw-r--r--cad/gplcver/distinfo8
-rw-r--r--cad/gplcver/patches/patch-aa13
-rw-r--r--cad/gplcver/patches/patch-ab15
-rw-r--r--cad/gplcver/patches/patch-ac13
8 files changed, 113 insertions, 0 deletions
diff --git a/cad/gplcver/DESCR b/cad/gplcver/DESCR
new file mode 100644
index 00000000000..952b010d52b
--- /dev/null
+++ b/cad/gplcver/DESCR
@@ -0,0 +1,4 @@
+Cver is a full 1995 IEEE P1364 standard Verilog simulator. It also
+implements some of the 2001 P1364 standard features. All three
+PLI interfaces (tf_, acc_, and vpi_) are implemented as defined
+in the IEEE 2001 P1364 LRM.
diff --git a/cad/gplcver/Makefile b/cad/gplcver/Makefile
new file mode 100644
index 00000000000..d6f5fe98850
--- /dev/null
+++ b/cad/gplcver/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/02/10 16:37:51 drochner Exp $
+#
+
+DISTNAME= gplcver-2.11a.src
+PKGNAME= gplcver-2.11a
+CATEGORIES= cad
+MASTER_SITES= http://www.pragmatic-c.com/gpl-cver/downloads/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= tech-pkg@NetBSD.org
+HOMEPAGE= http://www.pragmatic-c.com/gpl-cver/
+COMMENT= Verilog simulator
+
+BUILD_DIRS= src
+MAKEFILE= makefile.freebsd
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/cver ${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${PREFIX}/lib/gplcver/pli_incs
+ ${INSTALL_DATA} ${WRKSRC}/pli_incs/*.h ${PREFIX}/lib/gplcver/pli_incs
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/cad/gplcver/PLIST b/cad/gplcver/PLIST
new file mode 100644
index 00000000000..ff65034d4fb
--- /dev/null
+++ b/cad/gplcver/PLIST
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/02/10 16:37:51 drochner Exp $
+bin/cver
+lib/gplcver/pli_incs/acc_user.h
+lib/gplcver/pli_incs/cv_acc_user.h
+lib/gplcver/pli_incs/cv_veriuser.h
+lib/gplcver/pli_incs/cv_vpi_user.h
+lib/gplcver/pli_incs/veriuser.h
+lib/gplcver/pli_incs/vpi_user.h
+@dirrm lib/gplcver/pli_incs
+@dirrm lib/gplcver
diff --git a/cad/gplcver/buildlink3.mk b/cad/gplcver/buildlink3.mk
new file mode 100644
index 00000000000..4722b6f22a0
--- /dev/null
+++ b/cad/gplcver/buildlink3.mk
@@ -0,0 +1,28 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2006/02/10 16:37:51 drochner Exp $
+# XXX
+# XXX This file was created automatically using createbuildlink-3.10.
+# XXX After this file has been verified as correct, the comment lines
+# XXX beginning with "XXX" should be removed. Please do not commit
+# XXX unverified buildlink3.mk files.
+# XXX
+# XXX Packages that only install static libraries or headers should
+# XXX include the following line:
+# XXX
+# XXX BUILDLINK_DEPMETHOD.gplcver?= build
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+GPLCVER_BUILDLINK3_MK:= ${GPLCVER_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= gplcver
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Ngplcver}
+BUILDLINK_PACKAGES+= gplcver
+
+.if !empty(GPLCVER_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.gplcver+= gplcver>=2.11a
+BUILDLINK_PKGSRCDIR.gplcver?= ../../cad/gplcver
+.endif # GPLCVER_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/cad/gplcver/distinfo b/cad/gplcver/distinfo
new file mode 100644
index 00000000000..c4686ec8bb1
--- /dev/null
+++ b/cad/gplcver/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/02/10 16:37:51 drochner Exp $
+
+SHA1 (gplcver-2.11a.src.tar.bz2) = 5b26b70282bb7c79f5dfa9d70f3cf0972ac03b3c
+RMD160 (gplcver-2.11a.src.tar.bz2) = 16bedab414af0cf4049394ea9f01ea2ebb4e3385
+Size (gplcver-2.11a.src.tar.bz2) = 1189439 bytes
+SHA1 (patch-aa) = f22f3ace0a6da4476151d81b4ac35cbe7efe7c12
+SHA1 (patch-ab) = 151ea8442c604c4de810c335c50db34281797fc8
+SHA1 (patch-ac) = 8c82e31f81d0e787a32d6217dc7704f55e10d150
diff --git a/cad/gplcver/patches/patch-aa b/cad/gplcver/patches/patch-aa
new file mode 100644
index 00000000000..7ae3206343b
--- /dev/null
+++ b/cad/gplcver/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2006/02/10 16:37:51 drochner Exp $
+
+--- src/v.h.orig 2006-02-10 12:25:44.000000000 +0100
++++ src/v.h
+@@ -102,7 +102,7 @@ typedef int32 sighandler();
+ # ifdef __CYGWIN32__
+ # include <sys/param.h>
+ # else
+-# ifdef __FreeBSD__
++# if defined(__FreeBSD__) || defined(__NetBSD__)
+ # include <sys/endian.h>
+ # else
+ # include <endian.h>
diff --git a/cad/gplcver/patches/patch-ab b/cad/gplcver/patches/patch-ab
new file mode 100644
index 00000000000..15dab6226e6
--- /dev/null
+++ b/cad/gplcver/patches/patch-ab
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.1.1.1 2006/02/10 16:37:51 drochner Exp $
+
+--- src/cver.c.orig 2006-02-10 15:41:00.000000000 +0100
++++ src/cver.c
+@@ -1049,6 +1049,10 @@ extern int32 __dig_main(int32 argc, char
+ __platform = __pv_stralloc("X86 FreeBSD");
+ #endif
+
++#ifdef __NetBSD__
++ __platform = __pv_stralloc("NetBSD");
++#endif
++
+ #ifdef __APPLE__
+ __platform = __pv_stralloc("Mac OSX");
+ #endif
diff --git a/cad/gplcver/patches/patch-ac b/cad/gplcver/patches/patch-ac
new file mode 100644
index 00000000000..ef8a99b22d3
--- /dev/null
+++ b/cad/gplcver/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 2006/02/10 16:37:51 drochner Exp $
+
+--- src/makefile.freebsd.orig 2006-02-10 17:10:16.000000000 +0100
++++ src/makefile.freebsd
+@@ -45,7 +45,7 @@ CC=cc
+ # select loader
+ LD=ld
+ # needed for dynamic PLI loading
+-LFLAGS=-export-dynamic
++LFLAGS=-export-dynamic -Wl,-R${PREFIX}/lib/gplcver
+
+ # system libs
+ LIBS= -lm