]> git.pld-linux.org Git - packages/apache-mod_bt.git/blob - apache-mod_bt-paths.patch
- fix config dir
[packages/apache-mod_bt.git] / apache-mod_bt-paths.patch
1 diff -ur mod_bt-0.0.4-orig/config.mk mod_bt-0.0.4/config.mk
2 --- mod_bt-0.0.4-orig/config.mk 2004-05-25 17:06:49.000000000 -0600
3 +++ mod_bt-0.0.4/config.mk      2004-05-26 10:12:29.915697954 -0600
4 @@ -1,7 +1,7 @@
5  export APXS=apxs
6  export APR_CONFIG=apr-config
7  export CC=gcc
8 -export CFLAGS=-g -Werror -Wall -Wimplicit-function-declaration
9 +export CFLAGS=-g -Werror -Wall -Wimplicit-function-declaration -I/usr/include/db4.2
10  export CPPFLAGS=`$(APR_CONFIG) --cppflags --includes`
11  export LDSHARED=gcc -shared
12  export LDFLAGS=-g `$(APR_CONFIG) --ldflags`
13 diff -ur mod_bt-0.0.4-orig/config.mk~ mod_bt-0.0.4/config.mk~
14 --- mod_bt-0.0.4-orig/config.mk~        2004-05-25 16:18:15.000000000 -0600
15 +++ mod_bt-0.0.4/config.mk~     2004-05-26 10:12:29.916697782 -0600
16 @@ -11,8 +11,8 @@
17  export BUILD_APACHE2=1
18  export BUILD_PERL=1
19  export BUILD_MODPERL=1
20 -export PERL_LIB=/opt/apache2/perl5lib
21 -export PERL_PREFIX=/opt/apache2
22 +#export PERL_LIB=/opt/apache2/perl5lib
23 +#export PERL_PREFIX=/opt/apache2
24  export PERL5LIB:=$(PERL5LIB):$(PERL_LIB)
25  export POD2HTML=pod2html
26  
27 diff -ur mod_bt-0.0.4-orig/src/libbtt/Net-BitTorrent-LibBTT/Makefile.PL mod_bt-0.0.4/src/libbtt/Net-BitTorrent-LibBTT/Makefile.PL
28 --- mod_bt-0.0.4-orig/src/libbtt/Net-BitTorrent-LibBTT/Makefile.PL      2004-05-24 17:38:50.000000000 -0600
29 +++ mod_bt-0.0.4/src/libbtt/Net-BitTorrent-LibBTT/Makefile.PL   2005-12-26 21:04:41.000000000 +0200
30 @@ -5,6 +5,10 @@
31  
32  my $apr = `$ENV{APR_CONFIG} --link-ld`;
33  chomp($apr);
34 +my $apr_includes = `$ENV{APR_CONFIG} --includes`;
35 +chomp($apr_includes);
36 +my $apu_includes = `apu-1-config --includes`;
37 +chomp($apu_includes);
38  
39  WriteMakefile(
40      NAME              => 'Net::BitTorrent::LibBTT',
41 @@ -15,7 +19,7 @@
42         AUTHOR         => 'Tyler \'Crackerjack\' MacDonald <faraway@>') : ()),
43      LIBS              => ['-ldb-4.2', '-lapr-0'], # e.g., '-lm'
44      DEFINE            => '', # e.g., '-DHAVE_SOMETHING'
45 -    INC               => '-I. -I.. -I../..' . `$ENV{APR_CONFIG} --includes`, # e.g., '-I. -I/usr/include/other'
46 +    INC               => "-I. -I.. -I../.. -I/usr/include/db4.2 $apr_includes $apu_includes",
47      dynamic_lib                => { OTHERLDFLAGS         => "$apr ../libbtt.a" }
48         # Un-comment this if you add C files to link with later:
49      # OBJECT            => '../libbtt.a $(O_FILES)', # link all the C files too
50 --- mod_bt-0.0.4/config.mk~     2005-12-26 20:53:20.000000000 +0200
51 +++ mod_bt-0.0.4/config.mk      2005-12-26 20:53:45.000000000 +0200
52 @@ -1,5 +1,5 @@
53  export APXS=apxs
54 -export APR_CONFIG=apr-config
55 +export APR_CONFIG=apr-1-config
56  export CC=gcc
57  export CFLAGS=-g -Werror -Wall -Wimplicit-function-declaration -I/usr/include/db4.2
58  export CPPFLAGS=`$(APR_CONFIG) --cppflags --includes`
This page took 0.053832 seconds and 3 git commands to generate.