source: trunk/dports/xfce/libxfce4mcs/Portfile @ 47532

Last change on this file since 47532 was 47532, checked in by jeremyhu@…, 12 years ago

libxfce4mcs: Link against MacPorts X11 libs

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 47532 2009-02-28 23:44:47Z jeremyhu@macports.org $
2
3PortSystem 1.0
4
5name            libxfce4mcs
6version         4.4.3
7revision        2
8categories      xfce
9platforms       darwin
10maintainers     afb@macports.org
11description     multi-channel settings management support for xfce
12long_description ${description}
13homepage        http://www.xfce.org/
14master_sites    http://www.ca-us.xfce.org/archive/xfce-${version}/src/
15use_bzip2       yes
16checksums       md5 c50846b0ad090c2434ca4df1d060cc98 \
17                sha1 0f0d43534cae2971ca787ebc698ce6db14c5542d \
18                rmd160 1affe09d193c252cc6818f51aee686072fe9519b
19
20configure.args  --enable-startup-notification
21
22depends_lib     port:libxfce4util \
23                port:startup-notification \
24                port:xorg-libsm \
25                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 TracBrowser for help on using the repository browser.