summaryrefslogtreecommitdiff
path: root/audio/bonk
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2001-06-01 18:19:06 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2001-06-01 18:19:06 +0000
commitb4e49faebe03d71adb91264f7a300f766eb93c37 (patch)
tree120f052192d5f5df2ba091a6e01d1295c87447ad /audio/bonk
parentAdd vertex 0.0.1d, a 3D modeller designed specifically for generating (diff)
add bonk
lossy/lossless audio compressor
Notes
Notes: svn path=/head/; revision=43407
Diffstat (limited to 'audio/bonk')
-rw-r--r--audio/bonk/Makefile19
-rw-r--r--audio/bonk/distinfo1
-rw-r--r--audio/bonk/files/patch-Makefile15
-rw-r--r--audio/bonk/files/patch-bonk.cc24
-rw-r--r--audio/bonk/pkg-comment1
-rw-r--r--audio/bonk/pkg-descr13
-rw-r--r--audio/bonk/pkg-plist1
7 files changed, 74 insertions, 0 deletions
diff --git a/audio/bonk/Makefile b/audio/bonk/Makefile
new file mode 100644
index 000000000000..5054b0db27d3
--- /dev/null
+++ b/audio/bonk/Makefile
@@ -0,0 +1,19 @@
+# ex:ts=8
+# New ports collection makefile for: bonk
+# Date created: Jun 1, 2001
+# Whom: ijliao
+#
+# $FreeBSD$
+#
+
+PORTNAME= bonk
+PORTVERSION= 0.4
+CATEGORIES= audio
+MASTER_SITES= http://yoyo.cc.monash.edu.au/~pfh/bonk/
+
+MAINTAINER= ijliao@FreeBSD.org
+
+post-patch:
+ @${PERL} -pi -e "s,%%INSTALL_PROGRAM%%,${INSTALL_PROGRAM},g" ${WRKSRC}/Makefile
+
+.include <bsd.port.mk>
diff --git a/audio/bonk/distinfo b/audio/bonk/distinfo
new file mode 100644
index 000000000000..aa8e688f0702
--- /dev/null
+++ b/audio/bonk/distinfo
@@ -0,0 +1 @@
+MD5 (bonk-0.4.tar.gz) = a27653de4fbcf2226d0926530a66c568
diff --git a/audio/bonk/files/patch-Makefile b/audio/bonk/files/patch-Makefile
new file mode 100644
index 000000000000..bed427aaabca
--- /dev/null
+++ b/audio/bonk/files/patch-Makefile
@@ -0,0 +1,15 @@
+--- Makefile.orig Sat Jun 2 01:44:11 2001
++++ Makefile Sat Jun 2 01:44:46 2001
+@@ -2,10 +2,10 @@
+ all : bonk
+
+ bonk : bonk.cc utility.h wav.h
+- g++ -O3 -funroll-loops -o bonk bonk.cc
++ ${CXX} ${CXXFLAGS} -o bonk bonk.cc
+
+ install : bonk
+- install bonk /usr/bin
++ %%INSTALL_PROGRAM%% bonk ${PREFIX}/bin
+
+ clean :
+ rm -f core bonk
diff --git a/audio/bonk/files/patch-bonk.cc b/audio/bonk/files/patch-bonk.cc
new file mode 100644
index 000000000000..93377e114bed
--- /dev/null
+++ b/audio/bonk/files/patch-bonk.cc
@@ -0,0 +1,24 @@
+--- bonk.cc.orig Sat Jun 2 02:06:22 2001
++++ bonk.cc Sat Jun 2 02:07:11 2001
+@@ -30,7 +30,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <time.h>
+-#include <linux/soundcard.h>
++#include <sys/soundcard.h>
+ #include <sys/ioctl.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+@@ -41,6 +41,12 @@
+
+ #include "utility.h"
+ #include "wav.h"
++
++#if defined(_AIX) || defined(AIX)
++# define AFMT_S16_NE AFMT_S16_BE
++#else
++# define AFMT_S16_NE AFMT_S16_LE
++#endif
+
+ //Accuracy of fixed point calculations
+ const int lattice_shift = 10,
diff --git a/audio/bonk/pkg-comment b/audio/bonk/pkg-comment
new file mode 100644
index 000000000000..cbc6f1bb78f2
--- /dev/null
+++ b/audio/bonk/pkg-comment
@@ -0,0 +1 @@
+lossy/lossless audio compressor
diff --git a/audio/bonk/pkg-descr b/audio/bonk/pkg-descr
new file mode 100644
index 000000000000..a24cbf96271b
--- /dev/null
+++ b/audio/bonk/pkg-descr
@@ -0,0 +1,13 @@
+Bonk is a an audio compression program that operates in both lossy and
+lossless modes. The compression method Bonk uses is quite simple compared to
+other lossy formats such as MP3, and is based on speech compression techniques.
+It is nevertheless capable of producing a high compression ratio while
+maintaining good sound quality.
+
+In lossy mode, it averages 14:1 compression while remaining almost perceptually
+lossless. This corresponds to 95 kbps for high quality audio.
+
+In lossless mode the original audio file can be recovered exactly. Lossless
+mode typically achieves around 2:1 compression.
+
+WWW: http://yoyo.cc.monash.edu.au/~pfh/bonk/
diff --git a/audio/bonk/pkg-plist b/audio/bonk/pkg-plist
new file mode 100644
index 000000000000..0413ff4a2f17
--- /dev/null
+++ b/audio/bonk/pkg-plist
@@ -0,0 +1 @@
+bin/bonk