Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jun 2008 16:14:55 +0400 (MSD)
From:      Dmitry Marakasov <amdmi3@amdmi3.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/124710: [NEW PORT] audio/audiere: High-level audio API
Message-ID:  <20080618121455.927511702D@hades.panopticon>
Resent-Message-ID: <200806181220.m5ICK4HV067713@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         124710
>Category:       ports
>Synopsis:       [NEW PORT] audio/audiere: High-level audio API
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 18 12:20:04 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 7.0-RELEASE-p1 i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 7.0-RELEASE-p1 FreeBSD 7.0-RELEASE-p1 #0: Fri Apr 25 11:18:45 MSD 2008 root@hades.panopticon:/usr/obj/usr/src/sys/HADES i386


>Description:
Note: this PR depends on ports/124502 (move devel/dumb to audio/)
---
Audiere is a high-level audio API. It can play Ogg Vorbis, MP3,
FLAC, uncompressed WAV, AIFF, MOD, S3M, XM, and IT files. For audio
output, Audiere supports DirectSound or WinMM in Windows, OSS on
Linux and Cygwin, and SGI AL on IRIX.

Audiere is open source and licensed under the LGPL. This means that
you may freely use Audiere in commercial products, as long as you
do not modify the source code. If you do modify Audiere and release
a product that uses your modifications, you must release your changes
to the code under the LGPL as well.

Audiere is portable. It is tested on Windows, Linux-i386, Cygwin,
and IRIX with at least three major compilers. Most of Audiere is
endian-independent, so I expect it would work with few modifications
on other architectures.

WWW: http://audiere.sourceforge.net/
>How-To-Repeat:
>Fix:

--- audiere-1.9.4.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:
#
#	audiere
#	audiere/Makefile
#	audiere/distinfo
#	audiere/pkg-descr
#	audiere/pkg-plist
#	audiere/files
#	audiere/files/patch-src-speexfile-speexfile.cpp
#
echo c - audiere
mkdir -p audiere > /dev/null 2>&1
echo x - audiere/Makefile
sed 's/^X//' >audiere/Makefile << 'END-of-audiere/Makefile'
X# New ports collection makefile for:	audiere
X# Date created:		12 Sep 2007
X# Whom:			Dmitry Marakasov <amdmi3@amdmi3.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	audiere
XPORTVERSION=	1.9.4
XCATEGORIES=	audio
XMASTER_SITES=	SF
X
XMAINTAINER=	amdmi3@amdmi3.ru
XCOMMENT=	High-level audio API
X
XGNU_CONFIGURE=	yes
XUSE_GMAKE=	yes
XWANT_WX=	yes
XUSE_AUTOTOOLS=	autoconf:261
XUSE_LDCONFIG=	yes
X
XCONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
XCONFIGURE_ENV=	LDFLAGS="-L${LOCALBASE}/lib" \
X		CPPFLAGS="-I${LOCALBASE}/include/speex -I${LOCALBASE}/include" \
X		PTHREAD_LIBS="${PTHREAD_LIBS}" PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
X
XPORTDOCS=	changelog.txt cvs.txt dependencies.txt faq.txt glossary.txt \
X		license.txt overview.txt readme.txt release-howto.txt \
X		tutorial.txt
X
XCONFIGURE_REPLACES='s|wx_config|no_&|'
X
XOPTIONS= 	DUMB	"Enable DUMB support"	on \
X		CDAUDIO	"Enable libcdaudio support"	on \
X		VORBIS	"Enable ogg vorbis support"	on \
X		SPEEX	"Enable speex support"	on
X#		FLAC	"Enable FLAC support"	on
X
X.include <bsd.port.pre.mk>
X
X# Broken with latest FLAC
X#.if !defined(WITHOUT_FLAC)
X#LIB_DEPENDS+=	FLAC:${PORTSDIR}/audio/flac
X#.else
XCONFIGURE_REPLACES+='/AC_CHECK_LIB/ s|FLAC|no_&|'
X#.endif
X
X.if !defined(WITHOUT_DUMB)
XBUILD_DEPENDS+=	${LOCALBASE}/lib/libdumb.a:${PORTSDIR}/audio/dumb
X.else
XCONFIGURE_REPLACES+='/AC_CHECK_LIB/ s|dumb|no_&|'
X.endif
X
X.if !defined(WITHOUT_CDAUDIO)
XLIB_DEPENDS+=	cdaudio.1:${PORTSDIR}/audio/libcdaudio
X.else
XCONFIGURE_REPLACES+='/AC_CHECK_LIB/ s|cdaudio|no_&|'
X.endif
X
X.if !defined(WITHOUT_VORBIS)
XLIB_DEPENDS+=	vorbis.4:${PORTSDIR}/audio/libvorbis \
X		ogg.5:${PORTSDIR}/audio/libogg
X.else
XCONFIGURE_REPLACES+='/AC_CHECK_HEADER/ s|vorbis|no_&|'
X.endif
X
X.if !defined(WITHOUT_SPEEX)
XLIB_DEPENDS+=	speex.1:${PORTSDIR}/audio/speex
X.else
XCONFIGURE_REPLACES+='/AC_CHECK_HEADER/ s|speex|no_&|'
X.endif
X
Xpost-patch:
X	@${REINPLACE_CMD} ${CONFIGURE_REPLACES:C/.*/-e &/} \
X		-e 's|-lpthread|${PTHREAD_LIBS}|' \
X		${WRKSRC}/configure.in
X
X.if !defined(NOPORTDOCS)
Xpost-install:
X	${MKDIR} ${DOCSDIR}
X.for f in ${PORTDOCS}
X	${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}
X.endfor
X.endif
X
X.include <bsd.port.post.mk>
END-of-audiere/Makefile
echo x - audiere/distinfo
sed 's/^X//' >audiere/distinfo << 'END-of-audiere/distinfo'
XMD5 (audiere-1.9.4.tar.gz) = b95dfe6f1e69cfd12371747f22772766
XSHA256 (audiere-1.9.4.tar.gz) = 74538fbc2f1ef467b3e1376c6ff4e0f40b664fca1dbfb1fcaa2fb823d5f5a219
XSIZE (audiere-1.9.4.tar.gz) = 453279
END-of-audiere/distinfo
echo x - audiere/pkg-descr
sed 's/^X//' >audiere/pkg-descr << 'END-of-audiere/pkg-descr'
XAudiere is a high-level audio API. It can play Ogg Vorbis, MP3,
XFLAC, uncompressed WAV, AIFF, MOD, S3M, XM, and IT files. For audio
Xoutput, Audiere supports DirectSound or WinMM in Windows, OSS on
XLinux and Cygwin, and SGI AL on IRIX.
X
XAudiere is open source and licensed under the LGPL. This means that
Xyou may freely use Audiere in commercial products, as long as you
Xdo not modify the source code. If you do modify Audiere and release
Xa product that uses your modifications, you must release your changes
Xto the code under the LGPL as well.
X
XAudiere is portable. It is tested on Windows, Linux-i386, Cygwin,
Xand IRIX with at least three major compilers. Most of Audiere is
Xendian-independent, so I expect it would work with few modifications
Xon other architectures.
X
XWWW: http://audiere.sourceforge.net/
END-of-audiere/pkg-descr
echo x - audiere/pkg-plist
sed 's/^X//' >audiere/pkg-plist << 'END-of-audiere/pkg-plist'
Xbin/audiere-config
Xinclude/audiere.h
Xlib/libaudiere-1.9.4.so
Xlib/libaudiere.a
Xlib/libaudiere.la
Xlib/libaudiere.so
END-of-audiere/pkg-plist
echo c - audiere/files
mkdir -p audiere/files > /dev/null 2>&1
echo x - audiere/files/patch-src-speexfile-speexfile.cpp
sed 's/^X//' >audiere/files/patch-src-speexfile-speexfile.cpp << 'END-of-audiere/files/patch-src-speexfile-speexfile.cpp'
X--- src/speexfile/speexfile.cpp.orig	2006-02-14 07:57:01.000000000 +0300
X+++ src/speexfile/speexfile.cpp	2008-06-16 04:56:31.000000000 +0400
X@@ -871,7 +871,7 @@
X void *speexfile::header_to_decoder ( SpeexHeader *header, int enh_enabled, int *frame_size, int *rate, int *nframes, int forceMode, int *channels, SpeexStereoState *stereo )
X {
X     void *st;
X-    SpeexMode *mode;
X+    const SpeexMode *mode;
X     SpeexCallback callback;
X     int modeID;
X 
END-of-audiere/files/patch-src-speexfile-speexfile.cpp
exit
--- audiere-1.9.4.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080618121455.927511702D>