the Fink project is an effort to port
popular Unix programs to Mac OS X
Description: Microsoft Windows compatibility layer
Maintainer: Damian Dimmich
#Previous maintainer: Robert Cusick
# 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
# Trevor writes:
# According to the Wine README, any GCC higher than 2.7.2 should work, but only GCC 4.x has been tested.
# See Wine's documentation/PACKAGING file for more details about dependencies.
# I may have gone overboard on these dependencies, but better safe than sorry.
bison, dbus-glib1.2-dev, dbus1.3-dev, fontconfig2-dev, flex-devel (>= 2.5.33),
fontforge, freetype219, gcc44, giflib,
glib2-dev, lcms, lcms-bin, libgettext8-dev, libiconv-dev, libicu36-dev,
libjpeg8, libusb, libxml2, libxml2-bin, libxslt, libxslt-bin,
openldap24-dev, system-openssl-dev, sane-backends-dev, x11-dev, libgphoto2
dbus-glib1.2-shlibs, dbus1.3-shlibs, fontconfig2-shlibs,
glib2-shlibs, lcms-shlibs, libgettext8-shlibs, libiconv, libjpeg8-shlibs,
libusb-shlibs, libxml2-shlibs, libxslt-shlibs,
openldap24-shlibs, sane-backends-shlibs, x11, libgphoto2-shlibs
flex (<= 1:2.5.33-1)
# A custom CompileScript is necessary for the extra "make depend" step
# strip out all non ascii to something that sed and gcc script will eat
tr -cd '\11\12\40-\176'
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
# 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 ...
perl -pi.bak -e 's,\-L%p/lib ,,g; s:\-I%p/include( |,):\1:g; s,\-l(m|dl|pthread)([^a-z]),\2,g' config.status
Shlibs: %p/lib/libwine.1.dylib 1.0.0 %n (>= 0.9.21-3)
DocFiles: ANNOUNCE AUTHORS COPYING.LIB LICENSE README VERSION
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
Use mesa because GL/gl.h in some versions of Apple's X11 is too old. But then to be safe mesa has also
to substitute for the glut or freeglut dep; thus put mesa in every path before %p and before /usr/X11.
#on 10.5/10.6 this should no longer be an issue.
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.
For best results install an update X server such as XQuartz from
#Also, Wine is unable to find the FreeType libraries unless you add Fink's lib
#directory to the library path. For example:
# export LD_LIBRARY_PATH=%p/lib
# Adding export DYLD_LIBRARY_PATH=%p/lib/freetype219/lib seemed to give better
# results - Damian
Another note: 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:
This only needs to be done once.
It will also warn that wine-gecko is missing the during the first launch and
ask to download it. Click "Install" to continue.
For a quick test of Wine, run %p/bin/notepad
This is the stable version of wine. For the development version, which may have
newer features or better compatibility, please install wine (fink install
Depends: %N (= %v-%r)
Files: include lib/libwine.dylib