Ticket #8415: lighttpd.patch

File lighttpd.patch, 1.2 KB (added by joe@…, 18 years ago)

patch to add mysql5 support, and fix lua linkage for cml variant

  • Portfile

    old new  
    2929        configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
    3030}
    3131
    32 variant mysql {
     32variant mysql4 {
    3333   depends_lib-append    lib:libmysqlclient:mysql4
    3434   configure.args-append --with-mysql=${prefix}/bin/mysql_config
    3535
     
    3939   }
    4040}
    4141
     42variant mysql5 {
     43   depends_lib-append    lib:libmysqlclient:mysql5
     44   configure.args-append --with-mysql=${prefix}/bin/mysql_config5
     45
     46   post-configure {
     47      reinplace "s|<mysql/mysql.h>|\"${prefix}/include/mysql5/mysql/mysql.h\"|g" \
     48                "${worksrcpath}/src/mod_mysql_vhost.c"
     49   }
     50}
     51
     52
    4253variant ssl {
    4354   depends_lib-append   bin:openssl:openssl
    4455   configure.args-append --with-openssl=${prefix}/include/openssl
     
    5061                        bin:memcached:memcached \
    5162                        bin:pkgconfig:pkgconfig
    5263                       
    53    configure.args-append --with-lua \
     64   configure.args-append --with-lua=/opt/local \
    5465                         --with-memcache
     66
     67   configure.env-append LDFLAGS=-L/opt/local/lib
    5568}
    5669
    5770variant davprops {