diff options
author | ijliao <ijliao@FreeBSD.org> | 2001-06-02 02:19:06 +0800 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2001-06-02 02:19:06 +0800 |
commit | 7c1017d1c1476cc959ca4e56f0372de5477c9009 (patch) | |
tree | 3099824969271330a1720c31c1bb7ffabd23b2f0 /audio/bonk | |
parent | 3b34e24f7e0f7a8620fe9663203654e503af790d (diff) | |
download | freebsd-ports-gnome-7c1017d1c1476cc959ca4e56f0372de5477c9009.tar.gz freebsd-ports-gnome-7c1017d1c1476cc959ca4e56f0372de5477c9009.tar.zst freebsd-ports-gnome-7c1017d1c1476cc959ca4e56f0372de5477c9009.zip |
add bonk
lossy/lossless audio compressor
Diffstat (limited to 'audio/bonk')
-rw-r--r-- | audio/bonk/Makefile | 19 | ||||
-rw-r--r-- | audio/bonk/distinfo | 1 | ||||
-rw-r--r-- | audio/bonk/files/patch-Makefile | 15 | ||||
-rw-r--r-- | audio/bonk/files/patch-bonk.cc | 24 | ||||
-rw-r--r-- | audio/bonk/pkg-comment | 1 | ||||
-rw-r--r-- | audio/bonk/pkg-descr | 13 | ||||
-rw-r--r-- | audio/bonk/pkg-plist | 1 |
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 |