Created
October 7, 2014 06:38
-
-
Save tdsmith/01bca223756ee3d4f8ee to your computer and use it in GitHub Desktop.
This file contains hidden or 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
require "formula" | |
class Mpeg4ip < Formula | |
homepage "http://mpeg4ip.sourceforge.net/" | |
url "https://downloads.sourceforge.net/project/mpeg4ip/mpeg4ip/1.5.0.1/mpeg4ip-1.5.0.1.tar.gz" | |
sha1 "1271de695ed65284d9c39aa91bf26c5494603fd3" | |
depends_on "libtool" => :build | |
depends_on "sdl" | |
depends_on "ffmpeg" | |
depends_on "faac" | |
depends_on "x264" | |
def install | |
inreplace "bootstrap", "libtoolize", "glibtoolize" | |
inreplace "common/video/iso-mpeg4/src/type_basic.cpp", "(Void)", "()" | |
ENV.append "CFLAGS", "-Wno-return-type" | |
ENV.append "CPPFLAGS", "-isystem/usr/include/c++/4.2.1/backward" | |
system "./bootstrap", "--disable-debug", | |
"--disable-dependency-tracking", | |
"--disable-silent-rules", | |
"--prefix=#{prefix}", | |
"--mandir=#{man}", | |
"--disable-player", | |
"--disable-id3tags", | |
"--disable-xvid", | |
"--disable-a52dec", | |
"--disable-mad", | |
"--disable-mpeg2dec", | |
"--disable-srtp", | |
"--disable-mp4live", | |
"--disable-alsatest", | |
"--disable-mp3lame", | |
"--disable-gtk-glib", | |
"--disable-glibtest", | |
"--disable-gtktest", | |
"--enable-server", | |
"--enable-faac", | |
"--enable-ffmpeg=#{Formula["ffmpeg"].opt_prefix}", | |
"--enable-x264" | |
system "make", "install" | |
end | |
test do | |
system "false" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment