ports/70153: New port audio/mac (Monkey's audio codec)
Martin Dieringer
Martin.Dieringer at t-online.de
Sun Aug 8 07:50:20 UTC 2004
>Number: 70153
>Category: ports
>Synopsis: New port audio/mac (Monkey's audio codec)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Sun Aug 08 07:50:19 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Martin Dieringer
>Release: FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD pc.dieringer.dyndns.org 5.2-CURRENT FreeBSD 5.2-CURRENT #6: Fri Aug 6 17:59:21 CEST 2004 root@:/usr/obj/usr/src/sys/PC i386
>Description:
>How-To-Repeat:
>Fix:
--- mac.sh 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:
#
# mac
# mac/Makefile
# mac/README.html
# mac/distinfo
# mac/files
# mac/files/patch-aa
# mac/pkg-descr
# mac/pkg-plist
#
echo c - mac
mkdir -p mac > /dev/null 2>&1
echo x - mac/Makefile
sed 's/^X//' >mac/Makefile << 'END-of-mac/Makefile'
X# New ports collection makefile for: mac
X# Date created: 8 Aug 2004
X# Whom: dieringe
X#
X# $FreeBSD$
X#
X
XPORTNAME= mac
XPORTVERSION= 3.99
XPORTREVISION= 4
XCATEGORIES= audio
X
XMAINTAINER= dieringe at zedat.fu-berlin.de
XCOMMENT= Monkey's Audio lossless audio (de)compressor
X
XMASTER_SITES= ftp://ftp.altlinux.ru/pub/distributions/ALTLinux/Sisyphus/SRPMS.classic/
XDISTFILES= mac-3.99.u4-alt2.src.rpm
X
XEXTRACT_DEPENDS= rpm2cpio:${PORTSDIR}/archivers/rpm
XBUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
X
XEXTRACT_CMD= rpm2cpio
XEXTRACT_BEFORE_ARGS=
XEXTRACT_AFTER_ARGS= | ${CPIO} -id --quiet && ${TAR} -xyf mac-3.99-u4-linux.tar.bz2
X
XUSE_GMAKE= yes
XGNU_CONFIGURE= yes
XCONFIGURE_ARGS+= --enable-backward
X
XWRKSRC= ${WRKDIR}/mac-3.99-u4
X
XINSTALLS_SHLIB= yes
X
X.include <bsd.port.mk>
END-of-mac/Makefile
echo x - mac/README.html
sed 's/^X//' >mac/README.html << 'END-of-mac/README.html'
X<!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN">
X
X<html>
X <head>
X <title>The FreeBSD Ports Collection (port/mac)</title>
X </head>
X
X <body>
X <h1>The FreeBSD Ports Collection (port/mac)</h1>
X <hr>
X
X <p>You are now in the directory for the port "port/mac".</p>
X
X <p>The package name of this port is "mac-3.99_4".</p>
X
X <p>This is the one-line description for this port:</p>
X <hr>
X
X <p>
XMonkey's Audio lossless audio (de)compressor
X </p>
X <hr>
X
X <p>Please read the "<a href="pkg-descr">description file</a>" for a
X longer description and/or visit the <a href="http://www.monkeysaudio.com/">web site</a> for futher informations.</p>
X
X <p>If needed, you may contact the <a href=
X "mailto:dieringe at zedat.fu-berlin.de">maintainer</a> of this port or the port <a href=
X "mailto:ports at FreeBSD.org">mailing-list</a>.</p>
X
X <p>This port requires package(s) "" to build.</p>
X
X <p></p>
X
X <p>Go to the <a href="../../README.html">top of the ports tree</a> for
X a summary on how to use the ports collection.</p>
X <hr>
X
X <p><a href="../README.html">Go up one level</a> | <a href=
X "../../README.html">Go to top of ports tree</a></p>
X </body>
X</html>
X
END-of-mac/README.html
echo x - mac/distinfo
sed 's/^X//' >mac/distinfo << 'END-of-mac/distinfo'
XMD5 (mac-3.99.u4-alt2.src.rpm) = 86a38688a2395573637a2b6a033621df
XSIZE (mac-3.99.u4-alt2.src.rpm) = 307694
END-of-mac/distinfo
echo c - mac/files
mkdir -p mac/files > /dev/null 2>&1
echo x - mac/files/patch-aa
sed 's/^X//' >mac/files/patch-aa << 'END-of-mac/files/patch-aa'
X--- src/MACLib/APEInfo.cpp.ori Wed May 12 08:07:13 2004
X+++ src/MACLib/APEInfo.cpp Sun Aug 8 06:23:08 2004
X@@ -40,7 +40,7 @@
X // we don't want to analyze right away for non-local files
X // since a single I/O object is shared, we can't tag and read at the same time (i.e. in multiple threads)
X BOOL bAnalyzeNow = TRUE;
X- if ((wcsnicmp(pFilename, L"http://", 7) == 0) || (wcsnicmp(pFilename, L"m01p://", 7) == 0))
X+ if ((wcsncmp(pFilename, L"http://", 7) == 0) || (wcsncmp(pFilename, L"m01p://", 7) == 0))
X bAnalyzeNow = FALSE;
X
X m_spAPETag.Assign(new CAPETag(m_spIO, bAnalyzeNow));
X--- src/MACLib/APETag.cpp.ori Wed May 12 08:10:49 2004
X+++ src/MACLib/APETag.cpp Sun Aug 8 06:26:09 2004
X@@ -310,7 +310,7 @@
X
X for (int z = 0; z < m_nFields; z++)
X {
X- if (wcsicmp(m_aryFields[z]->GetFieldName(), pFieldName) == 0)
X+ if (wcscmp(m_aryFields[z]->GetFieldName(), pFieldName) == 0)
X return z;
X }
X
X@@ -478,7 +478,7 @@
X BOOL bFound = FALSE;
X while ((nGenreIndex < GENRE_COUNT) && (bFound == FALSE))
X {
X- if (_wcsicmp(cBuffer, g_ID3Genre[nGenreIndex]) == 0)
X+ if (wcscmp(cBuffer, g_ID3Genre[nGenreIndex]) == 0)
X {
X pID3Tag->Genre = nGenreIndex;
X bFound = TRUE;
X--- src/MACLib/Assembly/Assembly.h.ori Wed May 12 06:35:56 2004
X+++ src/MACLib/Assembly/Assembly.h Sun Aug 8 06:17:30 2004
X@@ -6,7 +6,7 @@
X void Adapt(short * pM, const short * pAdapt, int nDirection, int nOrder);
X int CalculateDotProduct(const short * pA, const short * pB, int nOrder);
X BOOL GetMMXAvailable();
X-};
X+}
X
X #endif // #ifndef APE_ASSEMBLY_H
X
X--- src/MACLib/MACLib.cpp.ori Wed May 12 08:56:22 2004
X+++ src/MACLib/MACLib.cpp Sun Aug 8 06:26:51 2004
X@@ -62,7 +62,7 @@
X pExtension--;
X
X // take the appropriate action (based on the extension)
X- if (wcsicmp(pExtension, L".apl") == 0)
X+ if (wcscmp(pExtension, L".apl") == 0)
X {
X // "link" file (.apl linked large APE file)
X CAPELink APELink(pFilename);
X@@ -72,7 +72,7 @@
X nStartBlock = APELink.GetStartBlock(); nFinishBlock = APELink.GetFinishBlock();
X }
X }
X- else if ((wcsicmp(pExtension, L".mac") == 0) || (wcsicmp(pExtension, L".ape") == 0))
X+ else if ((wcscmp(pExtension, L".mac") == 0) || (wcscmp(pExtension, L".ape") == 0))
X {
X // plain .ape file
X pAPEInfo = new CAPEInfo(&nErrorCode, pFilename);
X--- src/MACLib/WAVInputSource.cpp.ori Wed May 12 06:35:57 2004
X+++ src/MACLib/WAVInputSource.cpp Sun Aug 8 06:27:17 2004
X@@ -47,7 +47,7 @@
X pExtension--;
X
X // create the proper input source
X- if (wcsicmp(pExtension, L".wav") == 0)
X+ if (wcscmp(pExtension, L".wav") == 0)
X {
X if (pErrorCode) *pErrorCode = ERROR_SUCCESS;
X return new CWAVInputSource(pSourceName, pwfeSource, pTotalBlocks, pHeaderBytes, pTerminatingBytes, pErrorCode);
X--- src/Shared/NoWindows.h.ori Wed May 12 09:00:17 2004
X+++ src/Shared/NoWindows.h Sun Aug 8 06:16:35 2004
X@@ -50,7 +50,7 @@
X
X #include <locale.h>
X
X-#define _FPOSOFF(fp) ((long)(fp).__pos)
X+#define _FPOSOFF(fp) ((long)(fp))
X #define MAX_PATH 260
X
X #ifndef _WAVEFORMATEX_
END-of-mac/files/patch-aa
echo x - mac/pkg-descr
sed 's/^X//' >mac/pkg-descr << 'END-of-mac/pkg-descr'
XMonkey's Audio Codec is a lossless audio codec w/ good correspondence of
Xcompression (and decompresssion) ratio and time. Monkey's Audio Codec can be
Xused for personal, educational and non-commercial purposes. Commercial usage
Xrequires prior written permission from Monkey's Audio author.
X
XWWW: http://www.monkeysaudio.com/
X
X- dieringe
Xdieringe at zedat.fu-berlin.de
END-of-mac/pkg-descr
echo x - mac/pkg-plist
sed 's/^X//' >mac/pkg-plist << 'END-of-mac/pkg-plist'
Xbin/mac
Xinclude/mac/config.h
Xinclude/mac/All.h
Xinclude/mac/GlobalFunctions.h
Xinclude/mac/ID3Genres.h
Xinclude/mac/IO.h
Xinclude/mac/SmartPtr.h
Xinclude/mac/StdLibFileIO.h
Xinclude/mac/NoWindows.h
Xinclude/mac/CharacterHelper.h
Xinclude/mac/APECompress.h
Xinclude/mac/APECompressCore.h
Xinclude/mac/APECompressCreate.h
Xinclude/mac/APEDecompress.h
Xinclude/mac/APEHeader.h
Xinclude/mac/APEInfo.h
Xinclude/mac/APELink.h
Xinclude/mac/APETag.h
Xinclude/mac/MACLib.h
Xinclude/mac/MACProgressHelper.h
X at dirrm include/mac
Xlib/libmac.so.2
Xlib/libmac.so
Xlib/libmac.la
Xlib/libmac.a
END-of-mac/pkg-plist
exit
--- mac.sh ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list