Package: wine Version: 1.6 Revision: 3 Description: Microsoft Windows compatibility layer (x86) License: LGPL # Sjors is maintainer of the wine-32bit package, while Damian Dimmich # is the maintainer of the normal wine package on Fink i386. Maintainer: Sjors Gielen #Previous maintainer: Damian Dimmich #Previous^2 maintainer: Robert Cusick #Additions by Max Horn # This version updated by Damian Dimmich #Much love to costabel, jfmertens, and other finkers for rebooting this package. # # Does not compile on PowerPC. # error: encode_type: VT_USERDEFINED - unhandled type 17 # http://wiki.winehq.org/Wine64 describes that for building x86-64, # gcc >= 4.5.1 is required. BuildDepends: << bison, dbus1.3-dev, fontconfig2-dev (>= 2.10.0-1), flex-devel (>= 2.5.33), (%m = i386) freetype219, (%m = x86_64) freetype219-32bit, giflib, glib2-dev (>= 2.22.0-1), lcms, lcms-bin, libgettext8-dev, libiconv-dev, libicu36-dev, libjpeg9, libusb, (%m = i386) libxml2, (%m = x86_64) libxml2-32bit, libxml2-32bit-bin | libxml2-bin, libxslt, libxslt-bin, openldap24-dev, system-openssl-dev, sane-backends-dev, libgphoto2, glib2-dev, (%m = i386) libpng16, (%m = x86_64) libpng16-32bit, xcode, dev-tools, gcc47-compiler << Depends: << dbus1.3-shlibs, fontconfig2-shlibs (>= 2.10.0-1), (%m = i386) freetype219-shlibs (>=2.4.4-4), (%m = x86_64) freetype219-32bit-shlibs (>=2.4.4-4), giflib-shlibs, glib2-shlibs (>= 2.22.0-1), lcms-shlibs, libgettext8-shlibs, libiconv, libjpeg9-shlibs, libusb-shlibs, (%m = i386) libxml2-shlibs, (%m = x86_64) libxml2-32bit-shlibs, libxslt-shlibs, openldap24-shlibs, sane-backends-shlibs, libgphoto2-shlibs, glib2-shlibs, (%m = i386) libpng16-shlibs, (%m = x86_64) libpng16-32bit-shlibs << Recommends: << msttcorefonts << BuildConflicts: << flex (<= 1:2.5.33-1) << Conflicts: << wine-stable << Replaces: << wine-stable << Source: mirror:sourceforge:wine/wine-%v.tar.bz2 Source-MD5: 47cf1e121d395e9c8ca1a4ab88f1e658 NoSetCPPFLAGS: true NoSetLDFLAGS: true SetLIBRARY_PATH: %p/lib ConfigureParams: << --host=i686-apple-darwin11 \ --without-gnutls \ --without-gstreamer \ --without-mpg123 \ --without-openal \ --with-freetype \ --with-png \ --with-xml << CompileScript: << #!/bin/sh -ev export CPATH=%p/include/dbus-1.0:%p/lib/dbus-1.0/include:%p/include:/usr/X11/include export LDFLAGS="-L%p/lib/i386 -L%p/lib/system-openssl/lib -Wl,-no_pie" export LD_LIBRARY_PATH=%p/lib export CPPFLAGS="-I%p/lib/system-openssl/include" export CC="%p/bin/gcc-fsf-4.7" export CXX="%p/bin/g++-fsf-4.7" export ft_devel="%p/bin/freetype-config" export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:%p/lib/i386/pkgconfig" mkdir bin ln -s /usr/bin/as bin/i686-apple-darwin11-as ln -s /usr/bin/ld bin/i686-apple-darwin11-ld ln -s /usr/bin/nm bin/i686-apple-darwin11-nm ln -s $CC bin/i686-apple-darwin11-gcc ln -s $CXX bin/i686-apple-darwin11-g++ export PATH="`pwd`/bin:$PATH" echo $PATH ls `pwd`/bin # strip out all non ascii to something that sed and gcc script will eat tr -cd '\11\12\40-\176' AUTHORS.tmp mv AUTHORS.tmp AUTHORS # change the library detection so that the full path name of the library is retained perl -pi.bak -e 's|\^\.\*\\\/\\\(lib|^[^\\/]*\\\(.*lib|g' configure ./configure %c # small safety measure: preventing libSystem from coming up too early in the link line (and hence also in load commands) # (specifically for wineesd.drv.so winearts.drv.so sane.ds.so and msxml3.dll.so). # For further safety, we can then as well remove the remaining -L%p/lib and -I%p/include flags ... # Clang (at least recent enough versions) doesn't like -gstabs+, so take care of that, too. perl -pi.bak -e 's,\-L%p/lib ,,g; s:\-I%p/include( |,):\1:g; s,\-l(m|dl|pthread)([^a-z]),\2,g; s,-gstabs\+,,' config.status ./config.status make depend perl -pi -e 's,^CC ,CC = /usr/bin/clang -m32\n#,g;' dlls/winemac.drv/Makefile if [ "%m" = "x86_64" ]; then perl -pi -e 's,LDEXECFLAGS = ,LDEXECFLAGS = /usr/lib/crt1.o ,;' loader/Makefile fi make << InstallScript: << #!/bin/sh -ev %{default_script} install_name_tool -id %p/lib/libwine.1.dylib %i/lib/libwine.1.0.dylib << Shlibs: %p/lib/libwine.1.dylib 1.0.0 %n (>= 0.9.21-3) DocFiles: ANNOUNCE AUTHORS COPYING.LIB LICENSE README VERSION DescPort: << Didn't find "dbus/dbus.h" : added %p/include/dbus-1.0:%p/lib/dbus-1.0/include to search path, and required CPPFLAGS fontconfig.h : added /usr/X11/include << DescDetail: << Wine is a translation layer (a program loader) capable of running Windows applications on Linux and other POSIX compatible operating systems. Windows programs running in Wine act as native programs would, running without the performance or memory usage penalties of an emulator, with a similar look and feel to other applications on your desktop. << DescUsage: << The ~/.wine directory is supposed to be created and set up automatically the first time you launch Wine. However, I have experienced "wineserver: could not save registry branch" errors during the initial launch. To fix this problem, run wineprefixcreate before launching Wine. This should create the ~/.wine directory and populate it with the necessary files. You may still see error messages, but the directory will be created. For example: export LD_LIBRARY_PATH=%p/lib %p/bin/wineprefixcreate This only needs to be done once. It will also warn that wine-gecko is missing during the first launch and ask to download it. Click "Install" to continue. For a quick test of Wine, run %p/bin/notepad For best results install an update X server such as XQuartz from http://xquartz.macosforge.org/trac/wiki This is the development version of wine. For stable please install wine-stable. << Homepage: http://www.winehq.org/ SplitOff: << Package: %N-dev Depends: %N (= %v-%r) BuildDependsOnly: true Conflicts: wine-stable-dev Files: include lib/libwine.dylib <<