Ticket #40266: wine-Ports.patch

File wine-Ports.patch, 14.3 KB (added by Ionic (Mihai Moldovan), 11 years ago)

Current set of changes against wine, wine-devel and wine-crossover.

  • wine/Portfile

    Binary files a/wine/.Portfile.swp and b/wine/.Portfile.swp differ
    diff -urN a/wine/Portfile b/wine/Portfile
    a b  
    1111conflicts                   wine-devel wine-crossover
    1212set my_name                 wine
    1313version                     1.6
     14revision                    1
    1415license                     LGPL-2.1+
    1516categories                  x11
    1617maintainers                 ryandesign jwa openmaintainer
     
    149150
    150151# clang < 3.1 fails to build wine with "error: invalid operand for instruction lretw"
    151152# http://bugs.winehq.org/show_bug.cgi?id=32872
    152 compiler.blacklist-append   {clang < 425} macports-clang-2.9 macports-clang-3.0
     153# llvm < 3.2 builds wine, but produces buggy binaries, clang 425 is also affected
     154# http://llvm.org/bugs/show_bug.cgi?id=9707
     155compiler.blacklist-append   {clang < 426} macports-clang-2.9 macports-clang-3.0 macports-clang-3.1
     156
     157# winemac.drv won't compile with FSF GCC due to including Cocoa headers making use of
     158# the Apple "blocks" Objective C extension
     159compiler.blacklist-append   macports-gcc-*
     160
     161# Prefer clang over old Apple GCC versions. Reorder fallback list.
     162compiler.fallback-delete    gcc-4.2 apple-gcc-4.2
     163compiler.fallback-append    gcc-4.2 apple-gcc-4.2
    153164
    154165platform darwin {
    155166    if {${os.major} <= 9} {
     
    184195
    185196    xinstall ${filespath}/wine.in ${destroot}${prefix}/bin/wine
    186197    reinplace s|@PREFIX@|${prefix}|g ${destroot}${prefix}/bin/wine
    187    
     198
    188199    xinstall -d ${destroot}${prefix}/share/wine/gecko
    189200    xinstall -m 644 ${distpath}/${wine_gecko_distfile} ${destroot}${prefix}/share/wine/gecko
    190    
     201
    191202    xinstall -d ${destroot}${prefix}/share/doc/${name}
    192203    xinstall -m 644 -W ${worksrcpath} \
    193204        ANNOUNCE \
  • wine-crossover/Portfile

    Binary files a/wine-crossover/.Portfile.swp and b/wine-crossover/.Portfile.swp differ
    diff -urN a/wine-crossover/Portfile b/wine-crossover/Portfile
    a b  
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    12# $Id: Portfile 109450 2013-08-15 17:03:09Z jeremyhu@macports.org $
    23
    34PortSystem                  1.0
     5PortGroup                   archcheck 1.0
     6PortGroup                   compiler_blacklist_versions 1.0
    47
    58# Please keep the wine, wine-devel and wine-crossover ports as similar as possible.
    69
    710name                        wine-crossover
    811conflicts                   wine wine-devel
    9 version                     12.2.2
     12version                     12.5.0
     13revision                    0
    1014license                     LGPL-2.1+
    1115categories                  x11
    1216maintainers                 jeremyhu openmaintainer
     
    1418platforms                   darwin
    1519distname                    crossover-sources-${version}
    1620dist_subdir                 wine
    17 set wine_distfile           ${distname}${extract.suffix}
    18 set wine_gecko_version      1.8
     21set wine_distfile           [suffix ${distname}]
     22set wine_gecko_version      2.21
    1923set wine_gecko_distfile     wine_gecko-${wine_gecko_version}-x86.msi
    2024distfiles                   ${wine_distfile}:winesource ${wine_gecko_distfile}:winegecko
    2125extract.only                ${wine_distfile}
     
    2327build.target                depend all
    2428use_parallel_build          yes
    2529
    26 description                 Wine Is Not an Emulator (1.5.15 with CodeWeavers modifications for CrossOver)
     30description                 Wine Is Not an Emulator (1.6 with CodeWeavers modifications for CrossOver)
    2731
    2832long_description            Wine is an implementation of the Windows APIs on top of X11. \
    2933                            This version contains the Codeweavers patches for CrossOver
     
    3236                            http://ftp.codeweavers.com/pub/crossover/source/archive/${version}/:winesource \
    3337                            sourceforge:project/wine/Wine%20Gecko/${wine_gecko_version}:winegecko
    3438
    35 checksums                   crossover-sources-12.2.2.tar.gz \
    36                             rmd160  5ddd12e9251646a2923a258ea03b9777a6efe4ab \
    37                             sha256  110378a4bc8420c84aed96e9e0ba7d5f495934126e3df224863f544708d97b2d \
    38                             wine_gecko-1.8-x86.msi \
    39                             rmd160  f7b86d2e5ff82bf345b2420c9a8e9cfbc3c9989c \
    40                             sha256  28f3b7e497e1f884a64b2d982b61dda3167efac4c843de198654a1c9144ff9dc
     39checksums                   crossover-sources-12.5.0.tar.gz \
     40                            rmd160  101e3499820d500416ad6f33e4b53fe4f59093bd \
     41                            sha256  6e4a6851e484cf7fff37989aed72b82f31d98a964fc3100f09278c46bcce1ca7 \
     42                            ${wine_gecko_distfile} \
     43                            rmd160  e5aded4dfcde2462d9802478efe5aae1552e842d \
     44                            sha256  f01fafa6d7aab995c38add77315c4cbc2f32f52d5d6a9350056f42b62d631fd8
    4145
    4246# Note: Most of the X11 libs are dlopen()'d
    4347depends_lib                 port:expat \
     
    4650                            port:gstreamer010 \
    4751                            port:gstreamer010-gst-plugins-base \
    4852                            port:jpeg \
    49                             port:lcms \
     53                            port:lcms2 \
    5054                            port:libiconv \
    5155                            port:libpng \
    5256                            port:libxml2 \
    5357                            port:libxslt \
    5458                            port:ncurses \
    55                             port:openssl \
     59                            port:gnutls \
    5660                            port:tiff \
    5761                            port:zlib \
    5862                            port:xorg-libsm \
     
    6569                            port:xrender \
    6670                            port:mesa
    6771
     72archcheck.files             lib/libexpat.dylib \
     73                            lib/libfontconfig.dylib \
     74                            lib/libfreetype.dylib \
     75                            lib/libjpeg.dylib \
     76                            lib/liblcms2.dylib \
     77                            lib/libiconv.dylib \
     78                            lib/libpng.dylib \
     79                            lib/libxml2.dylib \
     80                            lib/libxslt.dylib \
     81                            lib/libncurses.dylib \
     82                            lib/libgnutls.dylib \
     83                            lib/libtiff.dylib \
     84                            lib/libz.dylib \
     85                            lib/libSM.dylib \
     86                            lib/libXcomposite.dylib \
     87                            lib/libXcursor.dylib \
     88                            lib/libXi.dylib \
     89                            lib/libXinerama.dylib \
     90                            lib/libXrandr.dylib \
     91                            lib/libXxf86vm.dylib \
     92                            lib/libXrender.dylib \
     93                            lib/libGL.dylib
     94
    6895depends_build               port:bison \
    6996                            port:flex \
    7097                            port:pkgconfig
     
    75102
    76103patchfiles                  BOOL.patch \
    77104                            mach_machine.patch \
    78                             winedbg.patch
     105                            winedbg.patch \
     106                            tiger-shell.patch
    79107
    80108configure.ldflags-append    -framework CoreServices \
    81                             -framework Security \
    82109                            -lz
    83110
    84111configure.args              --without-alsa \
     
    91118                            --with-freetype \
    92119                            --without-gphoto \
    93120                            --with-glu \
    94                             --without-gnutls \
     121                            --with-gnutls \
    95122                            --without-gsm \
    96123                            --without-hal \
    97124                            --with-jpeg \
     
    99126                            --without-mpg123 \
    100127                            --without-openal \
    101128                            --with-opengl \
    102                             --with-openssl \
    103129                            --without-oss \
    104130                            --with-png \
    105131                            --with-pthread \
     
    123149# This is not 64-bit friendly yet
    124150supported_archs             i386
    125151
    126 # BUILD FIX TODO: llvm-gcc-4.2, clang
    127 # llvm-gcc does not respect force_align_arg_pointer
    128 # clang fails due to CFI-foo (winebuild uses /usr/bin/as to assemble clang-generated assembly)
    129 compiler.whitelist gcc-4.2 apple-gcc-4.2
     152# llvm-gcc-4.2 doesn't respect force_align_arg_pointer; wine builds but fails to run
     153# http://bugs.winehq.org/show_bug.cgi?id=28030
     154compiler.blacklist-append   llvm-gcc-4.2 macports-llvm-gcc-4.2
     155
     156# clang < 3.1 fails to build wine with "error: invalid operand for instruction lretw"
     157# http://bugs.winehq.org/show_bug.cgi?id=32872
     158# llvm < 3.2 builds wine, but produces buggy binaries, clang 425 is also affected
     159# http://llvm.org/bugs/show_bug.cgi?id=9707
     160compiler.blacklist-append   {clang < 426} macports-clang-2.9 macports-clang-3.0 macports-clang-3.1
     161
     162# winemac.drv won't compile with FSF GCC due to including Cocoa headers making use of
     163# the Apple "blocks" Objective C extension
     164compiler.blacklist-append   macports-gcc-*
     165
     166# Prefer clang over old Apple GCC versions. Reorder fallback list.
     167compiler.fallback-delete    gcc-4.2 apple-gcc-4.2
     168compiler.fallback-append    gcc-4.2 apple-gcc-4.2
    130169
    131170platform darwin {
    132171    if {${os.major} <= 9} {
     
    157196post-destroot {
    158197    xinstall -d ${destroot}${prefix}/libexec/wine
    159198    file rename ${destroot}${prefix}/bin/wineloader ${destroot}${prefix}/libexec/wine/wine
    160     system "install_name_tool -change @executable_path/../lib/libwine.1.dylib ${prefix}/lib/libwine.1.dylib ${destroot}${prefix}/libexec/wine/wine"
     199    system "install_name_tool -change @executable_path/../lib/libwine.1.dylib @executable_path/../../lib/libwine.1.dylib ${destroot}${prefix}/libexec/wine/wine"
    161200
    162     foreach dll [glob ${destroot}${prefix}/lib/wine/*.so] {
    163         system "install_name_tool -change @executable_path/../lib/libwine.1.dylib ${prefix}/lib/libwine.1.dylib ${dll}"
    164     }
     201    # foreach dll [glob ${destroot}${prefix}/lib/wine/*.so] {
     202    #     system "install_name_tool -change @executable_path/../lib/libwine.1.dylib ${prefix}/lib/libwine.1.dylib ${dll}"
     203    # }
    165204
    166205    xinstall ${filespath}/wine.in ${destroot}${prefix}/bin/wine
    167206    reinplace s|@PREFIX@|${prefix}|g ${destroot}${prefix}/bin/wine
    168    
     207
    169208    xinstall -d ${destroot}${prefix}/share/wine/gecko
    170209    xinstall -m 644 ${distpath}/${wine_gecko_distfile} ${destroot}${prefix}/share/wine/gecko
    171    
     210
    172211    xinstall -d ${destroot}${prefix}/share/doc/${name}
    173212    xinstall -m 644 -W ${worksrcpath} \
    174213        ANNOUNCE \
  • wine-crossover/files/BOOL.patch

    diff -urN a/wine-crossover/files/BOOL.patch b/wine-crossover/files/BOOL.patch
    a b  
    106106 #undef LoadResource
    107107 #undef CompareString
    108108 #undef GetCurrentThread
    109 --- dlls/dinput/joystick_osx.c.orig     2012-02-13 11:58:52.000000000 -0800
    110 +++ dlls/dinput/joystick_osx.c  2012-02-13 11:59:09.000000000 -0800
    111 @@ -24,6 +24,7 @@
    112  #include "wine/port.h"
    113  
    114  #if defined(HAVE_IOKIT_HID_IOHIDLIB_H)
     109--- dlls/dinput/joystick_osx.c.orig     2013-05-25 11:13:00.000000000 +0300
     110+++ dlls/dinput/joystick_osx.c  2013-05-25 11:13:00.000000000 +0300
     111@@ -29,6 +29,7 @@
     112 #define LONG SInt32
     113 #define LPLONG SInt32*
     114 #define E_PENDING __carbon_E_PENDING
    115115+#define BOOL __carbon_BOOL
    116116 #define ULONG __carbon_ULONG
    117117 #define E_INVALIDARG __carbon_E_INVALIDARG
    118118 #define E_OUTOFMEMORY __carbon_E_OUTOFMEMORY
    119 @@ -45,6 +46,7 @@
    120  #define HRESULT __carbon_HRESULT
    121  #define STDMETHODCALLTYPE __carbon_STDMETHODCALLTYPE
     119@@ -52,6 +53,7 @@
     120 #include <IOKit/IOKitLib.h>
    122121 #include <IOKit/hid/IOHIDLib.h>
     122 #include <ForceFeedback/ForceFeedback.h>
    123123+#undef BOOL
    124124 #undef ULONG
    125125 #undef E_INVALIDARG
  • wine-crossover/files/tiger-shell.patch

    diff -urN a/wine-crossover/files/tiger-shell.patch b/wine-crossover/files/tiger-shell.patch
    a b  
     1--- dlls/shell32/trash.c.orig   2012-04-08 22:35:02.000000000 -0700
     2+++ dlls/shell32/trash.c        2012-04-08 22:36:59.000000000 -0700
     3@@ -60,7 +60,7 @@
     4 
     5 WINE_DEFAULT_DEBUG_CHANNEL(trash);
     6 
     7-#ifdef HAVE_CORESERVICES_CORESERVICES_H
     8+#if defined(HAVE_CORESERVICES_CORESERVICES_H) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1050
     9 
     10 BOOL TRASH_CanTrashFile(LPCWSTR wszPath)
     11 {
  • wine-devel/Portfile

    Binary files a/wine-devel/.Portfile.swp and b/wine-devel/.Portfile.swp differ
    diff -urN a/wine-devel/Portfile b/wine-devel/Portfile
    a b  
    1111conflicts                   wine wine-crossover
    1212set my_name                 wine
    1313version                     1.7.0
     14revision                    1
    1415license                     LGPL-2.1+
    1516categories                  x11
    1617maintainers                 ryandesign jwa openmaintainer
     
    149150
    150151# clang < 3.1 fails to build wine with "error: invalid operand for instruction lretw"
    151152# http://bugs.winehq.org/show_bug.cgi?id=32872
    152 compiler.blacklist-append   {clang < 425} macports-clang-2.9 macports-clang-3.0
     153# llvm < 3.2 builds wine, but produces buggy binaries, clang 425 is also affected
     154# http://llvm.org/bugs/show_bug.cgi?id=9707
     155compiler.blacklist-append   {clang < 426} macports-clang-2.9 macports-clang-3.0 macports-clang-3.1
     156
     157# winemac.drv won't compile with FSF GCC due to including Cocoa headers making use of
     158# the Apple "blocks" Objective C extension
     159compiler.blacklist-append   macports-gcc-*
     160
     161# Prefer clang over old Apple GCC versions. Reorder fallback list.
     162compiler.fallback-delete    gcc-4.2 apple-gcc-4.2
     163compiler.fallback-append    gcc-4.2 apple-gcc-4.2
    153164
    154165platform darwin {
    155166    if {${os.major} <= 9} {
     
    184195
    185196    xinstall ${filespath}/wine.in ${destroot}${prefix}/bin/wine
    186197    reinplace s|@PREFIX@|${prefix}|g ${destroot}${prefix}/bin/wine
    187    
     198
    188199    xinstall -d ${destroot}${prefix}/share/wine/gecko
    189200    xinstall -m 644 ${distpath}/${wine_gecko_distfile} ${destroot}${prefix}/share/wine/gecko
    190    
     201
    191202    xinstall -d ${destroot}${prefix}/share/doc/${name}
    192203    xinstall -m 644 -W ${worksrcpath} \
    193204        ANNOUNCE \