aboutsummaryrefslogtreecommitdiffstats
path: root/audio/musepack
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-05-10 06:07:02 +0800
committerpav <pav@FreeBSD.org>2004-05-10 06:07:02 +0800
commit9f535465a2d9cac8ffab633f83a9d369e5508c9a (patch)
tree898fabbaafdf7bdb0787b046f4c967c52881a181 /audio/musepack
parentbdd4995529becc0d53bcfd15f7ca391236aac99e (diff)
downloadfreebsd-ports-gnome-9f535465a2d9cac8ffab633f83a9d369e5508c9a.tar.gz
freebsd-ports-gnome-9f535465a2d9cac8ffab633f83a9d369e5508c9a.tar.zst
freebsd-ports-gnome-9f535465a2d9cac8ffab633f83a9d369e5508c9a.zip
Add musepack, decoder, encoder and replaygain for musepack audio format.
PR: ports/66334 Submitted by: Stefan Ehmann <shoesoft@gmx.net>
Diffstat (limited to 'audio/musepack')
-rw-r--r--audio/musepack/Makefile43
-rw-r--r--audio/musepack/distinfo2
-rw-r--r--audio/musepack/files/patch-Makefile75
-rw-r--r--audio/musepack/pkg-descr10
4 files changed, 130 insertions, 0 deletions
diff --git a/audio/musepack/Makefile b/audio/musepack/Makefile
new file mode 100644
index 000000000000..c24fe971734d
--- /dev/null
+++ b/audio/musepack/Makefile
@@ -0,0 +1,43 @@
+# New ports collection makefile for: musepack
+# Date created: 2004-04-16
+# Whom: Stefan Ehmann <shoesoft@gmx.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= musepack
+PORTVERSION= 1.15r
+CATEGORIES= audio
+MASTER_SITES= http://corecodec.org/download.php/196/
+DISTNAME= mpcsv7-src-${PORTVERSION}
+
+MAINTAINER= shoesoft@gmx.net
+COMMENT= Decoder, encoder and replaygain for musepack (mpc)
+
+LIB_DEPENDS= esd.2:${PORTSDIR}/audio/esound
+
+PLIST_FILES= bin/mppdec bin/mppenc bin/replaygain
+BINS= mppdec mppenc replaygain
+ALL_TARGET= ${BINS}
+USE_GMAKE= yes
+USE_REINPLACE= yes
+WRKSRC= ${WRKDIR}/sv7
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == i386
+BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
+.endif
+
+post-patch:
+.if ${ARCH} != i386
+ ${REINPLACE_CMD} -e "s|#define USE_ASM|//#define USE_ASM|" ${WRKSRC}/mpp.h
+.endif
+ ${REINPLACE_CMD} -e "s|<machine/soundcard.h>|<sys/soundcard.h>|" ${WRKSRC}/mppdec.h
+
+do-install:
+.for _BIN in ${BINS}
+ ${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${_BIN} ${LOCALBASE}/bin
+.endfor
+
+.include <bsd.port.post.mk>
diff --git a/audio/musepack/distinfo b/audio/musepack/distinfo
new file mode 100644
index 000000000000..97f1d6b8f18f
--- /dev/null
+++ b/audio/musepack/distinfo
@@ -0,0 +1,2 @@
+MD5 (mpcsv7-src-1.15r.tar.gz) = 4ebf8573baf5ab176810052c16323b3a
+SIZE (mpcsv7-src-1.15r.tar.gz) = 538420
diff --git a/audio/musepack/files/patch-Makefile b/audio/musepack/files/patch-Makefile
new file mode 100644
index 000000000000..75e20e3f1578
--- /dev/null
+++ b/audio/musepack/files/patch-Makefile
@@ -0,0 +1,75 @@
+--- Makefile.orig Wed Mar 17 23:17:54 2004
++++ Makefile Fri Apr 16 16:07:57 2004
+@@ -136,27 +136,21 @@
+ OPTIM_SPEED = \
+ -O3 -s \
+ -finline-functions \
+- -mno-ieee-fp \
+- -ffast-math \
+ -fomit-frame-pointer \
+ -frerun-loop-opt \
+ -fstrength-reduce \
+ -fexpensive-optimizations \
+ -funroll-all-loops -fmove-all-movables -fstrength-reduce \
+- -mpreferred-stack-boundary=2 -malign-jumps=5 -malign-loops=0 -malign-functions=5
+
+ # -fcse-follow-jumps \
+
+
+ OPTIM_SIZE = \
+ -Os -s \
+- -mno-ieee-fp \
+- -ffast-math \
+ -fomit-frame-pointer \
+ -frerun-loop-opt \
+ -fstrength-reduce \
+ -fmove-all-movables -fstrength-reduce -fcse-follow-jumps \
+- -mpreferred-stack-boundary=2 -malign-jumps=5 -malign-loops=0 -malign-functions=5
+
+ # Options to generate Assembly code for inspecting
+
+@@ -189,7 +183,7 @@
+
+ # Merge all options together for CFLAGS and CFLAG_SIZE
+
+-CFLAGS = $(ARCH) $(FEATURE) $(WARN) $(PROFILE) $(DEBUG) -DMAKE_$(BITS)BIT -DMPPDEC_VERSION=\"$(MPPDEC_VERSION)\" -DMPPENC_VERSION=\"$(MPPENC_VERSION)\"
++CFLAGS += $(FEATURE) $(WARN) $(PROFILE) $(DEBUG) -DMAKE_$(BITS)BIT -DMPPDEC_VERSION=\"$(MPPDEC_VERSION)\" -DMPPENC_VERSION=\"$(MPPENC_VERSION)\"
+ CFLAGS += -I$(XINCLDIR) -L$(XLIBDIR)
+ #CFLAGS += $(ASSEM)
+ CFLAGS_SIZE = $(CFLAGS) $(OPTIM_SIZE)
+@@ -226,14 +220,20 @@
+
+ # Lists of object and C files
+
+-MPPDEC_OBJ = cpu_feat.o decode.o http.o huffsv7.o huffsv46.o id3tag.o mppdec.o profile.o requant.o synth.o synthasm.o synthtab.o toolsd.o wave_out.o stderr.o _setargv.o
++MPPDEC_OBJ = decode.o http.o huffsv7.o huffsv46.o id3tag.o mppdec.o profile.o requant.o synth.o synthtab.o toolsd.o wave_out.o stderr.o _setargv.o
+ MPPDEC_SRC = decode.c http.c huffsv7.c huffsv46.c id3tag.c mppdec.c profile.c requant.c synth.c synthtab.c tools.c wave_out.c stderr.c _setargv.c
+ MPPDEC_ASO = cpu_feat.o synthasm.o
++ifeq ($(ARCH),i386)
++MPPDEC_OBJ+= cpu_feat.o synthasm.o
++endif
+
+
+-MPPENC_OBJ = analy_filter.o ans.o bitstream.o cvd.o fft4g.o fft4gasm.o fft_routines.o mppenc.o profile.o psy.o psy_tab.o quant.o huffsv7e.o encode_sv7.o wave_in.o tags.o toolse.o fastmath.o pipeopen.o stderr.o regress.o keyboard.o
++MPPENC_OBJ = analy_filter.o ans.o bitstream.o cvd.o fft4g.o fft_routines.o mppenc.o profile.o psy.o psy_tab.o quant.o huffsv7e.o encode_sv7.o wave_in.o tags.o toolse.o fastmath.o pipeopen.o stderr.o regress.o keyboard.o
+ MPPENC_SRC = analy_filter.c ans.c bitstream.c cvd.c fft4g.c fft_routines.c mppenc.c profile.c psy.c psy_tab.c quant.c huffsv7.c encode_sv7.c wave_in.c tags.c tools.c fastmath.c pipeopen.c stderr.c regress.c keyboard.c
+ MPPENC_ASO = fft4gasm.o
++ifeq ($(ARCH),i386)
++MPPENC_OBJ+= fft4gasm.o
++endif
+
+
+ REPLAY_OBJ = replaygain.o gain_analysis.o pipeopen.o stderr.o _setargv.o
+@@ -353,8 +353,10 @@
+ #
+ # Compile mppdec source code files
+
+-config.h: mpp.h config.c
+- $(CC) -DMPP_DECODER $(CFLAGS) -o config config.c $(LDADD) &> $(LOGFILE)
++config: mpp.h config.c
++ $(CC) -DMPP_DECODER $(CFLAGS) -o config config.c $(LDADD)
++
++config.h: config
+ @$(RM_F) config.h
+ @./config "$(CC) $(CFLAGS) -o <<EXE>> <<SRC>> $(LDADD)" "./<<EXE>>"
+ @$(RM_F) config
diff --git a/audio/musepack/pkg-descr b/audio/musepack/pkg-descr
new file mode 100644
index 000000000000..e9e78d1dac2c
--- /dev/null
+++ b/audio/musepack/pkg-descr
@@ -0,0 +1,10 @@
+Musepack is an audio compression format with a strong emphasis on high quality.
+It's not lossless, but it is designed for transparency, so that you won't be
+able to hear differences between the original wave file and the much smaller MPC
+file.
+
+It is based on the MPEG-1 Layer-2 / MP2 algorithms, but has rapidly developed
+and vastly improved and is now at an advanced stage in which it contains heavily
+optimized and patentless code.
+
+WWW: http://mpc.corecodec.org/