Ticket #56983: xorg-server-devel.3.patch

File xorg-server-devel.3.patch, 3.3 KB (added by RJVB (René Bertin), 6 years ago)
  • x11/xorg-server-devel/Portfile

    diff --git a/x11/xorg-server-devel/Portfile b/x11/xorg-server-devel/Portfile
    index f205d1c713a7aef6f33691b666449021eea71afe..0b8afbb53a48a5e3243a30bec23b8e1f7dd2868a 100644
    a b PortGroup compiler_blacklist_versions 1.0 
    44name            xorg-server-devel
    55conflicts       xorg-server
    66set my_name     xorg-server
    7 version         1.19.99.1
     7# version               1.19.99.1
    88categories      x11 devel
    99license         X11
    1010maintainers     {jeremyhu @jeremyhu} openmaintainer
    long_description The X.org X server allows you to run X11 applications on your c 
    1515
    1616fetch.type      git
    1717git.url         git://anongit.freedesktop.org/xorg/xserver
    18 git.branch      d16133e3e293fe16b291114d344fbd5a61d5ed65
    19 #git.branch      xorg-server-${version}
     18# git.branch      d16133e3e293fe16b291114d344fbd5a61d5ed65
     19# the last commit that still builds against randrproto 1.5
     20# (randrproto 1.6 hasn't been released yet?!)
     21# xorg-server-1.19.0-636-gfabbaa8d6
     22git.branch      fabbaa8d6260da14fe5b7ca0f3f8748af16253a2
     23
     24version         1.19.0.636
     25# for git-describe based versioning:
     26epoch           1
     27
     28worksrcdir      xorg-server-git
     29distname        xorg-server-git
    2030
    2131use_parallel_build yes
    2232
    configure.args --with-apple-applications-dir=${applications_dir} \ 
    8393        --disable-dri2 \
    8494        --disable-dri3
    8595
     96variant dri2 description {enable DRI2 support} {
     97    configure.args-replace \
     98        --disable-dri2 \
     99        --enable-dri2
     100    depends_build-append \
     101        port:xorg-dri2proto
     102}
     103
     104variant dri3 description {enable DRI3 support} {
     105    configure.args-replace \
     106        --disable-dri3 \
     107        --enable-dri3
     108    depends_build-append \
     109        port:xorg-dri3proto
     110}
     111
    86112# GL/internal/dri_interface.h is missing in prefix (provided by libdrm for the xorg DDX... not helpful for us)
    87113configure.cppflags-append -I/usr/include -I${filespath}/dri -F${configure.sdkroot}/System/Library/Frameworks/ApplicationServices.framework/Frameworks
    88114
    configure.env-append \ 
    92118patchfiles \
    93119        0001-os-connection-Improve-abstraction-for-launchd-secure.patch \
    94120        0002-randr-Initialize-RandR-even-if-there-are-currently-n.patch \
    95         0003-glx-Initialize-glx-even-if-there-are-currently-no-sc.patch \
    96121        5000-sdksyms.sh-Use-CPPFLAGS-not-CFLAGS.patch \
    97122        5001-Revert-dix-Restore-PaintWindow-screen-hook.patch \
    98123        5002-Workaround-the-GC-clipping-problem-in-miPaintWindow-.patch \
    99124        5003-Use-old-miTrapezoids-and-miTriangles-routines.patch \
    100125        5004-fb-Revert-fb-changes-that-broke-XQuartz.patch \
    101         5005-fb-Revert-fb-changes-that-broke-XQuartz.patch
     126        5005-fb-Revert-fb-changes-that-broke-XQuartz.patch \
     127        patch-revert-free-fbconfigs-on-destroy.diff
    102128
    103129patch.pre_args -p1
    104130
    105 use_autoreconf yes
     131pre-configure {
     132    use_autoreconf [expr ![file exists ${worksrcpath}/config.log]]
     133}
    106134autoreconf.args -fvi
    107135
    108136build.args V=1
    post-destroot { 
    115143        ln -s Xquartz ${destroot}${prefix}/bin/X
    116144}
    117145
     146post-activate {
     147    set app "/Applications/MacPorts/X11.app"
     148    set identity "-"
     149    ui_debug "Signing ${app} with identity \"${identity}\""
     150    if {[catch {system "codesign -s ${identity} --preserve-metadata -f -vvv --deep ${app}"} err]} {
     151        ui_error "Signing ${app} with ${identity}: ${err}"
     152    }
     153}
     154
    118155platform macosx {
    119156        if { ${os.major} < 10 } {
    120157                # Xplugin.h is missing on Tiger and incorrect on Leopard