Ticket #22721: Portfile

File Portfile, 2.3 KB (added by macports.users@…, 14 years ago)

Portfile for building xorg-server-1.7.2.tar.bz2

Line 
1# $Id: Portfile 59906 2009-10-26 22:23:27Z jeremyhu@macports.org $
2
3PortSystem 1.0
4
5name            xorg-server-devel
6set my_name     xorg-server
7version         1.7.2
8categories      x11 devel
9maintainers     jeremyhu openmaintainer
10description     The X.org / Xquartz X server.
11homepage        http://www.x.org
12platforms       darwin macosx
13long_description The X.org X server allows you to run X11 applications on your computer.
14
15#master_sites   http://xquartz.macosforge.org/downloads/src
16master_sites    http://xorg.freedesktop.org/archive/individual/xserver/
17
18dist_subdir     ${my_name}
19distname        ${my_name}-${version}
20
21checksums           md5     5c087e0f555203065fd90d02ef5f736e \
22                    sha1    b436d4b40d25c2d3dd638a96bb2cc7ae8b4e2648
23#                    rmd160  cb099543753363a5cb14426ebbfd46415768fe33
24
25#fetch.type     git
26#git.tag                xorg-server-1.7.2
27use_bzip2       yes
28use_parallel_build yes
29
30# Yes, mesa is a *BUILD* dependency
31depends_build \
32        port:pkgconfig \
33        port:mesa \
34        port:xorg-applewmproto \
35        port:xorg-damageproto \
36        port:xorg-fixesproto \
37        port:xorg-fontsproto \
38        port:xorg-glproto \
39        port:xorg-inputproto \
40        port:xorg-randrproto \
41        port:xorg-recordproto \
42        port:xorg-renderproto \
43        port:xorg-resourceproto \
44        port:xorg-scrnsaverproto \
45        port:xorg-videoproto \
46        port:xorg-xcmiscproto \
47        port:xorg-xproto \
48        port:xorg-xextproto \
49        port:xorg-xineramaproto \
50        port:xorg-xtrans \
51        port:autoconf \
52        port:automake \
53        port:libtool \
54        port:xorg-util-macros \
55        port:doxygen
56
57# This xinit dependency needs to be port: not bin: because we specifically run ${prefix}/bin/startx from bundle-main.c
58depends_run \
59        port:xinit \
60        port:xorg-fonts \
61        port:xkeyboard-config
62
63depends_lib \
64        path:lib/pkgconfig/pixman-1.pc:libpixman \
65        port:xorg-libxkbfile \
66        port:xorg-libXfont \
67        port:xorg-libXt \
68        port:xorg-libAppleWM \
69        port:xorg-libXfixes \
70        port:openssl
71
72configure.args --with-apple-applications-dir=${applications_dir} --with-fontdir=${prefix}/share/fonts --with-launchd-id-prefix=org.macports --without-dtrace
73
74# GL/internal/dri_interface.h is missing in prefix (provided by libdrm for the xorg DDX... not helpful for us)
75configure.cppflags-append -I/usr/include -I${filespath}/dri
76
77post-destroot {
78        ln -s Xquartz ${destroot}${prefix}/bin/X
79}
80
81platform macosx {
82        if { ![file exists /usr/include/Xplugin.h] } {
83                # Xplugin.h is missing on Tiger
84                configure.cppflags-append -I${filespath}/include
85        }
86}