Makefile 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # $OpenBSD: Makefile,v 1.12 2015/08/25 12:57:33 sthen Exp $
  2. COMMENT-main = Tcl/Tk snack sound toolkit
  3. COMMENT-python = Python bindings for Tcl/Tk snack sound toolkit
  4. MODPY_EGG_VERSION = 2.2.10
  5. DISTNAME = snack${MODPY_EGG_VERSION}
  6. PKGNAME-main = snack-${MODPY_EGG_VERSION}
  7. PKGNAME-python = py-snack-${MODPY_EGG_VERSION}
  8. CATEGORIES = audio
  9. REVISION-main = 5
  10. REVISION-python =1
  11. HOMEPAGE = http://www.speech.kth.se/snack
  12. MASTER_SITES = ${HOMEPAGE}/dist/
  13. MAINTAINER = Sebastian Reitenbach <sebastia@openbsd.org>
  14. # BSD/GPLv2
  15. PERMIT_PACKAGE_CDROM = Yes
  16. WANTLIB-main += c sndio ossaudio ogg vorbis vorbisenc
  17. WANTLIB-main += X11 Xext Xft Xss m fontconfig
  18. LIB_DEPENDS-main = audio/libvorbis
  19. MULTI_PACKAGES = -main -python
  20. MODULES = lang/python x11/tk
  21. BUILD_DEPENDS = ${MODTK_BUILD_DEPENDS}
  22. RUN_DEPENDS-main = ${MODTK_RUN_DEPENDS}
  23. RUN_DEPENDS-python = ${BASE_PKGPATH} \
  24. lang/python/${MODPY_VERSION},-tkinter
  25. SEPARATE_BUILD = Yes
  26. CONFIGURE_SCRIPT = unix/configure
  27. CONFIGURE_STYLE = gnu
  28. CONFIGURE_ARGS = --with-tcl=${MODTCL_LIBDIR} \
  29. --with-tk=${MODTK_LIBDIR} \
  30. --with-ogg-include=${LOCALBASE}/include \
  31. --with-ogg-lib=${LOCALBASE}/lib
  32. MAKE_FLAGS += SNACK_INSTALL_PATH=${MODTCL_TCLDIR}
  33. TEST_TARGET = test
  34. MODPY_ADJ_FILES = demos/python/*.py
  35. pre-configure:
  36. cp ${FILESDIR}/jkAudIO_sndio.c ${WRKSRC}/unix/
  37. ${MODTCL_WISH_ADJ} ${WRKSRC}/demos/tcl/compose.tcl \
  38. ${WRKSRC}/demos/tcl/echo.tcl \
  39. ${WRKSRC}/demos/tcl/formant.tcl \
  40. ${WRKSRC}/demos/tcl/fourChan.tcl \
  41. ${WRKSRC}/demos/tcl/mapChan.tcl
  42. post-install:
  43. cd ${WRKSRC}/python && \
  44. ${MODPY_BIN} ${MODPY_SETUP} ${MODPY_DISTUTILS_INSTALL}
  45. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/snack/tcl
  46. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/snack/python
  47. ${INSTALL_DATA} ${WRKSRC}/demos/tcl/*.plg ${PREFIX}/share/examples/snack/tcl/
  48. ${INSTALL_DATA} ${WRKSRC}/demos/tcl/*.scr ${PREFIX}/share/examples/snack/tcl/
  49. ${INSTALL_DATA} ${WRKSRC}/demos/tcl/*.phn ${PREFIX}/share/examples/snack/tcl/
  50. ${INSTALL_DATA} ${WRKSRC}/demos/tcl/*.wav ${PREFIX}/share/examples/snack/tcl/
  51. ${INSTALL_DATA} ${WRKSRC}/demos/tcl/*.txt ${PREFIX}/share/examples/snack/tcl/
  52. ${INSTALL_SCRIPT} ${WRKSRC}/demos/tcl/*.tcl ${PREFIX}/share/examples/snack/tcl/
  53. rm ${PREFIX}/share/examples/snack/tcl/wrap.tcl \
  54. ${PREFIX}/share/examples/snack/tcl/SphereTest.tcl
  55. ${INSTALL_SCRIPT} ${WRKSRC}/demos/python/*.py ${PREFIX}/share/examples/snack/python/
  56. ${INSTALL_DATA} ${WRKSRC}/demos/python/*wav ${PREFIX}/share/examples/snack/python/
  57. ${INSTALL_DATA} ${WRKSRC}/demos/python/*txt ${PREFIX}/share/examples/snack/python/
  58. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/snack
  59. ${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/snack
  60. .include <bsd.port.mk>