aboutsummaryrefslogtreecommitdiffstats
path: root/databases/p5-DBD-cego/files/patch-makefile-pl
blob: e082794b8e9ecd6bd70bb542d98e99052f5180b2 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
--- Makefile.PL-orig    2013-11-02 17:48:46.000000000 +0100
+++ Makefile.PL 2013-11-02 17:52:26.000000000 +0100
@@ -28,49 +28,30 @@
 Getopt::Long::GetOptions(
     $opt,
     "help",
-    "prefix=s",
     "verbose",
     ) || die Usage();
 
-if (! exists $opt->{'prefix'}) 
-{
-  print "Missing prefix, use option --prefix\n"; 
-  die Usage();
-}
-
-use vars qw($loadlibs);
-$loadlibs= "-L" . $opt->{'prefix'} . " -llfc";
 my $so = $Config{so};
 
 WriteMakefile(
     'NAME'          => 'DBD::Cego',
     'VERSION_FROM'  => 'Cego.pm',
-    'PREREQ_PM'     => {DBI => 1.03},
+    'PREREQ_PM'     => {DBI => 1.628},
     'OBJECT'        => '$(O_FILES)',
-    'INC'           => '-I$(DBI_INSTARCH_DIR) -I' . $opt->{'prefix'} . '/include -I' . $opt->{'prefix'} . '/include',
-    'MYEXTLIB'    => $opt->{'prefix'} . "/lib/libcego.$so* " 
-         . $opt->{'prefix'} . "/lib/liblfcxml.$so* " 
-         . $opt->{'prefix'} . "/lib/liblfcbase.$so",
-    "CC" => "g++",
-    "LD" => "g++",
-    "XSPROTOARG" => "-noprototypes",
+    'INC'           => '-I$(DBI_INSTARCH_DIR) -I/usr/local/include',
+    'MYEXTLIB'      => '-lcego -llfcxml -llfcbase',
+    'CCFLAGS'       => '-O2 -pipe -fno-strict-aliasing -fpermissive',
+    'LD'            => '$(CC) -L/usr/local/lib',
+    'XSPROTOARG'    => '-noprototypes',
     'OPTIMIZE'      => '-O3 -DNDEBUG=1',
-    'XSOPT'             => '-C++',
-    'TYPEMAPS'          => ['perlobject.map' ],
-    'LICENSE'  => 'gpl3',
+    'XSOPT'         => '-C++',
+    'TYPEMAPS'      => ['perlobject.map' ],
+    'LICENSE'       => 'gpl3',
     'clean'         => { FILES => 'config.h' },
 );
 
 sub Usage {
-  print STDERR <<"USAGE";
-Usage: perl $0 [options]
-
-Possible options are:
-
-  --prefix=<prefix path>       Use <prefix> for setting up the appropriate prefix path
-                               to find cego libs and includes
-
-USAGE
+  print STDERR "Usage: perl $0 [options]\n";
   exit 1;
 }