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.

77 lines
1.9 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:=4
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=http://ftp.daper.net/pub/soft/moc/stable/
  13. PKG_HASH:=f3a68115602a4788b7cfa9bbe9397a9d5e24c68cb61a57695d1c2c3ecf49db08
  14. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  15. PKG_LICENSE:=GPL-2.0-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=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 $(ICONV_DEPENDS) +alsa-lib +libid3tag +libsamplerate +libmad +libfaad2 +libflac +libvorbis +libncursesw +libltdl +libmagic +libdb47
  25. TITLE:=Music On Console
  26. URL:=https://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_CPPFLAGS+=-P
  32. CONFIGURE_ARGS += \
  33. --enable-shared \
  34. --disable-static \
  35. --disable-debug \
  36. --without-rcc \
  37. --without-oss \
  38. --without-sndio \
  39. --with-alsa \
  40. --without-jack \
  41. --with-magic \
  42. --without-ncurses \
  43. --with-ncursesw \
  44. --with-samplerate \
  45. --with-aac \
  46. --without-ffmpeg \
  47. --with-flac \
  48. --without-modplug \
  49. --with-mp3 \
  50. --without-musepack \
  51. --without-sidplay2 \
  52. --without-sndfile \
  53. --without-speex \
  54. --without-timidity \
  55. --with-vorbis \
  56. --without-wavpack \
  57. --with-curl \
  58. --with-bdb-dir="$(STAGING_DIR)/usr"
  59. define Package/moc/install
  60. $(INSTALL_DIR) $(1)/usr/bin
  61. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mocp $(1)/usr/bin/
  62. $(INSTALL_DIR) $(1)/usr/lib/moc/decoder_plugins
  63. $(CP) $(PKG_INSTALL_DIR)/usr/lib/moc/decoder_plugins/*.so $(1)/usr/lib/moc/decoder_plugins
  64. endef
  65. $(eval $(call BuildPackage,moc))