Ticket #8149: 09_perl_bindings_prefix

File 09_perl_bindings_prefix, 1.1 KB (added by Andres Mejia <mcitadel@…>, 14 years ago)

Patch to fix installation of Perl bindings

Line 
1Set prefix always and install to the Perl vendor directories.
2==========================================================================
3--- a/bindings/perl/perl.pro
4+++ b/bindings/perl/perl.pro
5@@ -4,13 +4,7 @@
6 
7 mythperlbindings.target = Makefile.perl
8 mythperlbindings.depends = Makefile.PL
9-contains(PREFIX, ^/usr(/local)?/?$) {
10-    mythperlbindings.commands = perl Makefile.PL MAKEFILE=Makefile.perl
11-}
12-else {
13-    mythperlbindings.commands = perl Makefile.PL MAKEFILE=Makefile.perl PREFIX=$${PREFIX}
14-}
15-
16+mythperlbindings.commands = perl Makefile.PL MAKEFILE=Makefile.perl PREFIX=$${PREFIX} INSTALLDIRS=vendor
17 mythperbindingsbuild.target = perl_build
18 mythperbindingsbuild.depends = Makefile.perl
19 mythperbindingsbuild.commands = @-$(MAKE) -f Makefile.perl
20@@ -20,7 +14,7 @@
21 
22 perl_install.target = install
23 perl_install.depends = all
24-perl_install.commands = $(MAKE) -f Makefile.perl pure_install PERL_INSTALL_ROOT=\"$(INSTALL_ROOT)\"
25+perl_install.commands = $(MAKE) -f Makefile.perl pure_install PERL_INSTALL_ROOT=\"$(INSTALL_ROOT)\" PREFIX=$${PREFIX} INSTALLDIRS=vendor
26 
27 QMAKE_LINK=@-echo
28 PRE_TARGETDEPS += perl_build