Created
October 18, 2014 18:59
-
-
Save lfranchi/d286ac32045a3c10b708 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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