summaryrefslogtreecommitdiff
path: root/strata/apache-httpd-server/apr.morph
blob: 87e05910ac84357f6364793b5fc638558288b6ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: apr
kind: chunk
configure-commands:
- ./buildconf
- |
  ./configure --prefix="$PREFIX" \
              --disable-static \
              --enable-threads \
              --with-installbuilddir="$PREFIX"/share/apr-1/build
build-commands:
- make
install-commands:
- PREFIX="$PREFIX" DESTDIR="$DESTDIR" make install
# Install files required for apr-util and httpd
- |
  for file in find_apr.m4 apr_common.m4 install.sh gen-build.py get-version.sh \
              config.guess config.sub; do \
    cp build/$file "$DESTDIR$PREFIX"/share/apr-1/build/$file ; \
  done
# Create a symlink in the build directory to the include directory (this is needed for httpd)
- ln -sf /usr/include/apr-2 "$DESTDIR$PREFIX"/share/apr-1/build/
post-install-commands:
# Copy apr headers needed for mod_wsgi
- cp include/private/apr_support.h "$DESTDIR$PREFIX"/include/apr-2
- cp include/arch/unix/apr_private.h "$DESTDIR$PREFIX"/include/apr-2