Advertisement
Guest User

Untitled

a guest
Nov 27th, 2010
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.39 KB | None | 0 0
  1. #
  2. # Copyright (C) 2006-2010 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7.  
  8. #
  9. # Don't forget:
  10. #
  11. # ./scripts/feeds update
  12. # ./scripts/feeds install iconv libcurl alsa-utils libvorbis usbutils libmad libflac libid3tag
  13. #
  14.  
  15. include $(TOPDIR)/rules.mk
  16.  
  17. PKG_NAME:=moc
  18. PKG_VERSION:=2.4.4
  19.  
  20. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  21. PKG_SOURCE_URL:=ftp://ftp.daper.net/pub/soft/moc/stable/
  22.  
  23. PKG_MD5SUM:=647c770a5542a4ae5437386807a89796
  24.  
  25. PKG_FIXUP:=libtool
  26. PKG_INSTALL:=1
  27.  
  28. include $(INCLUDE_DIR)/package.mk
  29.  
  30. define Package/moc
  31.   SECTION:=sound
  32.   CATEGORY:=Sound
  33.   DEPENDS:=+libcurl +libflac +libmad +libvorbis +libncurses +libiconv +kmod-usb-audio +alsa-utils +kmod-usb2 +libid3tag
  34.   TITLE:=Music On Console
  35. endef
  36.  
  37. define Package/moc/description
  38.     MOC (music on console) is a console audio player for LINUX/UNIX designed to be powerful and easy to use.
  39. endef
  40.  
  41. define Build/Configure
  42.     $(call Build/Configure/Default, \
  43.         --enable-shared \
  44.         --disable-static \
  45.         --disable-debug \
  46.     )
  47. endef
  48.  
  49. define Package/moc/install
  50.     $(INSTALL_DIR) $(1)/usr/bin
  51.     $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mocp $(1)/usr/bin/
  52.     $(INSTALL_DIR) $(1)/usr/lib/moc/decoder_plugins
  53.     $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/moc/decoder_plugins/*.so $(1)/usr/lib/moc/decoder_plugins
  54. endef
  55.  
  56. $(eval $(call BuildPackage,moc))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement