summaryrefslogtreecommitdiff
path: root/graphics/IPA/files/patch-Makefile.PL
blob: 47cdce9ce2fc8616f6004b5a61656c96df0a8753 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Fix regular expression match and build with MakeMaker >= 7.05_05 which adds a
space between the target name and the operator.

--- Makefile.PL.orig	2011-05-14 06:27:26 UTC
+++ Makefile.PL
@@ -79,8 +79,8 @@ H
 sub c_o
 {
 	my $t = shift-> SUPER::c_o(@_);
-	unless ( $t =~ /.c\$\(OBJ_EXT\):\n\t.*\$\*\$\(OBJ_EXT\)/ ) {
-		$t =~ s/(\.c\$\(OBJ_EXT\):\n\t.*)/$1 $co\$*\$(OBJ_EXT)/;
+	unless ( $t =~ /\.c\$\(OBJ_EXT\)\s*:\n\t.*\Q\$\*\$\(OBJ_EXT\)\E/ ) {
+		$t =~ s/(\.c\$\(OBJ_EXT\)\s*:\n\t.*)/$1 $co\$*\$(OBJ_EXT)/;
 	}
 	return $t;
 }