Skip to content

Instantly share code, notes, and snippets.

@lfranchi
Created October 18, 2014 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lfranchi/d286ac32045a3c10b708 to your computer and use it in GitHub Desktop.
Save lfranchi/d286ac32045a3c10b708 to your computer and use it in GitHub Desktop.
diff --git a/vlc.rb b/vlc.rb
index d577870..f66ff65 100644
--- a/vlc.rb
+++ b/vlc.rb
@@ -31,7 +31,7 @@ class Vlc < Formula
# gettext is keg-only so make sure vlc finds it
gettext = Formula.factory("gettext")
- ldf = "LDFLAGS=\"-L#{gettext.lib} -lintl\""
+ ldf = "LDFLAGS=\"-L#{gettext.lib} -lintl -lstdc++\""
cfl = "CFLAGS=\"-I#{gettext.include} -mmacosx-version-min=10.7\""
cxxfl = "CXXFLAGS=\" -mmacosx-version-min=10.7\""
print "Adding libintl directly to the environment: #{ENV['LDFLAGS']} and #{ENV['CFLAGS']}"
@@ -39,7 +39,9 @@ class Vlc < Formula
# this is needed to find some m4 macros installed by homebrew's pkg-config
aclocal = "ACLOCAL_ARGS=\"-I /usr/local/share/aclocal\""
- if MacOS.version >= 10.8
+ if MacOS.version >= 10.10
+ sdk = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk"
+ elsif MacOS.version >= 10.8
sdk = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk"
elsif MacOS.version >= 10.7
sdk = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment