説明なし

Makefile 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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:=2
  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. 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))