9c3c841519
The Snack Sound Toolkit is designed to be used with a scripting language such as Tcl/Tk or Python. Snack has commands for basic sound handling, such as playback, recording, file and socket I/O. Snack also provides primitives for sound visualization, e.g. waveforms and spectrograms. It was developed mainly to handle digital recordings of speech, but is just as useful for general audio. Snack has also successfully been applied to other one-dimensional signals. thanks to jakemsr@ for making my unsuccessful attempt to port it to sndio working. many comments from stu@, landry@, ajacoutot@ finally OK ajacoutot@
75 lines
2.7 KiB
Makefile
75 lines
2.7 KiB
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2011/03/12 08:53:52 sebastia Exp $
|
|
|
|
COMMENT-main = Tcl/Tk snack sound toolkit
|
|
COMMENT-python = Python bindings for Tcl/Tk snack sound toolkit
|
|
|
|
MODPY_EGG_VERSION = 2.2.10
|
|
DISTNAME = snack${MODPY_EGG_VERSION}
|
|
PKGNAME-main = snack-${MODPY_EGG_VERSION}
|
|
PKGNAME-python = py-snack-${MODPY_EGG_VERSION}
|
|
CATEGORIES = audio
|
|
|
|
HOMEPAGE = http://www.speech.kth.se/snack
|
|
MASTER_SITES = ${HOMEPAGE}/dist/
|
|
MAINTAINER = Sebastian Reitenbach <sebastia@openbsd.org>
|
|
|
|
# BSD/GPLv2
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
PERMIT_DISTFILES_CDROM = Yes
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
WANTLIB-main += c sndio ossaudio ogg vorbis vorbisenc z
|
|
WANTLIB-main += X11 Xau Xdmcp Xext Xft Xrender Xss expat
|
|
WANTLIB-main += freetype m pthread-stubs xcb fontconfig
|
|
|
|
LIB_DEPENDS-main = audio/libvorbis
|
|
|
|
MULTI_PACKAGES = -main -python
|
|
|
|
MODULES = lang/python x11/tk
|
|
|
|
BUILD_DEPENDS = ${MODTK_BUILD_DEPENDS}
|
|
RUN_DEPENDS-main = ${MODTK_RUN_DEPENDS}
|
|
RUN_DEPENDS-python = ${BASE_PKGPATH} \
|
|
lang/python/${MODPY_VERSION},-tkinter
|
|
|
|
SEPARATE_BUILD = simple
|
|
CONFIGURE_SCRIPT = unix/configure
|
|
CONFIGURE_STYLE = gnu
|
|
CONFIGURE_ARGS = --with-tcl=${MODTCL_LIBDIR} \
|
|
--with-tk=${MODTK_LIBDIR} \
|
|
--with-ogg-include=${LOCALBASE}/include \
|
|
--with-ogg-lib=${LOCALBASE}/lib
|
|
MAKE_FLAGS += SNACK_INSTALL_PATH=${MODTCL_TCLDIR}
|
|
|
|
pre-configure:
|
|
cp ${FILESDIR}/jkAudIO_sndio.c ${WRKSRC}/unix/
|
|
${MODPY_BIN_ADJ} ${WRKSRC}/demos/python/*.py
|
|
${MODTCL_WISH_ADJ} ${WRKSRC}/demos/tcl/compose.tcl \
|
|
${WRKSRC}/demos/tcl/echo.tcl \
|
|
${WRKSRC}/demos/tcl/formant.tcl \
|
|
${WRKSRC}/demos/tcl/fourChan.tcl \
|
|
${WRKSRC}/demos/tcl/mapChan.tcl
|
|
|
|
post-install:
|
|
cd ${WRKSRC}/python && \
|
|
${MODPY_BIN} ${MODPY_SETUP} ${MODPY_DISTUTILS_INSTALL}
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/snack/tcl
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/snack/python
|
|
${INSTALL_DATA} ${WRKSRC}/demos/tcl/*.plg ${PREFIX}/share/examples/snack/tcl/
|
|
${INSTALL_DATA} ${WRKSRC}/demos/tcl/*.scr ${PREFIX}/share/examples/snack/tcl/
|
|
${INSTALL_DATA} ${WRKSRC}/demos/tcl/*.phn ${PREFIX}/share/examples/snack/tcl/
|
|
${INSTALL_DATA} ${WRKSRC}/demos/tcl/*.wav ${PREFIX}/share/examples/snack/tcl/
|
|
${INSTALL_DATA} ${WRKSRC}/demos/tcl/*.txt ${PREFIX}/share/examples/snack/tcl/
|
|
${INSTALL_SCRIPT} ${WRKSRC}/demos/tcl/*.tcl ${PREFIX}/share/examples/snack/tcl/
|
|
rm ${PREFIX}/share/examples/snack/tcl/wrap.tcl \
|
|
${PREFIX}/share/examples/snack/tcl/SphereTest.tcl
|
|
${INSTALL_SCRIPT} ${WRKSRC}/demos/python/*.py ${PREFIX}/share/examples/snack/python/
|
|
${INSTALL_DATA} ${WRKSRC}/demos/python/*wav ${PREFIX}/share/examples/snack/python/
|
|
${INSTALL_DATA} ${WRKSRC}/demos/python/*txt ${PREFIX}/share/examples/snack/python/
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/snack
|
|
${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/snack
|
|
|
|
.include <bsd.port.mk>
|