diff options
| author | Jiayong Ou | 2009-10-12 22:45:40 +0200 |
|---|---|---|
| committer | Max Howell | 2009-10-12 22:50:51 +0100 |
| commit | 2e4359e22b246871ba1ad9d70ef219e2e1531503 (patch) | |
| tree | 2e865cb114b446339dcf68c215195b21c664c350 /Library | |
| parent | 139c6640fea8cf5df0b2731769cbc103026edd1e (diff) | |
| download | homebrew-2e4359e22b246871ba1ad9d70ef219e2e1531503.tar.bz2 | |
pkg-config support for mad
Added a .pc file so that pkg-config can find mad.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/mad.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Library/Formula/mad.rb b/Library/Formula/mad.rb index e2ecadfa3..68c811ade 100644 --- a/Library/Formula/mad.rb +++ b/Library/Formula/mad.rb @@ -5,8 +5,27 @@ class Mad <Formula url 'http://downloads.sourceforge.net/project/mad/libmad/0.15.1b/libmad-0.15.1b.tar.gz' md5 '1be543bc30c56fb6bea1d7bf6a64e66c' + def mad_pc + return <<-EOS +prefix=#{HOMEBREW_PREFIX} +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: mad +Description: MPEG Audio Decoder +Version: #{@version} +Requires: +Conflicts: +Libs: -L${libdir} -lmad -lm +Cflags: -I${includedir} + EOS + end + def install system "./configure --disable-debugging --enable-fpm=intel --prefix='#{prefix}'" system "make install" + + (lib+'pkgconfig'+'mad.pc').write mad_pc end end
\ No newline at end of file |
