source: trunk/dports/x11/xinit/Portfile

Last change on this file was 149073, checked in by jeremyhu@…, 18 months ago

xinit: Add support for enabling IGLX and fix support for TCP connections

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.5 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 149073 2016-05-28 21:28:50Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                xinit
7version             1.3.4
8revision            3
9categories          x11
10platforms           darwin
11maintainers         jeremyhu openmaintainer
12license             MIT
13description         X11 startup script processor
14long_description    xinit is responsible for configuring the initial environment \
15                    when X11 starts up.
16
17homepage            http://www.x.org
18master_sites        xorg:individual/app/
19
20checksums           sha1    de3469080d73ced1f7d7a1803e813bc6ea352072 \
21                    rmd160  ee5b21766556c4a16e2538700b432a11890d7829 \
22                    sha256  75d88d7397a07e01db253163b7c7a00b249b3d30e99489f2734cac9a0c7902b3
23
24use_bzip2           yes
25use_parallel_build  yes
26
27depends_run         bin:xauth:xauth \
28                    bin:xset:xset \
29                    bin:xrdb:xrdb \
30                    port:mkfontscale \
31                    port:mkfontdir
32
33depends_build       port:pkgconfig \
34                    port:xorg-util-macros \
35                    port:tradcpp
36
37depends_lib         port:xorg-libX11
38
39patchfiles-append \
40    0001-launchd-Install-binaries-into-libexecdir.patch \
41    0002-startx-Add-listen-tcp-if-nolisten_tcp-is-disabled-fo.patch \
42    0003-startx-Add-support-for-enabling-IGLX-for-XQuartz.patch
43
44if {[vercmp ${os.version} 10.3.0] < 0} {
45    patchfiles-append disable-launchagent.patch
46}
47
48patch.pre_args -p1
49
50use_autoreconf  yes
51autoreconf.args -fvi
52
53configure.args      --disable-silent-rules \
54                    --with-launchd-id-prefix=org.macports
55
56configure.args-append   RAWCPP=${prefix}/bin/tradcpp
57
58post-destroot {
59    xinstall -d ${destroot}${prefix}/etc/X11/xinit/xinitrc.d
60    eval xinstall -m 755 [glob ${filespath}/xinitrc.d/*.sh] ${destroot}${prefix}/etc/X11/xinit/xinitrc.d
61    xinstall -m 755 ${filespath}/font_cache.sh ${destroot}${prefix}/bin/font_cache
62
63    eval reinplace "s|__PREFIX__|${prefix}|g" \
64        [glob ${destroot}${prefix}/etc/X11/xinit/xinitrc.d/*.sh] \
65        ${destroot}${prefix}/bin/font_cache
66}
67
68platform darwin {
69    if {${os.major} > 9} {
70        # OS X 10.6.3 was the first version whose native X11 allowed the modern socket naming
71        # for better X11 server coexistence, so we require it for installing the LaunchAgent
72        if {[vercmp ${os.version} 10.3.0] < 0} {
73            notes {
74                To use MacPorts' X11 as the default server, install\
75                xorg-server, load the LaunchAgent with the following\
76                command, log out, and log back in.
77
78                    $ launchctl load -w /Library/LaunchAgents/org.macports.startx.plist
79
80                This will be remembered across port updates on Snow\
81                Leopard and later. Note that doing this may cause the\
82                Apple-provided X11 to fail to launch.}
83        } else {
84            notes {
85                To use MacPorts' X11 as the default server, install\
86                xorg-server, log out, and log back in.}
87        }
88    }
89
90    post-activate {
91        system "launchctl load /Library/LaunchDaemons/org.macports.privileged_startx.plist"
92    }
93
94    pre-deactivate {
95        system "launchctl unload /Library/LaunchDaemons/org.macports.privileged_startx.plist"
96    }
97}
98
99install.asroot      yes
100
101livecheck.type      regex
102livecheck.regex     ${name}-(\[\\d.\]+)${extract.suffix}
103livecheck.url       http://xorg.freedesktop.org/archive/individual/app/?C=M&O=D
104
Note: See TracBrowser for help on using the repository browser.