Skip to content

Commit

Permalink
Wine 1.7.0
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#21641.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information
camillol authored and jacknagel committed Aug 11, 2013
1 parent ca71147 commit e560dcb
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions Formula/wine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,23 @@ class WineMono < Formula
sha1 'dd349e72249ce5ff981be0e9dae33ac4a46a9f60'
end

# NOTE: when updating Wine, please check Wine-Gecko and Wine-Mono for updates
# http://wiki.winehq.org/Gecko
# http://wiki.winehq.org/Mono
class Wine < Formula
homepage 'http://winehq.org/'
url 'http://downloads.sourceforge.net/project/wine/Source/wine-1.6.tar.bz2'
sha256 'e1f130efbdcbfa211ca56ee03357ccd17a31443889b4feebdcb88248520b42ae'

# NOTE: when updating Wine, please check Wine-Gecko and Wine-Mono for updates too:
# * http://wiki.winehq.org/Gecko
# * http://wiki.winehq.org/Mono

head 'git://source.winehq.org/git/wine.git'

devel do
# NOTE: See above about updating Wine-Gecko and Wine-Mono.
url 'http://downloads.sourceforge.net/project/wine/Source/wine-1.7.0.tar.bz2'
sha256 '0106ba3c8f0699cc7ae6edfcf505f7709c9e6d963bf32ff9c690607def9d4d77'
end

env :std

# this tells Homebrew that dependencies must be built universal
Expand All @@ -35,7 +42,8 @@ def build.universal? ; true; end
depends_on 'jpeg'
depends_on 'libicns'
depends_on 'libtiff'
depends_on 'little-cms'
depends_on 'little-cms' unless build.devel?
depends_on 'little-cms2' if build.devel?
depends_on 'sane-backends'
depends_on 'libgphoto2'

Expand All @@ -49,6 +57,11 @@ def build.universal? ; true; end
cause 'error: invalid operand for instruction lretw'
end

def patches
# http://bugs.winehq.org/show_bug.cgi?id=34188
['http://bugs.winehq.org/attachment.cgi?id=45477']
end

# the following libraries are currently not specified as dependencies, or not built as 32-bit:
# configure: libv4l, gstreamer-0.10, libcapi20, libgsm

Expand All @@ -70,6 +83,15 @@ def install
ENV.append "CFLAGS", build32
ENV.append "LDFLAGS", build32

# Still miscompiles at v1.6
if ENV.compiler == :clang
opoo <<-EOS.undent
Clang currently miscompiles some parts of Wine. If you have gcc, you
can get a more stable build with:
brew install wine --use-gcc
EOS
end

# Workarounds for XCode not including pkg-config files
ENV.libxml2
ENV.append "LDFLAGS", "-lxslt"
Expand Down

0 comments on commit e560dcb

Please sign in to comment.