1 | # $Id: Portfile 59906 2009-10-26 22:23:27Z jeremyhu@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name xorg-server-devel |
---|
6 | set my_name xorg-server |
---|
7 | version 1.7.2 |
---|
8 | categories x11 devel |
---|
9 | maintainers jeremyhu openmaintainer |
---|
10 | description The X.org / Xquartz X server. |
---|
11 | homepage http://www.x.org |
---|
12 | platforms darwin macosx |
---|
13 | long_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 |
---|
16 | master_sites http://xorg.freedesktop.org/archive/individual/xserver/ |
---|
17 | |
---|
18 | dist_subdir ${my_name} |
---|
19 | distname ${my_name}-${version} |
---|
20 | |
---|
21 | checksums md5 5c087e0f555203065fd90d02ef5f736e \ |
---|
22 | sha1 b436d4b40d25c2d3dd638a96bb2cc7ae8b4e2648 |
---|
23 | # rmd160 cb099543753363a5cb14426ebbfd46415768fe33 |
---|
24 | |
---|
25 | #fetch.type git |
---|
26 | #git.tag xorg-server-1.7.2 |
---|
27 | use_bzip2 yes |
---|
28 | use_parallel_build yes |
---|
29 | |
---|
30 | # Yes, mesa is a *BUILD* dependency |
---|
31 | depends_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 |
---|
58 | depends_run \ |
---|
59 | port:xinit \ |
---|
60 | port:xorg-fonts \ |
---|
61 | port:xkeyboard-config |
---|
62 | |
---|
63 | depends_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 | |
---|
72 | configure.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) |
---|
75 | configure.cppflags-append -I/usr/include -I${filespath}/dri |
---|
76 | |
---|
77 | post-destroot { |
---|
78 | ln -s Xquartz ${destroot}${prefix}/bin/X |
---|
79 | } |
---|
80 | |
---|
81 | platform 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 | } |
---|