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

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

remove old patch missed in merge

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