homebrew-core/Formula/shorten.rb
Brian Smyth dcd8571b97 Shorten formula.
Shorten reduces the size of waveform files (such as audio) using Huffman
coding of prediction residuals and optional additional quantisation. In
lossless mode the amount of compression obtained depends on the nature
of the waveform. Those composing of low frequencies and low amplitudes
give the best compression, which may be 2:1 or better. Lossy compression
operates by specifying a minimum acceptable segmental signal to noise
ratio or a maximum bit rate. Lossy compression operates by zeroing the
lower order bits of the waveform, so retaining waveform shape.
2009-09-22 08:03:15 -04:00

12 lines
364 B
Ruby

require 'brewkit'
class Shorten <Formula
@url='http://www.etree.org/shnutils/shorten/dist/src/shorten-3.6.1.tar.gz'
@homepage='http://www.etree.org/shnutils/shorten/'
@md5='fb59c16fcedc4f4865d277f6e45866a7'
def install
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
system "make install"
end
end