Changeset 47565 for trunk/dports/math


Ignore:
Timestamp:
Mar 1, 2009, 1:08:33 AM (11 years ago)
Author:
jeremyhu@…
Message:

R: Update AC_X_PATH workaround

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/R/Portfile

    r46636 r47565  
    4444universal_variant no
    4545
    46 # autoreconfing to pick up X11 is not playing nicely, so do this instead.
    47 # hopefully upsteream will use a newer autoconf next time...
    48 configure.cppflags-append -I${x11prefix}/include
    49 configure.ldflags-append -L${x11prefix}/lib
     46# AC_X_PATH blindly asks xmkmf where X11 is, and it always uses /usr/X11R6.
     47# This block helps us link correctly and setup our pc files correctly when we
     48# are +system_x11 and x11prefix is somewhere non-standard and should cause
     49# AC_X_PATH to let us setup our CPPFLAGS and LDFLAGS without interference
     50configure.args-append --x-include=${prefix}/include --x-lib=${prefix}/lib
     51if { ![file exists ${prefix}/lib/pkgconfig/x11.pc] } {
     52    pre-configure {
     53        configure.cppflags-append -I${x11prefix}/include
     54        configure.ldflags-append  -L${x11prefix}/lib
     55    }
     56}
    5057
    5158variant gcc42 description {Build with gcc42} {
Note: See TracChangeset for help on using the changeset viewer.