Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Mar 2008 04:03:58 GMT
From:      Scot Hetzel <swhetzel@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/121344: new port audio/akode-plugins-pulseaudio
Message-ID:  <200803040403.m2443wfi015216@www.freebsd.org>
Resent-Message-ID: <200803040410.m244A1kC009700@freefall.freebsd.org>

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

>Number:         121344
>Category:       ports
>Synopsis:       new port audio/akode-plugins-pulseaudio
>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:   Tue Mar 04 04:10:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Scot Hetzel
>Release:        8.0-CURRENT
>Organization:
>Environment:
FreeBSD hp010 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Sat Feb 16 06:42:46 CST 2008     root@hp010:/usr/src/sys/amd64/compile/DV8135NR  amd64

>Description:
Attached is the port to build the Akode PulseAudio plugin, this plugin is a replacement for the recently retired Akode PolypAudio plugin.

This plugin was created from the akode-pulseaudio.patch obtained from Fedora Core 6.
>How-To-Repeat:

>Fix:
The attached shar archive contains:

akode-plugins-pulseaudio port and the patch to the akode port to add PulseAudio output plugin to OPTIONS (off by default).

I have no objection if kde@ wish to take maintanership of this port.  I am currently listed as maintainer.

Patch attached with submission follows:

# 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:
#
#	akode-plugins-pulseaudio
#	akode-plugins-pulseaudio/pkg-descr
#	akode-plugins-pulseaudio/pkg-plist
#	akode-plugins-pulseaudio/distinfo
#	akode-plugins-pulseaudio/files
#	akode-plugins-pulseaudio/files/patch-configure
#	akode-plugins-pulseaudio/files/patch-akode_plugins-Makefile.in
#	akode-plugins-pulseaudio/files/patch-akode_Makefile.in
#	akode-plugins-pulseaudio/files/patch-akode::plugins::polyp_sink::polyp_sink.cpp
#	akode-plugins-pulseaudio/Makefile
#	akode-plugins-pulseaudio/akode.patch
#
echo c - akode-plugins-pulseaudio
mkdir -p akode-plugins-pulseaudio > /dev/null 2>&1
echo x - akode-plugins-pulseaudio/pkg-descr
sed 's/^X//' >akode-plugins-pulseaudio/pkg-descr << 'END-of-akode-plugins-pulseaudio/pkg-descr'
XaKode is a simple audio-decoding frame-work that provides a uniform interface   
Xto decode the most common audio-formats. It also has a direct playback option   
Xfor a number of audio-outputs.
END-of-akode-plugins-pulseaudio/pkg-descr
echo x - akode-plugins-pulseaudio/pkg-plist
sed 's/^X//' >akode-plugins-pulseaudio/pkg-plist << 'END-of-akode-plugins-pulseaudio/pkg-plist'
Xlib/libakode_polyp_sink.a
Xlib/libakode_polyp_sink.la
Xlib/libakode_polyp_sink.so
END-of-akode-plugins-pulseaudio/pkg-plist
echo x - akode-plugins-pulseaudio/distinfo
sed 's/^X//' >akode-plugins-pulseaudio/distinfo << 'END-of-akode-plugins-pulseaudio/distinfo'
XMD5 (30375-akode-2.0.1.tar.bz2) = 94a10e7729b20b669bc5c7721f62e162
XSHA256 (30375-akode-2.0.1.tar.bz2) = a1a31d3ea59e151ff1ff51e9f2be0db84fc9fcb40f590abb1c46494d6ff1c08e
XSIZE (30375-akode-2.0.1.tar.bz2) = 460964
END-of-akode-plugins-pulseaudio/distinfo
echo c - akode-plugins-pulseaudio/files
mkdir -p akode-plugins-pulseaudio/files > /dev/null 2>&1
echo x - akode-plugins-pulseaudio/files/patch-configure
sed 's/^X//' >akode-plugins-pulseaudio/files/patch-configure << 'END-of-akode-plugins-pulseaudio/files/patch-configure'
X--- configure.orig	Sun Jun 10 13:15:44 2007
X+++ configure	Sun Jun 10 13:18:48 2007
X@@ -23036,12 +23036,12 @@
X fi;
X 
X if test "x$polypaudio_test" = "xyes" ; then
X-echo "$as_me:$LINENO: checking for Polypaudio 0.7 or later" >&5
X-echo $ECHO_N "checking for Polypaudio 0.7 or later... $ECHO_C" >&6
X-if $PKG_CONFIG --atleast-version 0.7 polyplib-simple >/dev/null 2>&1 ; then
X-  POLYP_CFLAGS="`$PKG_CONFIG --cflags polyplib-simple`"
X-  POLYP_LIBADD="`$PKG_CONFIG --libs-only-l polyplib-simple`"
X-  POLYP_LDFLAGS="`$PKG_CONFIG --libs-only-L polyplib-simple`"
X+echo "$as_me:$LINENO: checking for Pulseaudio 0.9.2 or later" >&5
X+echo $ECHO_N "checking for Pulseaudio 0.9.2 or later... $ECHO_C" >&6
X+if $PKG_CONFIG --atleast-version 0.9.2 libpulse-simple >/dev/null 2>&1 ; then
X+  POLYP_CFLAGS="`$PKG_CONFIG --cflags libpulse-simple`"
X+  POLYP_LIBADD="`$PKG_CONFIG --libs-only-l libpulse-simple`"
X+  POLYP_LDFLAGS="`$PKG_CONFIG --libs-only-L libpulse-simple`"
X   have_polyp=yes
X   echo "$as_me:$LINENO: result: yes" >&5
X echo "${ECHO_T}yes" >&6
END-of-akode-plugins-pulseaudio/files/patch-configure
echo x - akode-plugins-pulseaudio/files/patch-akode_plugins-Makefile.in
sed 's/^X//' >akode-plugins-pulseaudio/files/patch-akode_plugins-Makefile.in << 'END-of-akode-plugins-pulseaudio/files/patch-akode_plugins-Makefile.in'
X--- akode/plugins/Makefile.in.orig	Tue Nov 29 18:10:20 2005
X+++ akode/plugins/Makefile.in	Tue Nov 29 18:10:45 2005
X@@ -252,11 +252,7 @@
X @include_sun_sink_TRUE@AKODE_SUN_SINK = sun_sink
X @include_jack_sink_TRUE@AKODE_JACK_SINK = jack_sink
X @include_polyp_sink_TRUE@AKODE_POLYP_SINK = polyp_sink
X-SUBDIRS = $(AKODE_MPC_DECODER) $(AKODE_XIPH_DECODER) \
X-         $(AKODE_MPEG_DECODER) $(AKODE_FFMPEG_DECODER) \
X-         $(AKODE_ALSA_SINK) $(AKODE_OSS_SINK) $(AKODE_SUN_SINK) \
X-         $(AKODE_JACK_SINK) $(AKODE_POLYP_SINK) \
X-         $(AKODE_SRC_RESAMPLER)
X+SUBDIRS = %%SUBDIRS%%
X 
X #>- all: all-recursive
X #>+ 1
END-of-akode-plugins-pulseaudio/files/patch-akode_plugins-Makefile.in
echo x - akode-plugins-pulseaudio/files/patch-akode_Makefile.in
sed 's/^X//' >akode-plugins-pulseaudio/files/patch-akode_Makefile.in << 'END-of-akode-plugins-pulseaudio/files/patch-akode_Makefile.in'
X--- akode/Makefile.in.orig	Tue Nov 29 17:51:19 2005
X+++ akode/Makefile.in	Tue Nov 29 17:51:05 2005
X@@ -247,7 +247,7 @@
X unsermake_enable_pch_FALSE = @unsermake_enable_pch_FALSE@
X unsermake_enable_pch_TRUE = @unsermake_enable_pch_TRUE@
X bin_SCRIPTS = akode-config
X-SUBDIRS = lib plugins akodeplay
X+SUBDIRS = lib plugins
X #>- all: all-recursive
X #>+ 1
X all: docs-am  all-recursive
END-of-akode-plugins-pulseaudio/files/patch-akode_Makefile.in
echo x - akode-plugins-pulseaudio/files/patch-akode::plugins::polyp_sink::polyp_sink.cpp
sed 's/^X//' >akode-plugins-pulseaudio/files/patch-akode::plugins::polyp_sink::polyp_sink.cpp << 'END-of-akode-plugins-pulseaudio/files/patch-akode::plugins::polyp_sink::polyp_sink.cpp'
X--- akode/plugins/polyp_sink/polyp_sink.cpp.orig	Sun Jun 10 13:23:03 2007
X+++ akode/plugins/polyp_sink/polyp_sink.cpp	Sun Jun 10 13:24:13 2007
X@@ -25,7 +25,7 @@
X #elif defined(HAVE_INTTYPES_H)
X #include <inttypes.h>
X #endif
X-#include <polyp/polyplib-simple.h>
X+#include <pulse/simple.h>
X 
X #include "audioframe.h"
X #include "audiobuffer.h"
X@@ -59,7 +59,7 @@
X 
X bool PolypSink::open() {
X     int error = 0;
X-    m_data->server = pa_simple_new(0, "akode-client", PA_STREAM_PLAYBACK, 0, "", &m_data->sample_spec, 0, 255, &error );
X+    m_data->server = pa_simple_new(0, "akode-client", PA_STREAM_PLAYBACK, 0, "", &m_data->sample_spec, 0, 0, &error );
X     if (!m_data->server || error != 0) {
X         m_data->error = true;
X         close();
END-of-akode-plugins-pulseaudio/files/patch-akode::plugins::polyp_sink::polyp_sink.cpp
echo x - akode-plugins-pulseaudio/Makefile
sed 's/^X//' >akode-plugins-pulseaudio/Makefile << 'END-of-akode-plugins-pulseaudio/Makefile'
X# New ports collection makefile for:	akode-plugins-pulseaudio
X# Date created:				March 03 2008
X# Whom:					Scot W. Hetzel <swhetzel@gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=   akode-plugins-${PORTNAMESUFX}
XPORTVERSION=    2.0.1
XCATEGORIES= audio kde
XMASTER_SITES=   ${MASTER_SITE_GENTOO}
XMASTER_SITE_SUBDIR=distfiles
XDISTNAME=   30375-akode-${PORTVERSION}.tar.bz2
XEXTRACT_SUFX=	# none
X
X#PATCH_SITES=	http://ftp.icm.edu.pl/packages/linux-kde-redhat/cvs.fedora.redhat.com/extras/akode/FC-6/
X#PATCH_FILES=	akode-pulseaudio.patch
X
X#MAINTAINER=	kde@FreeBSD.org
XMAINTAINER=	swhetzel@gmail.com
XCOMMENT=	Pulseaudio output plugin for akode
X
XLIB_DEPENDS=	pulse-simple:${PORTSDIR}/audio/pulseaudio
X
XCONFLICTS=	kdemultimedia-3.[1-3]* akode-plugins-polypaudio*
X
XPLUGIN=		polyp_sink
XPORTNAMESUFX=	pulseaudio
X
XUSE_AUTOTOOLS=	libltdl
XUSE_AUTOTOOLS=  libtool:15
XUSE_BZIP2=	yes
XUSE_GMAKE=	yes
XWRKSRC=		${WRKDIR}/akode-${PORTVERSION}
XUSE_LDCONFIG=	yes
X
XCONFIGURE_ENV+=	LDFLAGS=-L${WRKSRC}/akode/lib/.libs
XCONFIGURE_ARGS+=--with-extra-libs=${LOCALBASE}/lib \
X		--with-extra-includes=${LOCALBASE}/include
X
Xpost-patch:
X	@${SETENV} TZ=UTC \
X	${TOUCH} -t 200607222217.01 ${WRKSRC}/akode/lib/akode_export.h.in
X
Xpre-configure:
X	@${REINPLACE_CMD} -e 's@%%SUBDIRS%%@${PLUGIN}@g' ${WRKSRC}/akode/plugins/Makefile.in
X
Xdo-build:
X	cd ${WRKSRC}/akode && ${GMAKE}
X
Xdo-install:
X	cd ${WRKSRC}/akode/plugins/${PLUGIN} && ${GMAKE} install
X
X.include <bsd.port.mk>
END-of-akode-plugins-pulseaudio/Makefile
echo x - akode-plugins-pulseaudio/akode.patch
sed 's/^X//' >akode-plugins-pulseaudio/akode.patch << 'END-of-akode-plugins-pulseaudio/akode.patch'
XIndex: akode/Makefile
X===================================================================
XRCS file: /home/ncvs/ports/audio/akode/Makefile,v
Xretrieving revision 1.19
Xdiff -u -r1.19 Makefile
X--- akode/Makefile	3 Jan 2008 15:40:39 -0000	1.19
X+++ akode/Makefile	4 Jan 2008 04:04:59 -0000
X@@ -23,6 +23,7 @@
X 		MPC "Monkey's Audio decoder plugin" on \
X 		MPEG "MPEG Audio (including mp3) plugin" on \
X 		OSS "OSS output plugin" on \
X+		PULSEAUDIO "Pulseaudio output plugin" off \
X 		RESAMPLER "Resampler processing plugin" on \
X 		XIPH "FLAC/Speex/Vorbis decoder plugin" on
X 
X@@ -57,6 +58,10 @@
X RUN_DEPENDS+=	${LOCALBASE}/lib/libakode_oss_sink.so:${PORTSDIR}/audio/akode-plugins-oss
X .endif
X 
X+.if defined(WITH_PULSEAUDIO)
X+RUN_DEPENDS+=	${LOCALBASE}/lib/libakode_polyp_sink.so:${PORTSDIR}/audio/akode-plugins-pulseaudio
X+.endif
X+
X .if !defined(WITHOUT_RESAMPLER)
X RUN_DEPENDS+=	${LOCALBASE}/lib/libakode_src_resampler.so:${PORTSDIR}/audio/akode-plugins-resampler
X .endif
END-of-akode-plugins-pulseaudio/akode.patch
exit



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



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