Ticket #27763: poco_1.3.6p2_compiler_arch.patch

File poco_1.3.6p2_compiler_arch.patch, 986 bytes (added by nimahoda@…, 13 years ago)
  • Portfile

    old new  
    55
    66name            poco
    77version         1.3.6p2
     8revision        1
    89categories      devel
    910maintainers     nox openmaintainer
    1011platforms       darwin
     
    3031                    sha1    2167220ad0c354c3ae8a9ea1be4a7d91d73976a3 \
    3132                    rmd160  78b82bd8dd19dd4bb599543d860a1aae8585a64f
    3233
    33 set config      Darwin
    3434set omit        {NetSSL_OpenSSL Data/ODBC Data/MySQL Crypto}
    3535
    36 configure.args  --no-samples
     36# Poco build doesn't support the standard --target config option.
     37if {$build_arch == "x86_64"} {
     38    set config      Darwin_x86_64
     39} else {
     40    set config      Darwin
     41}
     42
     43configure.args          --no-samples --config=${config}
     44
     45# Make sure poco build uses the right compiler.
     46build.args-append       CC=${configure.cc} \
     47                        CXX=${configure.cxx} \
     48                        CPP=${configure.cpp}
    3749
    3850pre-configure {
    3951    configure.args-append   --omit=[join ${omit} ,]