| 1 | # $Id: Portfile 152484 2016-09-11 06:13:07Z jeremyhu@macports.org $ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | |
|---|
| 5 | name xorg-server |
|---|
| 6 | conflicts xorg-server-devel |
|---|
| 7 | set my_name xorg-server |
|---|
| 8 | version 1.18.4 |
|---|
| 9 | revision 1 |
|---|
| 10 | categories x11 devel |
|---|
| 11 | license X11 |
|---|
| 12 | maintainers jeremyhu openmaintainer |
|---|
| 13 | description The X.org / Xquartz X server. |
|---|
| 14 | homepage http://www.x.org |
|---|
| 15 | platforms darwin macosx |
|---|
| 16 | long_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 |
|---|
| 19 | master_sites http://xorg.freedesktop.org/archive/individual/xserver/ |
|---|
| 20 | #master_sites xorg:individual/xserver/ |
|---|
| 21 | |
|---|
| 22 | dist_subdir ${my_name} |
|---|
| 23 | distname ${my_name}-${version} |
|---|
| 24 | |
|---|
| 25 | checksums rmd160 6f58d84d3bbc59a773e6a2e1eafc208827a5923f \ |
|---|
| 26 | sha256 278459b2c31d61a15655d95a72fb79930c480a6bb8cf9226e48a07df8b1d31c8 |
|---|
| 27 | |
|---|
| 28 | use_bzip2 yes |
|---|
| 29 | use_parallel_build yes |
|---|
| 30 | |
|---|
| 31 | # Yes, mesa is a *BUILD* dependency |
|---|
| 32 | depends_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 |
|---|
| 56 | depends_run \ |
|---|
| 57 | port:xinit \ |
|---|
| 58 | port:quartz-wm \ |
|---|
| 59 | port:xorg-fonts \ |
|---|
| 60 | port:xkeyboard-config |
|---|
| 61 | |
|---|
| 62 | depends_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 |
|---|
| 72 | compiler.blacklist gcc-4.0 macports-clang-3.8 macports-clang-3.9 macports-clang-devel |
|---|
| 73 | |
|---|
| 74 | configure.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) |
|---|
| 86 | configure.cppflags-append -I/usr/include -I${filespath}/dri -F${configure.sdkroot}/System/Library/Frameworks/ApplicationServices.framework/Frameworks |
|---|
| 87 | |
|---|
| 88 | configure.env-append \ |
|---|
| 89 | RAWCPP=${configure.cpp} |
|---|
| 90 | |
|---|
| 91 | patchfiles \ |
|---|
| 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 | |
|---|
| 102 | patch.pre_args -p1 |
|---|
| 103 | |
|---|
| 104 | use_autoreconf yes |
|---|
| 105 | autoreconf.args -fvi |
|---|
| 106 | |
|---|
| 107 | build.args V=1 |
|---|
| 108 | |
|---|
| 109 | depends_build-append \ |
|---|
| 110 | port:xorg-util-macros \ |
|---|
| 111 | port:xorg-font-util |
|---|
| 112 | |
|---|
| 113 | post-destroot { |
|---|
| 114 | ln -s Xquartz ${destroot}${prefix}/bin/X |
|---|
| 115 | } |
|---|
| 116 | |
|---|
| 117 | platform 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 | |
|---|
| 124 | variant 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 | |
|---|
| 153 | livecheck.type regex |
|---|
| 154 | livecheck.url http://xorg.freedesktop.org/archive/individual/xserver/?C=M&O=D |
|---|
| 155 | livecheck.regex ${name}-(\\d+\\.\\d+\\.\\d+)\\.tar |
|---|