Changeset 47532


Ignore:
Timestamp:
Feb 28, 2009, 11:44:47 PM (12 years ago)
Author:
jeremyhu@…
Message:

libxfce4mcs: Link against MacPorts X11 libs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/xfce/libxfce4mcs/Portfile

    r47418 r47532  
    55name            libxfce4mcs
    66version         4.4.3
    7 revision        1
     7revision        2
    88categories      xfce
    99platforms       darwin
     
    2424                port:xorg-libsm \
    2525                port:xorg-libX11
     26
     27# AC_X_PATH blindly asks xmkmf where X11 is, and it always uses /usr/X11R6.
     28# This block helps us link correctly and setup our pc files correctly when we   
     29# are +system_x11 and x11prefix is somewhere non-standard and should cause
     30# AC_X_PATH to let us setup our CPPFLAGS and LDFLAGS without interference
     31configure.args-append --x-include=${prefix}/include --x-lib=${prefix}/lib
     32if { ![file exists ${prefix}/lib/pkgconfig/x11.pc] } {
     33    pre-configure {
     34        configure.cppflags-append -I${x11prefix}/include
     35        configure.ldflags-append  -L${x11prefix}/lib
     36    }
     37
     38    # And this will similarly get ports that use pkgconfig to find our pkgconfig-less libX11
     39    post-destroot {
     40        if {![file exists ${x11prefix}/lib/pkgconfig/x11.pc]} {
     41            foreach pc [glob ${destroot}${prefix}/lib/pkgconfig/*.pc] {
     42                reinplace "s:-lX11:-L${prefix}/lib -L${x11prefix}/lib -lX11:g" ${pc}
     43            }
     44        }
     45    }
     46}
     47
Note: See TracChangeset for help on using the changeset viewer.