diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-06-27 18:59:28 +0000 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-06-27 18:59:28 +0000 |
commit | b2b68f19a313b38886fd9b25803bf1260cecd807 (patch) | |
tree | 0a15520a902b8e679402fda1705a33f8a7aa66a8 /cad/p5-Verilog-Perl/files | |
parent | Fix after sqlite3 update (diff) |
- Update to 3.404
- Fix build, it needs gcc
PR: 191368
Submitted by: otaciliodearaujo@gmail.com (maintainer)
Notes
Notes:
svn path=/head/; revision=359597
Diffstat (limited to 'cad/p5-Verilog-Perl/files')
-rw-r--r-- | cad/p5-Verilog-Perl/files/patch-Makefile.PL | 39 | ||||
-rw-r--r-- | cad/p5-Verilog-Perl/files/patch-Parser__Makefile.PL | 28 | ||||
-rw-r--r-- | cad/p5-Verilog-Perl/files/patch-Preproc__Makefile.PL | 27 |
3 files changed, 94 insertions, 0 deletions
diff --git a/cad/p5-Verilog-Perl/files/patch-Makefile.PL b/cad/p5-Verilog-Perl/files/patch-Makefile.PL new file mode 100644 index 000000000000..a9ff01e0296f --- /dev/null +++ b/cad/p5-Verilog-Perl/files/patch-Makefile.PL @@ -0,0 +1,39 @@ +--- Makefile.PL 2014-03-11 19:59:40.000000000 -0300 ++++ Makefile.PL 2014-06-25 11:18:59.000000000 -0300 +@@ -11,7 +11,7 @@ + + sub MY::postamble { + my $out=""; +- # Note OPTIMIZE is passed from upper makefile, so this code needed there too. ++ # Note OPTIMIZE is passed from upper gmakefile, so this code needed there too. + # -O2 optimization seems unreasonably slow on nearly every platform. I give up. + my $optimize = $Config{optimize}; $optimize =~ s/(^| )-O2( |$)/\1-O\2/g; + $out .= "OPTIMIZE = $optimize\n"; +@@ -82,6 +82,8 @@ + return $out; + } + ++$CXX = $ENV{CXX}; ++ + my $fail; + local $! = undef; + my $have_gen = -d "Preproc/gen"; +@@ -93,7 +95,7 @@ + if ($have_gen) { warn "\n-Note: 'bison' must be installed to build from sources\n"; } + else { $fail=1; warn "\n%Error: 'bison' must be installed to build\n\n"; } + } +-`g++ --version`; if ($?) { $fail=1; warn "\n%Error: 'gcc/g++' must be installed to build\n"; } ++system("$CXX --version"); if ($?) { $fail=1; warn "\n%Error: 'gcc/g++' must be installed to build\n"; } + if ($fail) { + if ($ENV{AUTOMATED_TESTING}) { + exit(0); +@@ -135,8 +137,8 @@ + }, + ); + +-my $mkv = `make --version`; ++my $mkv = `gmake --version`; + if ($? || $mkv !~ /GNU Make/i) { + warn "-Important: Now type 'gmake MAKE=gmake' as this package requires GNU Make\n"; + } + 1; diff --git a/cad/p5-Verilog-Perl/files/patch-Parser__Makefile.PL b/cad/p5-Verilog-Perl/files/patch-Parser__Makefile.PL new file mode 100644 index 000000000000..550fc0d9dc1f --- /dev/null +++ b/cad/p5-Verilog-Perl/files/patch-Parser__Makefile.PL @@ -0,0 +1,28 @@ +--- Parser/Makefile.PL 2014-03-11 19:59:40.000000000 -0300 ++++ Parser/Makefile.PL 2014-06-25 11:19:19.000000000 -0300 +@@ -9,13 +9,15 @@ + + sub MY::postamble { + my $out; ++ ++ $CXX = $ENV{CXX}; + #print Config::myconfig(); + if ($Config{osname} !~ /cygwin/i && $Config{archname} !~ /cygwin/i + && $Config{osname} !~ /darwin/i && $Config{archname} !~ /darwin/i) { + # Cygwin: Don't change LD, it breaks + # Sun: Requires g++ LD + # Linux: Either way +- $out .= "LD = g++\n"; ++ $out .= "LD = $CXX\n"; + } + # Note OPTIMIZE is passed from upper makefile, so this code needed there too. + my $optimize = $Config{optimize}; $optimize =~ s/(^| )-O2( |$)/\1-O\2/g; +@@ -46,7 +48,7 @@ + $out .= "${cmt}CFLAGS += -DFLEX_DEBUG\n"; + $out .= "LEXFLAGS += -d\n"; + $out .= ' +-CC = $(OBJCACHE) g++ ++CC = $(OBJCACHE) $(CXX) + LEX = flex + YACC = bison + PPSRC = ../Preproc diff --git a/cad/p5-Verilog-Perl/files/patch-Preproc__Makefile.PL b/cad/p5-Verilog-Perl/files/patch-Preproc__Makefile.PL new file mode 100644 index 000000000000..747ba533da79 --- /dev/null +++ b/cad/p5-Verilog-Perl/files/patch-Preproc__Makefile.PL @@ -0,0 +1,27 @@ +--- Preproc/Makefile.PL 2014-03-11 19:59:40.000000000 -0300 ++++ Preproc/Makefile.PL 2014-06-25 11:19:37.000000000 -0300 +@@ -9,13 +9,14 @@ + + sub MY::postamble { + my $out; ++ $CXX = $ENV{CXX}; + #print Config::myconfig(); + if ($Config{osname} !~ /cygwin/i && $Config{archname} !~ /cygwin/i + && $Config{osname} !~ /darwin/i && $Config{archname} !~ /darwin/i) { + # Cygwin: Don't change LD, it breaks + # Sun: Requires g++ LD + # Linux: Either way +- $out .= "LD = g++\n"; ++ $out .= "LD = $CXX\n"; + } + # Note OPTIMIZE is passed from upper makefile, so this code needed there too. + my $optimize = $Config{optimize}; $optimize =~ s/(^| )-O2( |$)/\1-O\2/g; +@@ -46,7 +47,7 @@ + $out .= "${cmt}CFLAGS += -DFLEX_DEBUG\n"; + $out .= "${cmt}LEXFLAGS += -d\n"; + $out .= ' +-CC = $(OBJCACHE) g++ ++CC = $(OBJCACHE) $(CXX) + LEX = flex + YACC = bison + PPSRC = ../Preproc |