1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

cad/freehdl: Unbreak on F10+ and stage

I could not fix this port on clang.  It finds the double argument to the
"to_string" function ambiguious and nothing I tried resolved the
ambiguity.  In the end, I cheated by setting USE_GCC=any and I'll leave
the clang fix to a C++ expert.
This commit is contained in:
John Marino 2014-07-18 08:09:53 +00:00
parent dba2c54526
commit 32842933d3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=362188
5 changed files with 36 additions and 9 deletions

View File

@ -11,20 +11,13 @@ COMMENT= Free VHDL simulator
USE_LDCONFIG= yes
USES= gmake perl5 pkgconfig
USE_GCC= any
USE_GNOME= gnomehack
USE_AUTOTOOLS= libtool
HAS_CONFIGURE= yes
MAN1= freehdl-config.1 \
freehdl-gennodes.1 \
freehdl-v2cc.1 \
gvhdl.1
MAN5= v2cc.libs.5
INFO= fire
MANCOMPRESSED= no
PLIST_TMP= ${WRKDIR}/plist_tmp/
PLIST_REPL= ${SED} "s|share/${PORTNAME}|%%DATADIR%%|1"
@ -53,5 +46,4 @@ plist: build
| ${GREP} -vE '%%DATADIR%%|freehdl' >> ${PLIST}
@${RM} -rf ${PLIST_TMP}
NO_STAGE= yes
.include <bsd.port.mk>

View File

@ -0,0 +1,10 @@
--- kernel/fhdl_stream.cc.orig 2006-01-12 08:05:01.000000000 +0000
+++ kernel/fhdl_stream.cc
@@ -2,6 +2,7 @@
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
+#include <cstring>
#include <sstream>
#include <assert.h>
#include <freehdl/kernel-error.hh>

View File

@ -0,0 +1,10 @@
--- vaul/dunit.cc.orig 2005-12-14 08:23:06.000000000 +0000
+++ vaul/dunit.cc
@@ -27,6 +27,7 @@
#include <errno.h>
#include <string.h>
+#include <stdlib.h>
#if HAVE_MALLOC_H
#include <malloc.h>
#endif

View File

@ -0,0 +1,10 @@
--- vaul/pool.cc.orig 2005-12-14 08:23:06.000000000 +0000
+++ vaul/pool.cc
@@ -24,6 +24,7 @@
#include <freehdl/vaul-lexer.h>
#include <freehdl/vaul-util.h>
+#include <stdlib.h>
#if HAVE_MALLOC_H
#include <malloc.h>
#endif

View File

@ -91,6 +91,11 @@ lib/libfreehdl-cdfggen.so.0
lib/libfreehdl-cdfggen.so
lib/libfreehdl-cdfggen.la
lib/libfreehdl-cdfggen.a
man/man1/freehdl-config.1.gz
man/man1/freehdl-gennodes.1.gz
man/man1/freehdl-v2cc.1.gz
man/man1/gvhdl.1.gz
man/man5/v2cc.libs.5.gz
%%DATADIR%%/lib/std/standard.vhdl
%%DATADIR%%/lib/std/textio.vhdl
%%DATADIR%%/lib/ieee/std_logic_1164.vhdl