From shoesoft@gmx.net  Thu May  6 10:33:07 2004
Return-Path: <shoesoft@gmx.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E6F3A16A4D5
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  6 May 2004 10:33:07 -0700 (PDT)
Received: from email11.aon.at (WARSL402PIP7.highway.telekom.at [195.3.96.94])
	by mx1.FreeBSD.org (Postfix) with SMTP id CDC0643D2F
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  6 May 2004 10:33:05 -0700 (PDT)
	(envelope-from shoesoft@gmx.net)
Received: (qmail 284676 invoked from network); 6 May 2004 17:33:03 -0000
Received: from m120p004.dipool.highway.telekom.at (HELO taxman.pepperland) ([62.46.4.228]) (envelope-sender <shoesoft@gmx.net>)
          by qmail2rs.highway.telekom.at (qmail-ldap-1.03) with SMTP
          for <FreeBSD-gnats-submit@freebsd.org>; 6 May 2004 17:33:03 -0000
Message-Id: <1083864784.0@taxman.pepperland>
Date: Thu, 6 May 2004 19:33:04 +0200
From: "Stefan Ehmann" <shoesoft@gmx.net>
To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@freebsd.org>
Subject: new port: audio/musepack
X-Send-Pr-Version: gtk-send-pr 0.3.3 
X-GNATS-Notify:

>Number:         66334
>Category:       ports
>Synopsis:       new port: audio/musepack
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 06 10:40:17 PDT 2004
>Closed-Date:    Sun May 09 15:08:55 PDT 2004
>Last-Modified:  Sun May 09 15:08:55 PDT 2004
>Originator:     Stefan Ehmann
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:


System: FreeBSD 5.2-CURRENT #5: Fri Apr 23 00:35:26 CEST 2004
    root@taxman.pepperland:/usr/obj/usr/src/sys/TAXMAN



>Description:


Add new port audio/musepack - Decoder, encoder and replaygain for musepack (mpc).

This makes audio/mppdec obsolete, thus the old port should be deleted.

Tested on i386 and alpha.


>How-To-Repeat:





>Fix:


--- musepack.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	musepack
#	musepack/Makefile
#	musepack/distinfo
#	musepack/pkg-descr
#	musepack/files
#	musepack/files/patch-Makefile
#
echo c - musepack
mkdir -p musepack > /dev/null 2>&1
echo x - musepack/Makefile
sed 's/^X//' >musepack/Makefile << 'END-of-musepack/Makefile'
X# New ports collection makefile for:	musepack
X# Date created:				2004-04-16
X# Whom:					Stefan Ehmann <shoesoft@gmx.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	musepack
XPORTVERSION=	1.15r
XCATEGORIES=	audio
XMASTER_SITES=	http://corecodec.org/download.php/196/
XDISTNAME=	mpcsv7-src-${PORTVERSION}
X
XMAINTAINER=	shoesoft@gmx.net
XCOMMENT=	Decoder, encoder and replaygain for musepack (mpc)
X
XLIB_DEPENDS=	esd.2:${PORTSDIR}/audio/esound
X
XPLIST_FILES=	bin/mppdec bin/mppenc bin/replaygain
XBINS=	mppdec mppenc replaygain
XALL_TARGET=	${BINS}
XUSE_GMAKE=	yes
XUSE_REINPLACE=	yes
XWRKSRC=	${WRKDIR}/sv7
X
X.include <bsd.port.pre.mk>
X
X.if ${ARCH} == i386
XBUILD_DEPENDS=	nasm:${PORTSDIR}/devel/nasm
X.endif
X
Xpost-patch:
X.if ${ARCH} != i386
X	${REINPLACE_CMD} -e "s|#define USE_ASM|//#define USE_ASM|" ${WRKSRC}/mpp.h
X.endif
X	${REINPLACE_CMD} -e "s|<machine/soundcard.h>|<sys/soundcard.h>|" ${WRKSRC}/mppdec.h
X
Xdo-install:
X.for _BIN in ${BINS}
X	${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${_BIN} ${LOCALBASE}/bin/
X.endfor
X
X.include <bsd.port.post.mk>
END-of-musepack/Makefile
echo x - musepack/distinfo
sed 's/^X//' >musepack/distinfo << 'END-of-musepack/distinfo'
XMD5 (mpcsv7-src-1.15r.tar.gz) = 4ebf8573baf5ab176810052c16323b3a
XSIZE (mpcsv7-src-1.15r.tar.gz) = 538420
END-of-musepack/distinfo
echo x - musepack/pkg-descr
sed 's/^X//' >musepack/pkg-descr << 'END-of-musepack/pkg-descr'
XMusepack is an audio compression format with a strong emphasis on high quality.
XIt's not lossless, but it is designed for transparency, so that you won't be
Xable to hear differences between the original wave file and the much smaller MPC
Xfile.
X
XIt is based on the MPEG-1 Layer-2 / MP2 algorithms, but has rapidly developed
Xand vastly improved and is now at an advanced stage in which it contains heavily
Xoptimized and patentless code. 
X
XWWW: http://mpc.corecodec.org/
END-of-musepack/pkg-descr
echo c - musepack/files
mkdir -p musepack/files > /dev/null 2>&1
echo x - musepack/files/patch-Makefile
sed 's/^X//' >musepack/files/patch-Makefile << 'END-of-musepack/files/patch-Makefile'
X--- Makefile.orig	Wed Mar 17 23:17:54 2004
X+++ Makefile	Fri Apr 16 16:07:57 2004
X@@ -136,27 +136,21 @@
X OPTIM_SPEED = \
X 	-O3 -s                  \
X 	-finline-functions      \
X-	-mno-ieee-fp            \
X-	-ffast-math             \
X 	-fomit-frame-pointer    \
X 	-frerun-loop-opt        \
X 	-fstrength-reduce       \
X 	-fexpensive-optimizations \
X 	-funroll-all-loops -fmove-all-movables -fstrength-reduce \
X-	-mpreferred-stack-boundary=2 -malign-jumps=5 -malign-loops=0 -malign-functions=5
X 
X # -fcse-follow-jumps \
X 
X 
X OPTIM_SIZE = \
X 	-Os -s                  \
X-	-mno-ieee-fp            \
X-	-ffast-math             \
X 	-fomit-frame-pointer    \
X 	-frerun-loop-opt        \
X 	-fstrength-reduce       \
X 	-fmove-all-movables -fstrength-reduce -fcse-follow-jumps \
X-	-mpreferred-stack-boundary=2 -malign-jumps=5 -malign-loops=0 -malign-functions=5
X 
X # Options to generate Assembly code for inspecting
X 
X@@ -189,7 +183,7 @@
X 
X # Merge all options together for CFLAGS and CFLAG_SIZE
X 
X-CFLAGS        = $(ARCH) $(FEATURE) $(WARN) $(PROFILE) $(DEBUG) -DMAKE_$(BITS)BIT -DMPPDEC_VERSION=\"$(MPPDEC_VERSION)\" -DMPPENC_VERSION=\"$(MPPENC_VERSION)\"
X+CFLAGS        += $(FEATURE) $(WARN) $(PROFILE) $(DEBUG) -DMAKE_$(BITS)BIT -DMPPDEC_VERSION=\"$(MPPDEC_VERSION)\" -DMPPENC_VERSION=\"$(MPPENC_VERSION)\"
X CFLAGS       += -I$(XINCLDIR) -L$(XLIBDIR)
X #CFLAGS      += $(ASSEM)
X CFLAGS_SIZE   = $(CFLAGS) $(OPTIM_SIZE)
X@@ -226,14 +220,20 @@
X 
X # Lists of object and C files
X 
X-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
X+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
X 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
X MPPDEC_ASO = cpu_feat.o                                                                                     synthasm.o
X+ifeq ($(ARCH),i386)
X+MPPDEC_OBJ+= cpu_feat.o synthasm.o
X+endif
X 
X 
X-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
X+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
X 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
X MPPENC_ASO =                                                fft4gasm.o
X+ifeq ($(ARCH),i386)
X+MPPENC_OBJ+= fft4gasm.o
X+endif
X 
X 
X REPLAY_OBJ = replaygain.o gain_analysis.o pipeopen.o stderr.o _setargv.o
X@@ -353,8 +353,10 @@
X #
X # Compile mppdec source code files
X 
X-config.h: mpp.h config.c
X-	$(CC) -DMPP_DECODER $(CFLAGS) -o config config.c   $(LDADD) &> $(LOGFILE)
X+config: mpp.h config.c
X+	$(CC) -DMPP_DECODER $(CFLAGS) -o config config.c   $(LDADD)
X+
X+config.h: config
X 	@$(RM_F) config.h
X 	@./config "$(CC) $(CFLAGS) -o <<EXE>> <<SRC>> $(LDADD)" "./<<EXE>>"
X 	@$(RM_F) config
END-of-musepack/files/patch-Makefile
exit

--- musepack.shar ends here ---



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Sun May 9 15:08:46 PDT 2004 
State-Changed-Why:  
New port added, thank you! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=66334 
>Unformatted:
