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.
This commit is contained in:
brad 1999-08-02 05:15:46 +00:00
parent 2bef60c727
commit 66013e6f0d
8 changed files with 88 additions and 0 deletions

17
audio/bladeenc/Makefile Normal file
View File

@ -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 <bsd.port.mk>

View File

@ -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 <bsd.prog.mk>

3
audio/bladeenc/files/md5 Normal file
View File

@ -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

View File

@ -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 <machine/endian.h>
+ #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... */

View File

@ -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 <stdio.h>
#include <stdlib.h>
+#if !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__NetBSD__)
#include <malloc.h>
+#endif
#include "formatbitstream2.h"
#include "common.h"

View File

@ -0,0 +1 @@
MP3 encoder

7
audio/bladeenc/pkg/DESCR Normal file
View File

@ -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.

3
audio/bladeenc/pkg/PLIST Normal file
View File

@ -0,0 +1,3 @@
bin/bladeenc
share/doc/bladeenc/bladeenc.html
@dirrm share/doc/bladeenc