# $Id: Portfile 47532 2009-02-28 23:44:47Z jeremyhu@macports.org $ PortSystem 1.0 name libxfce4mcs version 4.4.3 revision 2 categories xfce platforms darwin maintainers afb@macports.org description multi-channel settings management support for xfce long_description ${description} homepage http://www.xfce.org/ master_sites http://www.ca-us.xfce.org/archive/xfce-${version}/src/ use_bzip2 yes checksums md5 c50846b0ad090c2434ca4df1d060cc98 \ sha1 0f0d43534cae2971ca787ebc698ce6db14c5542d \ rmd160 1affe09d193c252cc6818f51aee686072fe9519b configure.args --enable-startup-notification depends_lib port:libxfce4util \ port:startup-notification \ port:xorg-libsm \ port:xorg-libX11 # AC_X_PATH blindly asks xmkmf where X11 is, and it always uses /usr/X11R6. # This block helps us link correctly and setup our pc files correctly when we # are +system_x11 and x11prefix is somewhere non-standard and should cause # AC_X_PATH to let us setup our CPPFLAGS and LDFLAGS without interference configure.args-append --x-include=${prefix}/include --x-lib=${prefix}/lib if { ![file exists ${prefix}/lib/pkgconfig/x11.pc] } { pre-configure { configure.cppflags-append -I${x11prefix}/include configure.ldflags-append -L${x11prefix}/lib } # And this will similarly get ports that use pkgconfig to find our pkgconfig-less libX11 post-destroot { if {![file exists ${x11prefix}/lib/pkgconfig/x11.pc]} { foreach pc [glob ${destroot}${prefix}/lib/pkgconfig/*.pc] { reinplace "s:-lX11:-L${prefix}/lib -L${x11prefix}/lib -lX11:g" ${pc} } } } }