aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2003-01-21 11:30:12 +0800
committervanilla <vanilla@FreeBSD.org>2003-01-21 11:30:12 +0800
commitbc8d647147a3e035c26223ecb6c57cd6ed606434 (patch)
treee7f2c8e1fef1c242a25503b274d15dc2ec601cdc /x11-toolkits
parent505f033d271249e306439ce78182b380182b0ca9 (diff)
downloadfreebsd-ports-gnome-bc8d647147a3e035c26223ecb6c57cd6ed606434.tar.gz
freebsd-ports-gnome-bc8d647147a3e035c26223ecb6c57cd6ed606434.tar.zst
freebsd-ports-gnome-bc8d647147a3e035c26223ecb6c57cd6ed606434.zip
Fix building with perl5.8
PR: ports/45031 Submitted by: Martin Klaffenboeck <martin.klaffenboeck@gmx.at>
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/p5-Gtk/Makefile1
-rw-r--r--x11-toolkits/p5-Gtk/files/patch-Gtk_Makefile.PL38
2 files changed, 36 insertions, 3 deletions
diff --git a/x11-toolkits/p5-Gtk/Makefile b/x11-toolkits/p5-Gtk/Makefile
index b0726065fab3..efcf29101520 100644
--- a/x11-toolkits/p5-Gtk/Makefile
+++ b/x11-toolkits/p5-Gtk/Makefile
@@ -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
diff --git a/x11-toolkits/p5-Gtk/files/patch-Gtk_Makefile.PL b/x11-toolkits/p5-Gtk/files/patch-Gtk_Makefile.PL
index 8fa5e6894d27..a30abdf91469 100644
--- a/x11-toolkits/p5-Gtk/files/patch-Gtk_Makefile.PL
+++ b/x11-toolkits/p5-Gtk/files/patch-Gtk_Makefile.PL
@@ -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);