Skip to content

Instantly share code, notes, and snippets.

@gitkaste
Created November 5, 2010 09:22
Show Gist options
  • Save gitkaste/663871 to your computer and use it in GitHub Desktop.
Save gitkaste/663871 to your computer and use it in GitHub Desktop.
require 'formula'
class Moc <Formula
url 'ftp://ftp.daper.net/pub/soft/moc/stable/moc-2.4.4.tar.bz2'
homepage 'http://moc.daper.net'
md5 '647c770a5542a4ae5437386807a89796'
depends_on 'berkeley-db'
depends_on 'jack'
def patches
DATA
end
def install
system "env > testenv"
system "./configure", "prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
#system "PATH=/bin:/usr/bin; ./configure --prefix=#{prefix} --disable-debug --disable-dependency-tracking"
#"PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin:/opt/local/bin/:/opt/local/sbin:/usr/local/sbin:/opt/local/bin/:/opt/local/sbin:/usr/local/sbin",
system "make install"
end
end
__END__
diff -ur ../moc-2.4.3.orig/configure ./configure
--- ../moc-2.4.3.orig/configure 2007-07-30 17:49:11.000000000 +0200
+++ ./configure 2008-03-26 19:32:00.000000000 +0100
@@ -21998,7 +21998,7 @@
;;
esac
-LDFLAGS="$LDFLAGS -export-dynamic"
+LDFLAGS="$LDFLAGS ${export_dynamic_flag}"
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
diff -ur ../moc-2.4.3.orig/options.c ./options.c
--- ../moc-2.4.3.orig/options.c 2007-05-22 20:24:34.000000000 +0200
+++ ./options.c 2008-03-26 20:02:14.000000000 +0100
@@ -172,8 +172,8 @@
option_add_int ("SyncPlaylist", 1);
option_add_int ("InputBuffer", 512);
option_add_int ("Prebuffering", 64);
- option_add_str ("JackOutLeft", "alsa_pcm:playback_1");
- option_add_str ("JackOutRight", "alsa_pcm:playback_2");
+ option_add_str ("JackOutLeft", "system:playback_1");
+ option_add_str ("JackOutRight", "system:playback_2");
option_add_int ("ASCIILines", 0);
option_add_str ("FastDir1", NULL);
option_add_str ("FastDir2", NULL);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment