mirror of
https://git.freebsd.org/ports.git
synced 2025-06-29 08:30:37 -04:00
- Bump port revision PR: ports/156623 Submitted by: Kurt Jaeger <fbsd-ports _at_ opsec.eu> (maintainer)
51 lines
1.5 KiB
Text
51 lines
1.5 KiB
Text
--- Makefile.PL 2010-09-17 10:14:49.000000000 +0200
|
|
+++ /tmp/bla/Makefile.PL 2011-04-24 22:00:03.000000000 +0200
|
|
@@ -25,30 +25,21 @@
|
|
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";
|
|
+# use vars qw($loadlibs);
|
|
+# $loadlibs= "-L/usr/local/lib";
|
|
|
|
WriteMakefile(
|
|
'NAME' => 'DBD::Cego',
|
|
'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',
|
|
+ 'MYEXTLIB' => '-lcego -llfcxml -llfc',
|
|
"CC" => "g++",
|
|
- "LD" => "g++",
|
|
+ "LD" => "g++ -L/usr/local/lib",
|
|
"XSPROTOARG" => "-noprototypes",
|
|
'OPTIMIZE' => '-O6 -DNDEBUG=1',
|
|
'XSOPT' => '-C++',
|
|
@@ -59,12 +50,6 @@
|
|
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
|
|
exit 1;
|
|
}
|