source: trunk/dports/x11/xorg-server/Portfile

Last change on this file was 152484, checked in by jeremyhu@…, 10 months ago

xorg-server: Blacklist newer clang versions because of a compiler bug

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.0 KB
Line 
1# $Id: Portfile 152484 2016-09-11 06:13:07Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            xorg-server
6conflicts       xorg-server-devel
7set my_name     xorg-server
8version         1.18.4
9revision        1
10categories      x11 devel
11license         X11
12maintainers     jeremyhu openmaintainer
13description     The X.org / Xquartz X server.
14homepage        http://www.x.org
15platforms       darwin macosx
16long_description The X.org X server allows you to run X11 applications on your computer.
17
18#master_sites   http://xquartz.macosforge.org/downloads/src
19master_sites    http://xorg.freedesktop.org/archive/individual/xserver/
20#master_sites    xorg:individual/xserver/
21
22dist_subdir     ${my_name}
23distname        ${my_name}-${version}
24
25checksums           rmd160  6f58d84d3bbc59a773e6a2e1eafc208827a5923f \
26                    sha256  278459b2c31d61a15655d95a72fb79930c480a6bb8cf9226e48a07df8b1d31c8
27
28use_bzip2       yes
29use_parallel_build yes
30
31# Yes, mesa is a *BUILD* dependency
32depends_build \
33        port:pkgconfig \
34        port:mesa \
35        port:xorg-applewmproto \
36        port:xorg-bigreqsproto \
37        port:xorg-damageproto \
38        port:xorg-fixesproto \
39        port:xorg-fontsproto \
40        port:xorg-glproto \
41        port:xorg-inputproto \
42        port:xorg-presentproto \
43        port:xorg-randrproto \
44        port:xorg-recordproto \
45        port:xorg-renderproto \
46        port:xorg-resourceproto \
47        port:xorg-scrnsaverproto \
48        port:xorg-videoproto \
49        port:xorg-xcmiscproto \
50        port:xorg-xproto \
51        port:xorg-xextproto \
52        port:xorg-xineramaproto \
53        port:xorg-xtrans
54
55# This xinit dependency needs to be port: not bin: because we specifically run ${prefix}/bin/startx from bundle-main.c
56depends_run \
57        port:xinit \
58        port:quartz-wm \
59        port:xorg-fonts \
60        port:xkeyboard-config
61
62depends_lib \
63        path:lib/pkgconfig/pixman-1.pc:libpixman \
64        port:xorg-libxkbfile \
65        port:xorg-libXfont \
66        port:xorg-libXt \
67        port:xorg-libAppleWM \
68        port:xorg-libXfixes
69
70# https://trac.macports.org/ticket/36055
71# https://llvm.org/bugs/show_bug.cgi?id=30346
72compiler.blacklist gcc-4.0 macports-clang-3.8 macports-clang-3.9 macports-clang-devel
73
74configure.args --with-apple-applications-dir=${applications_dir} \
75        --with-bundle-id-prefix=org.macports \
76        --without-dtrace \
77        --without-doxygen \
78        --without-fop \
79        --without-xmlto \
80        --disable-devel-docs \
81        --with-sha1=CommonCrypto \
82        --disable-dri2 \
83        --disable-dri3
84
85# GL/internal/dri_interface.h is missing in prefix (provided by libdrm for the xorg DDX... not helpful for us)
86configure.cppflags-append -I/usr/include -I${filespath}/dri -F${configure.sdkroot}/System/Library/Frameworks/ApplicationServices.framework/Frameworks
87
88configure.env-append \
89        RAWCPP=${configure.cpp}
90
91patchfiles \
92        0001-XQuartz-Fix-the-issue-where-the-h-key-could-be-come-.patch \
93        0002-XQuartz-Cleanup-CPPFLAGS-that-are-no-longer-necessar.patch \
94        0003-os-connection-Improve-abstraction-for-launchd-secure.patch \
95        5000-sdksyms.sh-Use-CPPFLAGS-not-CFLAGS.patch \
96        5001-Revert-dix-Restore-PaintWindow-screen-hook.patch \
97        5002-Workaround-the-GC-clipping-problem-in-miPaintWindow-.patch \
98        5003-Use-old-miTrapezoids-and-miTriangles-routines.patch \
99        5004-fb-Revert-fb-changes-that-broke-XQuartz.patch \
100        5005-fb-Revert-fb-changes-that-broke-XQuartz.patch
101
102patch.pre_args -p1
103
104use_autoreconf yes
105autoreconf.args -fvi
106
107build.args V=1
108
109depends_build-append \
110        port:xorg-util-macros \
111        port:xorg-font-util
112
113post-destroot {
114        ln -s Xquartz ${destroot}${prefix}/bin/X
115}
116
117platform macosx {
118        if { ${os.major} < 10 } {
119                # Xplugin.h is missing on Tiger and incorrect on Leopard
120                configure.cppflags-append -I${filespath}/include
121        }
122}
123
124variant docs description "Install extra documentation" {
125        depends_build-append \
126                port:doxygen \
127                port:fop \
128                port:xmlto \
129                port:xorg-sgml-doctools
130
131        depends_skip_archcheck-append \
132                doxygen \
133                xmlto
134
135        configure.args-delete \
136                --without-doxygen \
137                --without-fop \
138                --without-xmlto \
139                --disable-devel-docs
140
141        configure.args-append \
142                --with-doxygen \
143                --with-fop \
144                --with-xmlto \
145                --enable-devel-docs
146
147        configure.env-append \
148                DOXYGEN="${prefix}/bin/doxygen" \
149                FOP="${prefix}/bin/fop" \
150                XMLTO="${prefix}/bin/xmlto"
151}
152
153livecheck.type  regex
154livecheck.url   http://xorg.freedesktop.org/archive/individual/xserver/?C=M&O=D
155livecheck.regex ${name}-(\\d+\\.\\d+\\.\\d+)\\.tar
Note: See TracBrowser for help on using the repository browser.