aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBrian Smyth2009-09-16 16:40:21 -0400
committerBrian Smyth2009-09-22 08:03:15 -0400
commitfd6913b920a672dfb0316ef20d456b706fdd1aa9 (patch)
treeea081ec5091e236ac45613740a74e4742829e1d0 /Library
parentcb6b4cc64a4a5e8edcf5d3792de4b55e8da713a0 (diff)
downloadhomebrew-fd6913b920a672dfb0316ef20d456b706fdd1aa9.tar.bz2
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.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/shorten.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Formula/shorten.rb b/Library/Formula/shorten.rb
new file mode 100644
index 000000000..9e5881e77
--- /dev/null
+++ b/Library/Formula/shorten.rb
@@ -0,0 +1,12 @@
+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