summaryrefslogtreecommitdiff
path: root/www/ap2-perl/patches
diff options
context:
space:
mode:
authorepg <epg>2003-06-03 19:17:19 +0000
committerepg <epg>2003-06-03 19:17:19 +0000
commit69e5a45f61b2b1703407b42fcfabe1f4bbaa0bbf (patch)
tree84c528e455d7c0596374f26dd3c5054ba814d0ad /www/ap2-perl/patches
parentc57968c51888e5a38dbd85ea3ac4914225830ae5 (diff)
downloadpkgsrc-69e5a45f61b2b1703407b42fcfabe1f4bbaa0bbf.tar.gz
Teach ap2-perl and ap2-php4 how to find apr's includes. They need to
find this separately now that apr is provided in a separate package.
Diffstat (limited to 'www/ap2-perl/patches')
-rw-r--r--www/ap2-perl/patches/patch-aa37
1 files changed, 37 insertions, 0 deletions
diff --git a/www/ap2-perl/patches/patch-aa b/www/ap2-perl/patches/patch-aa
new file mode 100644
index 00000000000..3ac748331b3
--- /dev/null
+++ b/www/ap2-perl/patches/patch-aa
@@ -0,0 +1,37 @@
+$NetBSD: patch-aa,v 1.1 2003/06/03 19:17:20 epg Exp $
+
+--- lib/Apache/Build.pm.orig Fri Jan 10 23:16:12 2003
++++ lib/Apache/Build.pm
+@@ -771,6 +771,14 @@ my %wanted_apr_config = map { $_, 1} qw(
+ HAS_INLINE HAS_FORK
+ );
+
++sub get_apr_includes {
++ $_ = `apr-config --includes`;
++ chomp;
++ s/^\s*-I//;
++ s/\s*$//;
++ return $_;
++}
++
+ sub get_apr_config {
+ my $self = shift;
+
+@@ -779,7 +787,7 @@ sub get_apr_config {
+ my $dir = $self->ap_includedir;
+
+ my $header;
+- for my $d ($dir, "$dir/../srclib/apr/include") {
++ for my $d ($dir, "$dir/../srclib/apr/include", get_apr_includes()) {
+ $header = "$d/apr.h";
+ last if -e $header;
+ }
+@@ -1150,6 +1158,8 @@ sub includes {
+ my @inc = $self->file_path("src/modules/perl", "xs");
+
+ push @inc, $self->mp_include_dir;
++
++ push @inc, get_apr_includes();
+
+ unless ($self->ap_prefix_is_source_tree) {
+ my $ainc = $self->apxs('-q' => 'INCLUDEDIR');