aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/mkvtoolnix.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2012-10-24 10:01:49 -0700
committerAdam Vandenberg2012-10-26 20:52:41 -0700
commitc5027edb8bae80d47e34a80850a127e1afa937ab (patch)
tree10c63637db9a43099b7c3b6d07983353c472ef89 /Library/Formula/mkvtoolnix.rb
parentf331ffecb4e44290ec0e9a00b6220b8d8d82574d (diff)
downloadhomebrew-c5027edb8bae80d47e34a80850a127e1afa937ab.tar.bz2
mkvtoolnix: use Boost 1.49
Diffstat (limited to 'Library/Formula/mkvtoolnix.rb')
-rw-r--r--Library/Formula/mkvtoolnix.rb33
1 files changed, 3 insertions, 30 deletions
diff --git a/Library/Formula/mkvtoolnix.rb b/Library/Formula/mkvtoolnix.rb
index b6c5928b8..e99ea5d10 100644
--- a/Library/Formula/mkvtoolnix.rb
+++ b/Library/Formula/mkvtoolnix.rb
@@ -7,7 +7,7 @@ class Mkvtoolnix < Formula
head 'https://github.com/mbunkus/mkvtoolnix.git'
- depends_on 'boost'
+ depends_on 'boost149'
depends_on 'libvorbis'
depends_on 'libmatroska'
depends_on 'flac' => :optional
@@ -18,40 +18,13 @@ class Mkvtoolnix < Formula
cause "Compilation errors with older clang."
end
- # Patch to build with #define foreach BOOST_FOREACH
- # See: https://svn.boost.org/trac/boost/ticket/6131
- def patches
- DATA unless build.head?
- end
-
def install
+ old_boost = Formula.factory("boost149")
system "./configure", "--disable-debug",
"--prefix=#{prefix}",
- "--with-boost-libdir=#{HOMEBREW_PREFIX}/lib", # For non-/usr/local prefix
+ "--with-boost=#{old_boost.prefix}",
"--with-boost-regex=boost_regex-mt" # via macports
system "./drake", "-j#{ENV.make_jobs}"
system "./drake install"
end
end
-
-__END__
-diff --git a/src/common/common.h b/src/common/common.h
-index 16f7177..8e9e053 100644
---- a/src/common/common.h
-+++ b/src/common/common.h
-@@ -17,7 +17,6 @@
- #undef min
- #undef max
-
--#include <boost/foreach.hpp>
- #include <boost/format.hpp>
- #include <boost/regex.hpp>
- #include <string>
-@@ -83,6 +82,7 @@ extern unsigned int MTX_DLL_API verbose;
-
- #define foreach BOOST_FOREACH
- #define reverse_foreach BOOST_REVERSE_FOREACH
-+#include <boost/foreach.hpp>
- #define mxforeach(it, vec) for (it = (vec).begin(); it != (vec).end(); it++)
- #define mxfind(value, cont) std::find(cont.begin(), cont.end(), value)
- #define mxfind2(it, value, cont) ((it = std::find((cont).begin(), (cont).end(), value)) != (cont).end())