mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
Fix building with perl5.8
PR: ports/45031 Submitted by: Martin Klaffenboeck <martin.klaffenboeck@gmx.at>
This commit is contained in:
parent
e17c85302c
commit
0d68bb91c0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=73702
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= Gtk
|
||||
PORTVERSION= 0.7008
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= x11-toolkits lang perl5
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
||||
MASTER_SITE_SUBDIR= Gtk
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- Gtk/Makefile.PL.orig Sat Mar 24 18:35:10 2001
|
||||
+++ Gtk/Makefile.PL Sun May 27 22:41:52 2001
|
||||
--- Gtk/Makefile.PL.orig Sun May 27 00:08:38 2001
|
||||
+++ Gtk/Makefile.PL Tue Jan 21 11:07:55 2003
|
||||
@@ -40,8 +40,8 @@
|
||||
$threadl = "";
|
||||
}
|
||||
@ -11,11 +11,43 @@
|
||||
$libs =~ s/\s+/ /g;
|
||||
$inc =~ s/\s+/ /g;
|
||||
|
||||
@@ -160,3 +160,3 @@
|
||||
@@ -59,7 +59,7 @@
|
||||
|
||||
$gtk_hverstr = sprintf("0x%02x%02x%02x", $gtk_major, $gtk_minor, $gtk_micro);
|
||||
|
||||
-push @defines, "-DGTK_HVER=$gtk_hverstr";
|
||||
+push @defines, "-DGTK_HVER=$gtk_hverstr -o \$*.o";
|
||||
|
||||
if (not defined $gtk_version) {
|
||||
die "Unable to find Gtk version...\n";
|
||||
@@ -158,7 +158,7 @@
|
||||
'XSPROTOARG' => '-noprototypes',
|
||||
'depend' => $depend,
|
||||
'dist' => { COMPRESS=>"gzip", SUFFIX=>"gz" },
|
||||
- 'OPTIMIZE' => '-O2 -g',
|
||||
+ 'CCFLAGS' => '${CFLAGS}',
|
||||
'MAN3PODS' => {
|
||||
'cookbook.pod' => '$(INST_MAN3DIR)/Gtk::cookbook.3pm',
|
||||
'Gtk.pm' => '$(INST_MAN3DIR)/Gtk.3pm',
|
||||
@@ -187,12 +187,12 @@
|
||||
|
||||
}
|
||||
|
||||
-sub MY::c_o {
|
||||
- package MY; # so that "SUPER" works right
|
||||
- my $inherited = shift->SUPER::c_o(@_);
|
||||
- $inherited =~ s/CCCMD.*$/$&\n\t\@if test -f `basename \$*.o` -a "`basename \$*.o`" != "\$*.o"; then mv `basename \$*.o` \$*.o; fi/m;
|
||||
- $inherited;
|
||||
-}
|
||||
+#sub MY::c_o {
|
||||
+# package MY; # so that "SUPER" works right
|
||||
+# my $inherited = shift->SUPER::c_o(@_);
|
||||
+# $inherited =~ s/CCCMD.*$/$& -o \$*\n\t\@if test -f `basename \$*.o` -a "`basename \$*.o`" != "\$*.o"; then mv `basename \$*.o` \$*.o; fi/m;
|
||||
+# $inherited;
|
||||
+#}
|
||||
|
||||
sub MY::const_config
|
||||
{
|
||||
@@ -207,14 +207,14 @@
|
||||
sub gtk_version {
|
||||
my($result);
|
||||
|
Loading…
Reference in New Issue
Block a user