Skip to content

Commit

Permalink
madplay: Install the manpages in the correct place
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information
Rogério Brito authored and adamv committed Mar 9, 2012
1 parent f85338b commit 6819cd4
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Library/Formula/madplay.rb
@@ -1,13 +1,10 @@
require 'formula'

class Madplay < Formula
homepage 'http://www.underbit.com/products/mad/'
url 'http://downloads.sourceforge.net/project/mad/madplay/0.15.2b/madplay-0.15.2b.tar.gz'
md5 '6814b47ceaa99880c754c5195aa1aac1'

def homepage
Formula.factory('mad').homepage
end

depends_on 'mad'
depends_on 'libid3tag'

Expand All @@ -16,10 +13,12 @@ def patches
end

def install
configure_flags = ["--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"]
args = ["--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"]
# Avoid "error: CPU you selected does not support x86-64 instruction set"
configure_flags << "--build=x86_64" if MacOS.prefer_64_bit?
system "./configure", *configure_flags
args << "--build=x86_64" if MacOS.prefer_64_bit?
system "./configure", *args
system "make install"
end
end

0 comments on commit 6819cd4

Please sign in to comment.