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

Last change on this file since 88121 was 88121, checked in by jeremyhu@…, 6 years ago

xorg-server-devel: Update to latest git

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# $Id: Portfile 88121 2011-12-19 21:15:49Z jeremyhu@macports.org $
2
3PortSystem 1.0
4
5name            xorg-server-devel
6conflicts       xorg-server
7set my_name     xorg-server
8version         1.11.99.2
9categories      x11 devel
10maintainers     jeremyhu openmaintainer
11description     The X.org / Xquartz X server.
12homepage        http://www.x.org
13platforms       darwin macosx
14long_description The X.org X server allows you to run X11 applications on your computer.
15
16fetch.type      git
17git.url         git://anongit.freedesktop.org/xorg/xserver
18git.branch      c065f7b16329e30cb976359e0a807c2adaf50123
19
20use_parallel_build yes
21
22# Yes, mesa is a *BUILD* dependency
23depends_build \
24        port:pkgconfig \
25        port:mesa \
26        port:xorg-applewmproto \
27        port:xorg-bigreqsproto \
28        port:xorg-damageproto \
29        port:xorg-fixesproto \
30        port:xorg-fontsproto \
31        port:xorg-glproto \
32        port:xorg-inputproto \
33        port:xorg-randrproto \
34        port:xorg-recordproto \
35        port:xorg-renderproto \
36        port:xorg-resourceproto \
37        port:xorg-scrnsaverproto \
38        port:xorg-videoproto \
39        port:xorg-xcmiscproto \
40        port:xorg-xproto \
41        port:xorg-xextproto \
42        port:xorg-xineramaproto \
43        port:xorg-xtrans
44
45# This xinit dependency needs to be port: not bin: because we specifically run ${prefix}/bin/startx from bundle-main.c
46depends_run \
47        port:xinit \
48        port:xorg-fonts \
49        port:xkeyboard-config
50
51depends_lib \
52        path:lib/pkgconfig/pixman-1.pc:libpixman \
53        port:xorg-libxkbfile \
54        port:xorg-libXfont \
55        port:xorg-libXt \
56        port:xorg-libAppleWM \
57        port:xorg-libXfixes
58
59configure.args --with-apple-applications-dir=${applications_dir} \
60        --with-bundle-id-prefix=org.macports \
61        --without-dtrace \
62        --without-doxygen \
63        --without-fop \
64        --without-xmlto \
65        --disable-devel-docs \
66        --with-sha1=CommonCrypto
67
68# GL/internal/dri_interface.h is missing in prefix (provided by libdrm for the xorg DDX... not helpful for us)
69configure.cppflags-append -I/usr/include -I${filespath}/dri
70
71configure.env-append \
72        RAWCPP=${configure.cpp}
73
74patchfiles \
75        5002-Workaround-the-GC-clipping-problem-in-miPaintWindow-.patch \
76        5003-fb-Revert-fb-changes-that-broke-XQuartz.patch
77
78patch.pre_args -p1
79
80use_autoreconf yes
81autoreconf.args -fvi
82
83build.args V=1
84
85depends_build-append \
86        port:xorg-util-macros \
87        port:xorg-font-util
88
89post-destroot {
90        ln -s Xquartz ${destroot}${prefix}/bin/X
91}
92
93platform macosx {
94        if { ![file exists /usr/include/Xplugin.h] } {
95                # Xplugin.h is missing on Tiger
96                configure.cppflags-append -I${filespath}/include
97        }
98}
99
100variant docs description "Install extra documentation" {
101        depends_build-append \
102                port:doxygen \
103                port:fop \
104                port:xmlto \
105                port:xorg-sgml-doctools
106
107        depends_skip_archcheck-append \
108                doxygen \
109                xmlto
110
111        configure.args-delete \
112                --without-doxygen \
113                --without-fop \
114                --without-xmlto \
115                --disable-devel-docs
116
117        configure.args-append \
118                --with-doxygen \
119                --with-fop \
120                --with-xmlto \
121                --enable-devel-docs
122
123        configure.env-append \
124                DOXYGEN="${prefix}/bin/doxygen" \
125                FOP="${prefix}/bin/fop" \
126                XMLTO="${prefix}/bin/xmlto"
127}
Note: See TracBrowser for help on using the repository browser.