freebsd-ports/databases/p5-DBD-cego/files/patch-makefile-pl

44 lines
1.3 KiB
Text
Raw Normal View History

--- Makefile.PL.orig 2010-09-17 10:14:49.000000000 +0200
+++ Makefile.PL 2010-09-17 21:51:58.000000000 +0200
@@ -29,12 +29,6 @@
"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";
@@ -43,10 +37,8 @@
'VERSION_FROM' => 'Cego.pm',
'PREREQ_PM' => {DBI => 1.03},
'OBJECT' => '$(O_FILES)',
- 'INC' => '-I$(DBI_INSTARCH_DIR) -I' . $opt->{'prefix'} . '/include -I' . $opt->{'prefix'} . '/include',
- 'MYEXTLIB' => $opt->{'prefix'} . "/lib/libcego.a "
- . $opt->{'prefix'} . "/lib/liblfcxml.a "
- . $opt->{'prefix'} . "/lib/liblfc.a",
+ 'INC' => '-I$(DBI_INSTARCH_DIR) -I/usr/local/include -I' . $opt->{'prefix'} . '/include',
+ 'MYEXTLIB' => ' -llfc -llfcxml -lcego ',
"CC" => "g++",
"LD" => "g++",
"XSPROTOARG" => "-noprototypes",
@@ -58,13 +50,7 @@
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: perl $0
USAGE
exit 1;
}