Ticket #31122: add-mpmitk.patch

File add-mpmitk.patch, 3.2 KB (added by neverpanic (Clemens Lang), 13 years ago)

Patch against $(port dir apache2)

  • files/mpmitk-fix-add-mpm-to-build-system.patch

     
     1--- apache2.2-mpm-itk-2.2.17-01.patch.orig      2011-09-05 14:35:41.000000000 +0200
     2+++ apache2.2-mpm-itk-2.2.17-01.patch   2011-09-05 14:36:22.000000000 +0200
     3@@ -1938,8 +1938,8 @@
     4  AC_MSG_CHECKING(which MPM to use)
     5  AC_ARG_WITH(mpm,
     6  APACHE_HELP_STRING(--with-mpm=MPM,Choose the process model for Apache to use.
     7--                          MPM={beos|event|worker|prefork|mpmt_os2}),[
     8-+                          MPM={beos|event|worker|prefork|mpmt_os2|itk}),[
     9+-                          MPM={beos|event|worker|prefork|mpmt_os2|winnt}),[
     10++                          MPM={beos|event|worker|prefork|mpmt_os2|winnt|itk}),[
     11    APACHE_MPM=$withval
     12  ],[
     13    if test "x$APACHE_MPM" = "x"; then
  • Portfile

     
    2222use_bzip2        yes
    2323use_parallel_build  yes
    2424
    25 checksums        rmd160  299d1a8a9f3a6eb925d63ce96fa8ea4a06ec1f17 \
     25checksums        httpd-${version}.tar.bz2 \
     26                 rmd160  299d1a8a9f3a6eb925d63ce96fa8ea4a06ec1f17 \
    2627                 sha256  1ee914855249b09d9cd2e20e98a0ab02f15c270fe277d4a5c9b62975479fc81e
    2728
    2829depends_lib      port:apr \
     
    142143        }
    143144}
    144145
    145 variant preforkmpm conflicts workermpm eventmpm description {Use prefork MPM} {
     146variant preforkmpm conflicts workermpm eventmpm itkmpm description {Use prefork MPM} {
    146147        configure.args-append --with-mpm=prefork
    147148}
    148149
    149 variant workermpm conflicts preforkmpm eventmpm description {Use worker MPM} {
     150variant workermpm conflicts preforkmpm eventmpm itkmm description {Use worker MPM} {
    150151        configure.args-append --with-mpm=worker
    151152}
    152153
    153 variant eventmpm conflicts preforkmpm workermpm description {Use event MPM (experimental)} {
     154variant eventmpm conflicts preforkmpm workermpm itkmpm description {Use event MPM (experimental)} {
    154155        configure.args-append --with-mpm=event
    155156}
    156157
    157 if {![variant_isset workermpm] && ![variant_isset eventmpm]} {
     158variant itkmpm conflicts preformmpm workermpm eventmpm description {Use ITK-MPM from http://mpm-itk.sesse.net/ (experimental)} {
     159    configure.args-append   --with-mpm=itk
     160    master_sites-append     http://mpm-itk.sesse.net/:mpmitk
     161    distfiles-append        apache2.2-mpm-itk-2.2.17-01.patch:mpmitk
     162    checksums-append        apache2.2-mpm-itk-2.2.17-01.patch \
     163                            rmd160  3c6cf5d19cf248ebcc23704f1a7a72b3d9046f97 \
     164                            sha256  4da8b0549d9c099f8542b1c7378383b4f74a9ecb906b5677d2fa5c134d374b8a
     165    patchfiles-append       mpmitk-fix-add-mpm-to-build-system.patch
     166    post-extract {
     167        file copy -- "${distpath}/apache2.2-mpm-itk-2.2.17-01.patch" "${worksrcpath}"
     168    }
     169    post-patch {
     170        system "cd ${worksrcpath} && patch -p1 <apache2.2-mpm-itk-2.2.17-01.patch"
     171    }
     172    pre-configure {
     173        system "cd ${worksrcpath} && autoreconf"
     174    }
     175}
     176
     177if {![variant_isset workermpm] && ![variant_isset eventmpm] && ![variant_isset itkmpm]} {
    158178        default_variants +preforkmpm
    159179}
    160180