source: trunk/dports/x11/XFree86/Portfile

Last change on this file was 57375, checked in by ryandesign@…, 8 years ago

Change deprecated livecheck.check to livecheck.type
See http://lists.macosforge.org/pipermail/macports-dev/2009-August/009699.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.2 KB
Line 
1# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name        XFree86
6version     4.7.0
7categories  x11
8maintainers nomaintainer
9homepage    http://www.xfree86.org/
10
11description X11R6 windowing system
12long_description \
13    The XFree86 project's X window system implementation
14
15platforms       darwin freebsd
16master_sites    xfree:${version}/source/
17
18distfiles \
19    ${distname}-src-1.tgz \
20    ${distname}-src-2.tgz \
21    ${distname}-src-3.tgz \
22    ${distname}-src-4.tgz \
23    ${distname}-src-5.tgz
24checksums \
25    ${distname}-src-1.tgz md5 e452e53240d16091abdc4f4bd2967ebd \
26    ${distname}-src-2.tgz md5 db68bab296cff797c1ae399f683905f2 \
27    ${distname}-src-3.tgz md5 4787c740ee8ae61a294f488606ced230 \
28    ${distname}-src-4.tgz md5 e622168021c7e8ca60928fbb9febdae5 \
29    ${distname}-src-5.tgz md5 05a3f3ce703df2fd24112cb8e9d86f73
30
31patchfiles      patch-freetype.h \
32                patch-glxcmds.c \
33                patch-Xtranssock.c.diff \
34                patch-decompress.c.diff
35post-patch {
36    set hostfd [open "${worksrcpath}/config/cf/host.def" a+]
37    puts $hostfd "#define ProjectRoot               ${prefix}"
38    puts $hostfd "#define NothingOutsideProjectRoot YES"
39    puts $hostfd "#define EtcX11Directory           \"${prefix}/etc/X11\""
40    puts $hostfd "#define StandardIncludes          \"-I${workpath}/include\""
41    puts $hostfd "#define FontconfigFontsConfDir    \"${prefix}/etc/fonts\""
42    close $hostfd
43}
44
45prefix                  /usr/X11R6
46worksrcdir              xc
47
48use_configure           no
49
50build.target            World
51destroot.target         install install.man
52destroot.violate_mtree  yes
53
54platform darwin {
55
56    patchfiles-append \
57        patch-XTerm.ad
58    post-patch {
59        file mkdir "${workpath}/include"
60        file link -symbolic "${workpath}/include/security" "/usr/include/pam"
61    }
62}
63
64
65platform puredarwin {
66
67    post-patch {
68        set hostfd [open "${worksrcpath}/config/cf/host.def" a+]
69        puts $hostfd "#define DarwinQuartzSupport NO"
70        puts $hostfd "#define BuildGlxExt         YES"
71        puts $hostfd "#define BuildGLXLibrary     YES"
72        close $hostfd
73    }
74}
75
76platform macosx {
77
78    # Should also check for cookie crumbs in the keyboard
79    pre-fetch {
80        if { [file exists ${prefix}/bin/Xquartz] } {
81            if { ![file exists ${prefix}/include/X11/X.h] } {
82                return -code error "
83
84                    You have an Apple X11 installation already.
85                        MacPorts will not overwrite it.
86
87                    If you wish to use Apple X11,
88                        install the X11SDK included with Xcode tools.
89
90                    If you really want to use XFree86 instead,
91                        please move it aside first :
92
93                            sudo mv $prefix ${prefix}.apple
94                "
95            } else {
96                return -code error "
97
98                    You have an Apple X11 installation already.
99                        MacPorts will not overwrite it.
100
101                    If you really want to use XFree86 instead,
102                        please move it aside first :
103
104                            sudo mv $prefix ${prefix}.apple
105                "
106            }
107        } elseif { [file exists ${prefix}/include/X11/X.h] } {
108            return -code error "
109
110                    You have an Apple X11SDK installation already.
111                        MacPorts will not overwrite it.
112
113                    If you wish to use Apple X11,
114                        install it from your Mac OS X install disc.
115
116                    If you really want to use XFree86 instead,
117                        please move it aside first :
118
119                            sudo mv $prefix ${prefix}.apple
120            "
121        }
122    }
123
124     post-destroot {
125        xinstall -d ${destroot}/Applications/MacPorts
126        ln -s ${prefix}/bin/XDarwin.app ${destroot}/Applications/MacPorts
127    }
128}
129
130# No attempt has yet been made to allow XFree86 to build universal. Feel free
131# to attempt. The default universal variant is merely being disabled here
132# because it does not function with ports that do not use configure, and
133# leaving it enabled prevents the universal installation of any other ports
134# that depend on XFree86, even if they would otherwise succeed. See #12137.
135universal_variant   no
136# Disable livecheck
137livecheck.type  none
Note: See TracBrowser for help on using the repository browser.