1
0

Makefile 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= sox
  5. PKG_VERSION:= 14.4.1
  6. PKG_RELEASE:= 2
  7. PKG_HASH:= 9a8c2c6fe51e608da346a157e111508a957af9e3ecf3de26781d36e9a67fa89b
  8. PKG_DESCR:= swiss army knife of sound processing programs
  9. PKG_SECTION:= mm/audio
  10. PKG_BUILDDEP:= zlib ncurses
  11. PKG_DEPENDS:= zlib libncurses librt libpthread
  12. PKG_URL:= http://sox.sourceforge.net/
  13. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=sox/}
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. PKG_FLAVOURS_SOX:= WITH_LAME WITH_VORBIS WITH_FLAC WITH_MAD WITH_ALSA WITH_ID3TAG
  16. PKGFD_WITH_LAME:= mp3 lame support
  17. PKGFB_WITH_LAME:= lame
  18. PKGFS_WITH_LAME:= libmp3lame
  19. PKGFD_WITH_MAD:= mp3 mad support
  20. PKGFB_WITH_MAD:= libmad
  21. PKGFS_WITH_MAD:= libmad
  22. PKGFD_WITH_VORBIS:= ogg vorbis support
  23. PKGFB_WITH_VORBIS:= libvorbis libogg
  24. PKGFS_WITH_VORBIS:= libvorbis libogg libvorbisenc
  25. PKGFD_WITH_FLAC:= flac support
  26. PKGFB_WITH_FLAC:= flac
  27. PKGFS_WITH_FLAC:= libflac
  28. PKGFD_WITH_ID3TAG:= id3tag support
  29. PKGFB_WITH_ID3TAG:= libid3tag
  30. PKGFS_WITH_ID3TAG:= libid3tag
  31. PKGFD_WITH_ALSA:= alsa support
  32. PKGFB_WITH_ALSA:= alsa-lib
  33. PKGFS_WITH_ALSA:= alsa-lib
  34. include $(ADK_TOPDIR)/mk/package.mk
  35. $(eval $(call PKG_template,SOX,sox,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  36. # uses old api
  37. CONFIGURE_ARGS+= --without-ffmpeg
  38. ifeq ($(ADK_PACKAGE_SOX_WITH_ALSA),y)
  39. CONFIGURE_ARGS+= --with-alsa
  40. else
  41. CONFIGURE_ARGS+= --without-alsa
  42. endif
  43. ifeq ($(ADK_PACKAGE_SOX_WITH_ID3TAG),y)
  44. CONFIGURE_ARGS+= --with-id3tag
  45. else
  46. CONFIGURE_ARGS+= --without-id3tag
  47. endif
  48. ifeq ($(ADK_PACKAGE_SOX_WITH_FLAC),y)
  49. CONFIGURE_ARGS+= --with-flac
  50. else
  51. CONFIGURE_ARGS+= --without-flac
  52. endif
  53. ifeq ($(ADK_PACKAGE_SOX_WITH_LAME),y)
  54. CONFIGURE_ARGS+= --with-lame
  55. else
  56. CONFIGURE_ARGS+= --without-lame
  57. endif
  58. ifeq ($(ADK_PACKAGE_SOX_WITH_MAD),y)
  59. CONFIGURE_ARGS+= --with-mad
  60. else
  61. CONFIGURE_ARGS+= --without-mad
  62. endif
  63. ifeq ($(ADK_PACKAGE_SOX_WITH_VORBIS),y)
  64. CONFIGURE_ARGS+= --with-oggvorbis
  65. else
  66. CONFIGURE_ARGS+= --without-oggvorbis
  67. endif
  68. sox-install:
  69. $(INSTALL_DIR) $(IDIR_SOX)/usr/lib
  70. ${CP} ${WRKINST}/usr/lib/libsox.so* $(IDIR_SOX)/usr/lib
  71. $(INSTALL_DIR) $(IDIR_SOX)/usr/bin
  72. $(INSTALL_BIN) $(WRKINST)/usr/bin/sox $(IDIR_SOX)/usr/bin
  73. cd ${IDIR_SOX}/usr/bin; for tgt in rec play; do \
  74. ln sox $$tgt; \
  75. done
  76. include ${ADK_TOPDIR}/mk/pkg-bottom.mk