Ticket #14857: Portfile.diff

File Portfile.diff, 2.4 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 16 years ago)
  • Portfile

    old new  
    2020                rmd160 5290770ae1a97b022d93f4596aa612130fee6187
    2121
    2222depends_lib     port:apr port:expat \
    23                 port:libiconv port:db44 \
     23                port:libiconv port:db46 \
    2424                port:sqlite3
    2525
    2626configure.args  --with-apr=${prefix}/bin/apr-1-config --with-expat=${prefix} \
    27                 --with-iconv=${prefix} --with-berkeley-db=${prefix}/include:${prefix}/lib/db44 \
     27                --with-iconv=${prefix} --with-berkeley-db=${prefix}/include:${prefix}/lib/db46 \
    2828                --without-mysql --without-pgsql --with-sqlite3=${prefix}
    2929
    3030test.run        yes
     
    3232test.env        DYLD_LIBRARY_PATH=${worksrcpath}/.libs
    3333
    3434variant no_bdb  description {Build without BerkeleyDB support} {
    35                         depends_lib-delete port:db44
    36                         configure.args-delete --with-berkeley-db=${prefix}/include:${prefix}/lib/db44
     35                        depends_lib-delete port:db46
     36                        configure.args-delete --with-berkeley-db=${prefix}/include:${prefix}/lib/db46
    3737                        configure.args-append --without-berkeley-db
    3838                }
    3939
     
    5151                                        --with-ldap-lib=${prefix}/lib
    5252                        }
    5353
    54 set extralibs   "-L${prefix}/lib/db44"
     54set extralibs   "-L${prefix}/lib/db46"
    5555
    5656pre-configure   {
    5757                        reinplace "s|^Libs: |Libs: ${extralibs} |" $worksrcpath/apr-util.pc.in
    5858                }
    5959
    60 variant postgresql82    description {Build with postgres support (using postgresql v8.2)} {
     60variant postgresql82    description {Build with postgres support (using postgresql v8.2)} conflicts postgresql83 {
    6161                                depends_lib-append port:postgresql82
    6262                                configure.args-delete --without-pgsql
    6363                                configure.args-append --with-pgsql=yes
     
    7272                                }
    7373                        }
    7474
     75variant postgresql83    description {Build with postgres support (using postgresql v8.3)} conflicts postgresql82 {
     76                                depends_lib-append port:postgresql83
     77                                configure.args-delete --without-pgsql
     78                                configure.args-append --with-pgsql=yes
     79                                configure.cppflags-append "-I${prefix}/include/postgresql83"
     80                                configure.ldflags-append "-L${prefix}/lib/postgresql83"
     81                                post-patch      {
     82                                        set extralibs "${extralibs} -L${prefix}/lib/postgresql83"
     83                                        reinplace "s|^INCLUDES = |INCLUDES = -I@prefix@/include/postgresql83 |" \
     84                                                $worksrcpath/Makefile.in
     85                                        reinplace "s|^APRUTIL_LDFLAGS = |APRUTIL_LDFLAGS = -L@prefix@/lib/postgresql83 |" \
     86                                                $worksrcpath/Makefile.in
     87                                }
     88                        }
     89
    7590livecheck.check regex
    7691livecheck.url   http://apache.org/dist/apr/
    7792livecheck.regex {<a href="#aprutil">APR-util (\d+(?:\.\d+)*) is the latest available version</a>}