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

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

xorg-server-devel: Bump to 1.19.99.901

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