source: trunk/dports/xfce/libxfcegui4/Portfile @ 47596

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

mass upgrade from Xfce 4.4.3 to Xfce 4.6.0

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 47596 2009-03-01 12:00:54Z afb@macports.org $
2
3PortSystem 1.0
4
5name            libxfcegui4
6version         4.6.0
7categories      xfce
8platforms       darwin
9maintainers     afb@macports.org
10description     various gtk widgets for xfce
11long_description ${description}
12homepage        http://www.xfce.org/
13master_sites    http://www.ca-us.xfce.org/archive/xfce-${version}/src/
14use_bzip2       yes
15checksums       md5 8627ae4fad26289f55f0afbebe238bf5 \
16                sha1 d8a3e86f90ad026c4a9fa369c9c3f6d4f3f6fd06 \
17                rmd160 fd6f196e001c010aef592a4dd9cd96b8f28f44cc
18
19configure.args  --enable-startup-notification
20
21depends_lib     port:libxfce4util \
22                port:libglade2 \
23                port:gtk-xfce-engine \
24                port:libxml2 \
25                port:startup-notification
26
27patchfiles      patch-environ.diff
28
29# AC_X_PATH blindly asks xmkmf where X11 is, and it always uses /usr/X11R6.
30# This block helps us link correctly and setup our pc files correctly when we   
31# are +system_x11 and x11prefix is somewhere non-standard and should cause
32# AC_X_PATH to let us setup our CPPFLAGS and LDFLAGS without interference
33configure.args-append --x-include=${prefix}/include --x-lib=${prefix}/lib
34if { ![file exists ${prefix}/lib/pkgconfig/x11.pc] } {
35    pre-configure {
36        configure.cppflags-append -I${x11prefix}/include
37        configure.ldflags-append  -L${x11prefix}/lib
38    }
39
40    # And this will similarly get ports that use pkgconfig to find our pkgconfig-less libX11
41    post-destroot {
42        if {![file exists ${x11prefix}/lib/pkgconfig/x11.pc]} {
43            foreach pc [glob ${destroot}${prefix}/lib/pkgconfig/*.pc] {
44                reinplace "s:-lX11:-L${prefix}/lib -L${x11prefix}/lib -lX11:g" ${pc}
45            }
46        }
47    }
48}
49
Note: See TracBrowser for help on using the repository browser.