[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ports/94290: [NEW PORT] audio/jackasyn: Allow use any sound program for the OSS system as a JACK client



>Number:         94290
>Category:       ports
>Synopsis:       [NEW PORT] audio/jackasyn: Allow use any sound program for the OSS system as a JACK client
>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:   Fri Mar 10 02:50:02 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Jose Alonso Cardenas Marquez
>Release:        FreeBSD 6.1-PRERELEASE i386
>Organization:
BSDPeru (http://www.bsd.org.pe)
>Environment:
FreeBSD HellFire.BSD.org.pe 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Wed Mar  8 13:14:43 PET
>Description:
libjackasyn is a library that allows you to use programs written for the OSS sound API with the JACK audio server (jackit.sf.net). libjackasyn is a library that can be used for two purposes. 

First it can be loaded via the LD_PRELOAD variable, turning OSS applications automatically into JACK-aware applications. 

Second, it can be used to link against the program during build time, making it trivial to turn an OSS aware sound application into a JACK aware sound application in a short time. 

libjackasyn got its name from the asynchronous manner in which it communicates with the JACK server, which means by using libjackasyn you will introduce an additional delay exactly the size of one JACK audiobuffer (1024 samples or 44 ms with the JACK default settings). This delay can be reduced by reducing the JACK 
buffersize. It should not matter for sound generating applications, but it might introduce phasing effects when doing sound processing.

WWW:	http://gige.xdv.org/libjackasyn/
>How-To-Repeat:

>Fix:
--- jackasyn-0.12.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:
#
#	jackasyn
#	jackasyn/pkg-descr
#	jackasyn/Makefile
#	jackasyn/pkg-plist
#	jackasyn/distinfo
#	jackasyn/files
#	jackasyn/files/patch-libjackoss.c
#	jackasyn/files/patch-configure
#	jackasyn/files/patch-Makefile.in
#
echo c - jackasyn
mkdir -p jackasyn > /dev/null 2>&1
echo x - jackasyn/pkg-descr
sed 's/^X//' >jackasyn/pkg-descr << 'END-of-jackasyn/pkg-descr'
Xlibjackasyn is a library that allows you to use programs written for the OSS sound API with the JACK audio 
Xserver (jackit.sf.net). libjackasyn is a library that can be used for two purposes. 
X
XFirst it can be loaded via the LD_PRELOAD variable, turning OSS applications automatically into JACK-aware 
Xapplications. 
X
XSecond, it can be used to link against the program during build time, making it trivial to turn an OSS aware 
Xsound application into a JACK aware sound application in a short time. 
X
Xlibjackasyn got its name from the asynchronous manner in which it communicates with the JACK server, which 
Xmeans by using libjackasyn you will introduce an additional delay exactly the size of one JACK audiobuffer 
X(1024 samples or 44 ms with the JACK default settings). This delay can be reduced by reducing the JACK 
Xbuffersize. It should not matter for sound generating applications, but it might introduce phasing effects 
Xwhen doing sound processing.
X
XWWW:	http://gige.xdv.org/libjackasyn/
END-of-jackasyn/pkg-descr
echo x - jackasyn/Makefile
sed 's/^X//' >jackasyn/Makefile << 'END-of-jackasyn/Makefile'
X# New ports collection makefile for:	jackasyn
X# Date created:		2006-03-06
X# Whom:			Jose Alonso Cardenas Marquez <acardenas_(_at_)_bsd_(_dot_)_org_(_dot_)_pe>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	jackasyn
XPORTVERSION=	0.12
XCATEGORIES=	audio devel
XMASTER_SITES=	http://gige.xdv.org/soft/libjackasyn/download/
XDISTNAME=	lib${PORTNAME}-${PORTVERSION}
X
XMAINTAINER=	acardenas_(_at_)_bsd_(_dot_)_org_(_dot_)_pe
XCOMMENT=	Allow use any sound program for the OSS system as a JACK client
X
XLIB_DEPENDS=	jack.0:${PORTSDIR}/audio/jack \
X		samplerate.1:${PORTSDIR}/audio/libsamplerate
X
XUSE_GMAKE=	yes
XGNU_CONFIGURE=	yes
XINSTALLS_SHLIB=	yes
XLDFLAGS+=	-L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}
XCPPFLAGS+=	-I${LOCALBASE}/include -I${X11BASE}/include
XCONFIGURE_ARGS=	--prefix=${PREFIX}
XCONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
XCONFIGURE_ENV=	LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}"
XMAKE_ENV=	LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS} ${CFLAGS}"
X
XMAN1=	jacklaunch.1
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|%%PTHREAD%%|${PTHREAD_LIBS}|g' ${WRKSRC}/${CONFIGURE_SCRIPT}
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/libjackasyn.so.${PORTVERSION} ${PREFIX}/lib
X	${INSTALL_PROGRAM} ${WRKSRC}/libjackasyn.a ${PREFIX}/lib
X	${INSTALL_SCRIPT} ${WRKSRC}/jacklaunch ${PREFIX}/bin
X	${INSTALL_DATA} ${WRKSRC}/libjackoss.h ${PREFIX}/include
X
Xpost-install:
X	@cd ${PREFIX}/lib && \
X		${LN} -s libjackasyn.so.${PORTVERSION} libjackasyn.so && \
X			${LN} -s libjackasyn.so libjackasyn.so.0
X	${INSTALL_MAN} ${WRKSRC}/${MAN1} ${PREFIX}/man/man1/
X
X.include <bsd.port.mk>
END-of-jackasyn/Makefile
echo x - jackasyn/pkg-plist
sed 's/^X//' >jackasyn/pkg-plist << 'END-of-jackasyn/pkg-plist'
Xbin/jacklaunch
Xinclude/libjackoss.h
Xlib/libjackasyn.a
Xlib/libjackasyn.so
Xlib/libjackasyn.so.0
Xlib/libjackasyn.so.0.12
END-of-jackasyn/pkg-plist
echo x - jackasyn/distinfo
sed 's/^X//' >jackasyn/distinfo << 'END-of-jackasyn/distinfo'
XMD5 (libjackasyn-0.12.tar.gz) = fae5e0315668798f009b91ca6d34d29e
XSHA256 (libjackasyn-0.12.tar.gz) = 39f64bf5297549a816692e26342003ee0cd4e54fe5bfe1056d92b8dcc79d46f1
XMD5 (libjackasyn-0.12.tar.gz) = 73802
END-of-jackasyn/distinfo
echo c - jackasyn/files
mkdir -p jackasyn/files > /dev/null 2>&1
echo x - jackasyn/files/patch-libjackoss.c
sed 's/^X//' >jackasyn/files/patch-libjackoss.c << 'END-of-jackasyn/files/patch-libjackoss.c'
X--- libjackoss.c	Mon Mar  6 07:19:23 2006
X+++ libjackoss.c	Mon Mar  6 12:25:46 2006
X@@ -117,7 +117,7 @@
X   }
X 
X   va_start (args, flags);
X-  mode = va_arg (args, mode_t);
X+  mode = va_arg (args, int);
X   va_end (args);
X 
X   if ((strncmp(name,"/dev/dsp",8) && strncmp(name,"/dev/audio",8))
X@@ -367,10 +367,10 @@
X     UNIMPLEMENTED( SNDCTL_DSP_MAPOUTBUF);
X     UNIMPLEMENTED( SNDCTL_DSP_SETSYNCRO);
X     UNIMPLEMENTED( SNDCTL_DSP_SETDUPLEX);
X-    UNIMPLEMENTED( SNDCTL_DSP_GETCHANNELMASK);
X-    UNIMPLEMENTED( SNDCTL_DSP_BIND_CHANNEL);
X-    UNIMPLEMENTED( SNDCTL_DSP_SETSPDIF);
X-    UNIMPLEMENTED( SNDCTL_DSP_GETSPDIF);
X+//    UNIMPLEMENTED( SNDCTL_DSP_GETCHANNELMASK);
X+//    UNIMPLEMENTED( SNDCTL_DSP_BIND_CHANNEL);
X+//    UNIMPLEMENTED( SNDCTL_DSP_SETSPDIF);
X+//    UNIMPLEMENTED( SNDCTL_DSP_GETSPDIF);
X 
X   default:
X     fprintf(stderr,"unknown ioctl\n");
END-of-jackasyn/files/patch-libjackoss.c
echo x - jackasyn/files/patch-configure
sed 's/^X//' >jackasyn/files/patch-configure << 'END-of-jackasyn/files/patch-configure'
X--- configure	Tue Aug 24 08:42:36 2004
X+++ configure	Mon Mar  6 11:08:00 2006
X@@ -2506,7 +2506,7 @@
X   echo $ECHO_N "(cached) $ECHO_C" >&6
X else
X   ac_check_lib_save_LIBS=$LIBS
X-LIBS="-ljack  $LIBS"
X+LIBS="-ljack  %%PTHREAD%% $LIBS"
X cat >conftest.$ac_ext <<_ACEOF
X /* confdefs.h.  */
X _ACEOF
X@@ -2562,7 +2562,7 @@
X #define HAVE_LIBJACK 1
X _ACEOF
X 
X-  LIBS="-ljack $LIBS"
X+  LIBS="-ljack %%PTHREAD%% $LIBS"
X 
X else
X   echo please install jack jackit.sf.net;exit
END-of-jackasyn/files/patch-configure
echo x - jackasyn/files/patch-Makefile.in
sed 's/^X//' >jackasyn/files/patch-Makefile.in << 'END-of-jackasyn/files/patch-Makefile.in'
X--- Makefile.in	Mon Mar  6 07:40:18 2006
X+++ Makefile.in	Thu Mar  9 21:46:05 2006
X@@ -8,8 +8,8 @@
X SRC_FILES = libjackasyn.c libjackoss.c clientfuncs.c
X OBJ_FILES = $(SRC_FILES:.c=.o) libjackoss_pl.o
X HEADERS = libjackasyn.h libjackoss.h
X-CFLAGS = -O2 -Wall -I. -fPIC -rdynamic -DMAJOR=$(MAJOR) -DMINOR=$(MINOR) @DEBUG@
X-LIBS =  -lc @LIBS@
X+CFLAGS = -Wall  ${CPPFLAGS} -I. -fPIC -rdynamic -DMAJOR=$(MAJOR) -DMINOR=$(MINOR) @DEBUG@
X+LIBS =  -lc @LIBS@ ${LDFLAGS}
X 
X 
X prefix = @prefix@
END-of-jackasyn/files/patch-Makefile.in
exit
--- jackasyn-0.12.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
freebsd-ports-bugs_(_at_)_freebsd_(_dot_)_org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "freebsd-ports-bugs-unsubscribe_(_at_)_freebsd_(_dot_)_org"


Visit your host, monkey.org