2010-12-02 07:44:29 +02:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# Don't forget:
|
|
|
|
#
|
|
|
|
# ./scripts/feeds update
|
|
|
|
# ./scripts/feeds install iconv libcurl alsa-utils libvorbis usbutils libmad libflac libid3tag
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=moc
|
|
|
|
PKG_VERSION:=2.4.4
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=ftp://ftp.daper.net/pub/soft/moc/stable/
|
|
|
|
PKG_MD5SUM:=647c770a5542a4ae5437386807a89796
|
|
|
|
|
|
|
|
PKG_FIXUP:=libtool
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2011-02-06 21:17:31 +02:00
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
2010-12-02 07:44:29 +02:00
|
|
|
|
|
|
|
define Package/moc
|
2011-01-17 05:39:00 +02:00
|
|
|
MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
|
2010-12-02 07:44:29 +02:00
|
|
|
SECTION:=sound
|
|
|
|
CATEGORY:=Sound
|
2011-02-06 21:17:31 +02:00
|
|
|
DEPENDS:=+libcurl +BUILD_PATENTED:libmad +libvorbis +libncurses $(ICONV_DEPENDS) +alsa-utils +libid3tag +libflac
|
2010-12-02 07:44:29 +02:00
|
|
|
TITLE:=Music On Console
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/moc/description
|
|
|
|
MOC (music on console) is a console audio player for LINUX/UNIX designed to be powerful and easy to use.
|
|
|
|
endef
|
|
|
|
|
|
|
|
TARGET_LDFLAGS+= \
|
2011-02-06 21:17:31 +02:00
|
|
|
-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
|
2010-12-02 07:44:29 +02:00
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
2010-12-08 17:35:04 +02:00
|
|
|
--without-mp3 \
|
2010-12-02 07:44:29 +02:00
|
|
|
--enable-shared \
|
|
|
|
--disable-static \
|
|
|
|
--disable-debug
|
|
|
|
|
|
|
|
define Package/moc/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mocp $(1)/usr/bin/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/moc/decoder_plugins
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/moc/decoder_plugins/*.so $(1)/usr/lib/moc/decoder_plugins
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,moc))
|