You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2011-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=moc
  9. PKG_VERSION:=2.5.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=http://ftp.daper.net/pub/soft/moc/stable/
  13. PKG_MD5SUM:=18e3a979b67091bfee4b62217908c473
  14. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  15. PKG_LICENSE:=GPL-2.0
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/nls.mk
  21. define Package/moc
  22. SECTION:=sound
  23. CATEGORY:=Sound
  24. DEPENDS:=+libcurl +BUILD_PATENTED:libmad +libvorbis $(ICONV_DEPENDS) +alsa-lib +libid3tag +libflac +libsamplerate +PACKAGE_libncursesw:libncursesw +!PACKAGE_libncursesw:libncurses +libffmpeg +libltdl +libmagic +faad2 +libdb47
  25. TITLE:=Music On Console
  26. URL:=http://moc.daper.net/
  27. endef
  28. define Package/moc/description
  29. MOC (music on console) is a console audio player for LINUX/UNIX designed to be powerful and easy to use.
  30. endef
  31. define Build/Configure
  32. $(call Build/Configure/Default, \
  33. $(if $(CONFIG_BUILD_PATENTED),,--without-mp3) \
  34. --enable-shared \
  35. --disable-static \
  36. --disable-debug \
  37. --without-speex \
  38. --without-samplerate \
  39. --without-curl \
  40. --without-flac \
  41. --without-musepack \
  42. --without-rcc \
  43. $(if $(CONFIG_PACKAGE_libncursesw),--with-ncursesw --without-ncurses,--with-ncurses --without-ncursesw) \
  44. )
  45. endef
  46. define Package/moc/install
  47. $(INSTALL_DIR) $(1)/usr/bin
  48. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mocp $(1)/usr/bin/
  49. $(INSTALL_DIR) $(1)/usr/lib/moc/decoder_plugins
  50. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/moc/decoder_plugins/*.so $(1)/usr/lib/moc/decoder_plugins
  51. endef
  52. $(eval $(call BuildPackage,moc))