From 66013e6f0dc0499691f2c143562a54a416c9fd48 Mon Sep 17 00:00:00 2001 From: brad Date: Mon, 2 Aug 1999 05:15:46 +0000 Subject: [PATCH] add bladeenc port - Blade's MP3 Encoder (BladeEnc) is a freeware MP3 encoder. It is based on the same ISO compression routines as mpegEnc, so you can expect roughly the same, or better, quality. The main difference is the appearance and speed. BladeEnc doesn't have a nice, user-friendly interface like mpegEnc, but it is more than three times faster, and it works with several popular front-end graphical user interfaces. --- audio/bladeenc/Makefile | 17 +++++++++++++++++ audio/bladeenc/files/Makefile | 17 +++++++++++++++++ audio/bladeenc/files/md5 | 3 +++ audio/bladeenc/patches/patch-aa | 28 ++++++++++++++++++++++++++++ audio/bladeenc/patches/patch-ab | 12 ++++++++++++ audio/bladeenc/pkg/COMMENT | 1 + audio/bladeenc/pkg/DESCR | 7 +++++++ audio/bladeenc/pkg/PLIST | 3 +++ 8 files changed, 88 insertions(+) create mode 100644 audio/bladeenc/Makefile create mode 100644 audio/bladeenc/files/Makefile create mode 100644 audio/bladeenc/files/md5 create mode 100644 audio/bladeenc/patches/patch-aa create mode 100644 audio/bladeenc/patches/patch-ab create mode 100644 audio/bladeenc/pkg/COMMENT create mode 100644 audio/bladeenc/pkg/DESCR create mode 100644 audio/bladeenc/pkg/PLIST diff --git a/audio/bladeenc/Makefile b/audio/bladeenc/Makefile new file mode 100644 index 00000000000..97cb75162cc --- /dev/null +++ b/audio/bladeenc/Makefile @@ -0,0 +1,17 @@ +# $OpenBSD: Makefile,v 1.1.1.1 1999/08/02 05:15:46 brad Exp $ + +DISTNAME= bladeenc-084-src-unstable +PKGNAME= bladeenc-0.84 +CATEGORIES= audio +MASTER_SITES= http://home8.swipnet.se/~w-82625/encoder/source/ + +post-extract: + @${CP} ${FILESDIR}/Makefile ${WRKSRC} + +do-install: + @${MKDIR} ${PREFIX}/share/doc/bladeenc + ${INSTALL_PROGRAM} ${WRKSRC}/bladeenc ${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/bladeenc.html ${PREFIX}/share/doc/bladeenc + + +.include diff --git a/audio/bladeenc/files/Makefile b/audio/bladeenc/files/Makefile new file mode 100644 index 00000000000..2cd301722d6 --- /dev/null +++ b/audio/bladeenc/files/Makefile @@ -0,0 +1,17 @@ +# $OpenBSD: Makefile,v 1.1.1.1 1999/08/02 05:15:46 brad Exp $ + +PROG= bladeenc +MAN= # empty +SRCS= codec.c bladesys.c bladtab.c main.c tables.c samplein.c \ + strupr.c formatbitstream2.c huffman.c l3bitstream.c l3psy.c \ + loop.c mdct.c reservoir.c subs.c encode.c common.c +DPADD= ${LIBM} +LDADD= -lm + +DEFS=-DSYSTEM=OPENBSD -funroll-all-loops +CFLAGS+= ${DEFS} + +codec.o: codec.c + ${CC} -O ${DEFS} -c ${.IMPSRC} + +.include diff --git a/audio/bladeenc/files/md5 b/audio/bladeenc/files/md5 new file mode 100644 index 00000000000..6f89f9da6e2 --- /dev/null +++ b/audio/bladeenc/files/md5 @@ -0,0 +1,3 @@ +MD5 (bladeenc-084-src-unstable.tar.gz) = ab1c3b8c826bac4cc9b561966a8dc0ab +RMD160 (bladeenc-084-src-unstable.tar.gz) = 54fe7a72ccec5fb943f9619ce62f88f30e84ae3e +SHA1 (bladeenc-084-src-unstable.tar.gz) = e8facce6f6afb0420ce654276f878e396c9345fe diff --git a/audio/bladeenc/patches/patch-aa b/audio/bladeenc/patches/patch-aa new file mode 100644 index 00000000000..b6c4daf73c1 --- /dev/null +++ b/audio/bladeenc/patches/patch-aa @@ -0,0 +1,28 @@ +--- system.h.orig Sun Aug 1 23:52:57 1999 ++++ system.h Sun Aug 1 23:55:08 1999 +@@ -31,6 +31,7 @@ + #define SCO5 10 + #define ULTRIX 11 + #define NETBSD 12 ++#define OPENBSD 13 + + + #ifndef SYSTEM +@@ -211,7 +212,17 @@ + #define HAVE_ULONG + #endif + ++/*____ NetBSD defines ________________________________________________________*/ ++ ++#if SYSTEM == OPENBSD + ++ #include ++ #define BYTEORDER BYTE_ORDER ++ #define DIRECTORY_SEPARATOR '/' ++ #define HAVE_USHORT ++ #define HAVE_UINT ++ #define HAVE_ULONG ++#endif + + + /*____ To make sure that certain necessary defines are set... */ diff --git a/audio/bladeenc/patches/patch-ab b/audio/bladeenc/patches/patch-ab new file mode 100644 index 00000000000..ce297fe496e --- /dev/null +++ b/audio/bladeenc/patches/patch-ab @@ -0,0 +1,12 @@ +--- formatbitstream2.c.orig Fri Jul 2 00:11:23 1999 ++++ formatbitstream2.c Fri Jul 2 00:12:21 1999 +@@ -17,7 +17,9 @@ + + #include + #include ++#if !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__NetBSD__) + #include ++#endif + #include "formatbitstream2.h" + #include "common.h" + diff --git a/audio/bladeenc/pkg/COMMENT b/audio/bladeenc/pkg/COMMENT new file mode 100644 index 00000000000..db4c24959fa --- /dev/null +++ b/audio/bladeenc/pkg/COMMENT @@ -0,0 +1 @@ +MP3 encoder diff --git a/audio/bladeenc/pkg/DESCR b/audio/bladeenc/pkg/DESCR new file mode 100644 index 00000000000..b3b5e59b2be --- /dev/null +++ b/audio/bladeenc/pkg/DESCR @@ -0,0 +1,7 @@ +Blade's MP3 Encoder (BladeEnc) is a freeware MP3 encoder. It is +based on the same ISO compression routines as mpegEnc, so you can +expect roughly the same, or better, quality. The main difference +is the appearance and speed. BladeEnc doesn't have a nice, +user-friendly interface like mpegEnc, but it is more than three +times faster, and it works with several popular front-end graphical +user interfaces. diff --git a/audio/bladeenc/pkg/PLIST b/audio/bladeenc/pkg/PLIST new file mode 100644 index 00000000000..8d2796676b5 --- /dev/null +++ b/audio/bladeenc/pkg/PLIST @@ -0,0 +1,3 @@ +bin/bladeenc +share/doc/bladeenc/bladeenc.html +@dirrm share/doc/bladeenc