78 lines
2.8 KiB
Makefile
78 lines
2.8 KiB
Makefile
# $OpenBSD: Makefile,v 1.2 2011/06/08 17:31:33 jasper 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
|
|
|
|
REVISION-main = 0
|
|
REVISION-python =0
|
|
|
|
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>
|