aboutsummaryrefslogtreecommitdiffstats
path: root/misc/p5-OSSP-uuid/files/patch-perl__Makefile.PL
blob: 7912be67b1b39141a6eaed684caf610e1eee21c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- Makefile.PL.orig    2014-03-11 16:59:58.443768044 +0100
+++ Makefile.PL 2014-03-11 17:00:36.554952157 +0100
@@ -32,11 +32,6 @@
 use Config;
 use ExtUtils::MakeMaker;
 
-#   determine source directory
-my ($srcdir) = map { my $d = $_; $d =~ s/\/libuuid\.la$//; $d }
-               grep { -f $_ } ("../libuuid.la", glob("../*/libuuid.la"))
-    or die "no source directory found (where libuuid.la is located)";
-
 #   determine extra build options
 my $compat = 0;
 @ARGV = grep { $_ =~ m/^COMPAT=(\d+)$/i ? ($compat = $1, 0) : 1 } @ARGV;
@@ -47,9 +42,9 @@
     VERSION_FROM      => 'uuid.pm',
     ABSTRACT_FROM     => 'uuid.pod',
     PREREQ_PM         => {},
-    LIBS              => [ "-L$srcdir/.libs -L$srcdir -luuid" ],
+    LIBS              => [ "-L%%LOCALBASE%%/lib -luuid" ],
     DEFINE            => '',
-    INC               => "-I. -I$srcdir",
+    INC               => "-I. -I%%LOCALBASE%%/include/ossp",
     PM                => { 'uuid.pm'   => '$(INST_LIBDIR)/uuid.pm',
                            'uuid.pod'  => '$(INST_LIBDIR)/uuid.pod',
                            ($compat ? ('uuid_compat.pm'  => '$(INST_LIBDIR)/../Data/UUID.pm')  : ()),