aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/mpgtx.rb
blob: 26a82208e8ca949acbefe28459a7750be063f71c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'formula'

class Mpgtx < Formula
  homepage 'http://mpgtx.sourceforge.net'
  url 'https://downloads.sourceforge.net/project/mpgtx/mpgtx/1.3.1/mpgtx-1.3.1.tar.gz'
  sha1 '58b3d18b6dac968e8dd969a7b33c8a8fc31569cd'

  def install
    system "./configure", "--parachute",
                          "--prefix=#{prefix}",
                          "--manprefix=#{man}"
    # Unset LFLAGS, "-s" causes the linker to crash
    system "make", "LFLAGS="
    # Overide BSD incompatible cp flags set in makefile
    system "make install cpflags=RP"
  end
end