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.

66 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2011-2017 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.2
  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:=f3a68115602a4788b7cfa9bbe9397a9d5e24c68cb61a57695d1c2c3ecf49db08
  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 +libncursesw +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. TARGET_CFLAGS+=-D_GNU_SOURCE
  32. TARGET_CPPFLAGS+=-P
  33. CONFIGURE_ARGS+= \
  34. $(if $(CONFIG_BUILD_PATENTED),,--without-mp3) \
  35. --enable-shared \
  36. --disable-static \
  37. --disable-debug \
  38. --without-speex \
  39. --without-samplerate \
  40. --without-curl \
  41. --without-flac \
  42. --without-musepack \
  43. --without-rcc \
  44. $(if $(CONFIG_PACKAGE_libncursesw),--with-ncursesw --without-ncurses,--with-ncurses --without-ncursesw) \
  45. --with-bdb-dir="$(STAGING_DIR)/usr"
  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))