OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 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 | PKG_MD5SUM:=647c770a5542a4ae5437386807a89796 |
| 23 | |
| 24 | PKG_FIXUP:=libtool |
| 25 | PKG_INSTALL:=1 |
| 26 | |
| 27 | include $(INCLUDE_DIR)/package.mk |
| 28 | include $(INCLUDE_DIR)/nls.mk |
| 29 | |
| 30 | define Package/moc |
| 31 | MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc> |
| 32 | SECTION:=sound |
| 33 | CATEGORY:=Sound |
| 34 | DEPENDS:=+libcurl +BUILD_PATENTED:libmad +libvorbis +libncurses $(ICONV_DEPENDS) +alsa-utils +libid3tag +libflac |
| 35 | TITLE:=Music On Console |
| 36 | endef |
| 37 | |
| 38 | define Package/moc/description |
| 39 | MOC (music on console) is a console audio player for LINUX/UNIX designed to be powerful and easy to use. |
| 40 | endef |
| 41 | |
| 42 | TARGET_LDFLAGS+= \ |
| 43 | -Wl,-rpath-link=$(STAGING_DIR)/usr/lib |
| 44 | |
| 45 | CONFIGURE_ARGS += \ |
| 46 | --without-mp3 \ |
| 47 | --enable-shared \ |
| 48 | --disable-static \ |
| 49 | --disable-debug |
| 50 | |
| 51 | define Package/moc/install |
| 52 | $(INSTALL_DIR) $(1)/usr/bin |
| 53 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mocp $(1)/usr/bin/ |
| 54 | $(INSTALL_DIR) $(1)/usr/lib/moc/decoder_plugins |
| 55 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/moc/decoder_plugins/*.so $(1)/usr/lib/moc/decoder_plugins |
| 56 | endef |
| 57 | |
| 58 | $(eval $(call BuildPackage,moc)) |
| 59 |
