diff options
| author | Misty De Meo | 2013-02-21 11:06:22 -0600 |
|---|---|---|
| committer | Misty De Meo | 2013-02-21 11:06:29 -0600 |
| commit | 6a248b15860e8d5979e009f377f315a7f700b92f (patch) | |
| tree | 6234391669ac62e1f36051572164e650b49a0fee /Library/Formula | |
| parent | 628e4084696eacc422f89981cebb930555d15c88 (diff) | |
| download | homebrew-6a248b15860e8d5979e009f377f315a7f700b92f.tar.bz2 | |
xmp: fix compilation on 10.6
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/xmp.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Library/Formula/xmp.rb b/Library/Formula/xmp.rb index 58a5c50a7..59373fd2b 100644 --- a/Library/Formula/xmp.rb +++ b/Library/Formula/xmp.rb @@ -7,6 +7,10 @@ class Xmp < Formula depends_on 'libxmp' + # 'uint8' doesn't exist on 10.6, just 'UInt8' + # Patch submitted upstream: http://sourceforge.net/mailarchive/forum.php?thread_name=CAGLuM17HE3wUrYEVZ9HgEbpPcvcyGAeAR4uHNj7gjcCN%3DBN3Eg%40mail.gmail.com&forum_name=xmp-devel + def patches; DATA; end + def install system "./configure", "--prefix=#{prefix}" system "make install" @@ -19,3 +23,18 @@ class Xmp < Formula system "#{bin}/xmp", "--load-only", "#{share}/delicate_oooz!.mod" end end + +__END__ +diff --git a/src/sound_coreaudio.c b/src/sound_coreaudio.c +index 45a625b..33c3bec 100644 +--- a/src/sound_coreaudio.c ++++ b/src/sound_coreaudio.c +@@ -21,7 +21,7 @@ static AudioUnit au; + */ + + static int paused; +-static uint8 *buffer; ++static UInt8 *buffer; + static int buffer_len; + static int buf_write_pos; + static int buf_read_pos; |
