[79641] trunk/dports/x11/wine/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Tue Jun 21 20:34:51 PDT 2011


Revision: 79641
          http://trac.macports.org/changeset/79641
Author:   jeremyhu at macports.org
Date:     2011-06-21 20:34:49 -0700 (Tue, 21 Jun 2011)
Log Message:
-----------
wine: Fixes for darwin11

Also fixed wine's reference to libwine

Modified Paths:
--------------
    trunk/dports/x11/wine/Portfile

Modified: trunk/dports/x11/wine/Portfile
===================================================================
--- trunk/dports/x11/wine/Portfile	2011-06-22 03:16:58 UTC (rev 79640)
+++ trunk/dports/x11/wine/Portfile	2011-06-22 03:34:49 UTC (rev 79641)
@@ -9,6 +9,7 @@
 conflicts                   wine-devel wine-crossover-games
 set my_name                 wine
 version                     1.2.3
+revision                    1
 license                     LGPL-2.1+
 categories                  x11
 maintainers                 ryandesign jwa openmaintainer
@@ -159,6 +160,24 @@
     configure.cppflags-append -D_DARWIN_NO_64_BIT_INODE
 }
 
+platform darwin 11 {
+    # _getdirentries_is_not_available_when_64_bit_inodes_are_in_effect dlls/ntdll/directory.o
+    configure.cppflags-append -D_DARWIN_NO_64_BIT_INODE
+
+    # llvm-gcc does not respect force_align_arg_pointer
+    # clang fails due to CFI-foo (winebuild uses /usr/bin/as to assemble clang-generated assembly)
+    configure.compiler gcc-4.2
+
+    # I have a suspicion that this may be necessary, but leaving out for now:
+    #post-patch {
+    #    # Lion disallows heap execution.
+    #    reinplace "s:LDEXECFLAGS = :LDEXECFLAGS = -Wl,-allow_heap_execute :" ${worksrcpath}/loader/Makefile.in
+    #}
+
+    # Needed or wine will SIGBUS
+    configure.ldflags-append -Wl,-no_pie
+}
+
 pre-fetch {
     if {"big" == ${os.endian}} {
         ui_error "${name} can only be used on an Intel Mac or other computer with a little-endian processor."
@@ -169,6 +188,8 @@
 post-destroot {
     xinstall -d ${destroot}${prefix}/libexec/wine
     file rename ${destroot}${prefix}/bin/wine ${destroot}${prefix}/libexec/wine/wine
+    system "install_name_tool -change @executable_path/../lib/libwine.1.dylib @executable_path/../../lib/libwine.1.dylib ${destroot}${prefix}/libexec/wine/wine"
+
     xinstall ${filespath}/wine.in ${destroot}${prefix}/bin/wine
     reinplace s|@PREFIX@|${prefix}|g ${destroot}${prefix}/bin/wine
     
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110621/21935353/attachment-0001.html>


More information about the macports-changes mailing list