source: trunk/dports/x11/quartz-wm/Portfile @ 91697

Last change on this file since 91697 was 91697, checked in by ryandesign@…, 5 years ago

cctools, cctools-headers, ld64, quartz-wm: fix use of ${os.arch}

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 91697 2012-04-08 10:22:26Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            quartz-wm
6version         1.3.0
7categories      x11
8maintainers     jeremyhu openmaintainer
9description     Apple's Window Manager for X11
10homepage        http://xquartz.macosforge.org
11platforms       macosx
12long_description quartz-wm is the XQuartz window-manager.
13master_sites    ${homepage}/downloads/src
14license         APSL-2
15
16checksums           sha1    0b13c2864d008894b70c7448ecc64484cea3ebe9 \
17                    rmd160  3c4734bbef6ece88c5efc49d0d78cbd4a79510f8 \
18                    sha256  f0ab7a6f9dd2eb84b46f022f228216e22270f82767b8ea3e5acd5e21048fb2f4
19
20use_bzip2       yes
21
22depends_build   port:pkgconfig  \
23                port:xorg-util-macros
24
25depends_lib     port:xorg-libXinerama \
26                port:xorg-libXrandr \
27                port:xorg-libAppleWM \
28                path:lib/pkgconfig/pixman-1.pc:libpixman
29
30patchfiles \
31        0001-Fix-potential-error-during-make-install.patch
32patch.pre_args  -p1
33
34use_autoreconf  yes
35autoreconf.args -fvi
36
37# http://trac.macports.org/ticket/33515
38if {${os.major} < 9 || ${os.arch} == "powerpc"} {
39    # This is sub-optimal, but it will work for now
40    post-patch {
41        reinplace "/install_name_tool/d" ${worksrcpath}/lib/Makefile.am
42    }
43    post-destroot {
44        system "install_name_tool -change /usr/lib/libquartz-wm-ds.1.dylib ${prefix}/lib/libquartz-wm-ds.1.dylib ${destroot}${prefix}/bin/quartz-wm"
45    }
46} elseif {${os.major} < 10} {
47    depends_build port:cctools
48    depends_skip_archcheck-append cctools
49}
50
51platform darwin 8 {
52    # Tiger's host ld is ancient (cctools based) and won't properly link this project
53    # Use apple-gcc42 with our ld64 to get it to link
54    depends_build port:apple-gcc42 port:ld64
55    depends_skip_archcheck-append apple-gcc42 ld64
56
57    configure.compiler apple-gcc-4.2
58}
59
60configure.args --with-bundle-id-prefix=org.macports
Note: See TracBrowser for help on using the repository browser.