$NetBSD: patch-aa,v 1.2 2003/03/22 19:13:01 heinz Exp $ --- Makefile.PL.orig Sat Jun 22 11:35:48 2002 +++ Makefile.PL @@ -7,14 +7,15 @@ use Config ; die "DB_File needs Perl 5.004_05 or better. This is $]\n" if $] <= 5.00404; -my $VER_INFO ; +my $VER_INFO = ""; my $LIB_DIR ; my $INC_DIR ; my $DB_NAME ; my $LIBS ; my $COMPAT185 = "" ; -ParseCONFIG() ; +my $DB_CPPFLAGS = $ENV{'DB_CPPFLAGS'}; +$DB_NAME = $ENV{'DB_NAME'}; my @files = ('DB_File.pm', glob "t/*.t") ; UpDowngrade(@files); @@ -40,9 +41,9 @@ $OS2 = "-DOS2" if $Config{'osname'} eq ' WriteMakefile( NAME => 'DB_File', - LIBS => ["-L${LIB_DIR} $LIBS"], + LIBS => ["$LIBS"], #MAN3PODS => {}, # Pods will be built by installman. - INC => "-I$INC_DIR", + INC => "$DB_CPPFLAGS", VERSION_FROM => 'DB_File.pm', XSPROTOARG => '-noprototypes', DEFINE => "-D_NOT_CORE $OS2 $VER_INFO $COMPAT185", @@ -51,7 +52,7 @@ WriteMakefile( 'depend' => { 'Makefile' => 'config.in', 'version$(OBJ_EXT)' => 'version.c'}, 'clean' => { FILES => 'constants.h constants.xs' }, - 'macro' => { INSTALLDIRS => 'perl', my_files => "@files" }, + 'macro' => { my_files => "@files" }, 'dist' => { COMPRESS => 'gzip', SUFFIX => 'gz', DIST_DEFAULT => 'MyDoubleCheck tardist'}, );