Root/moc/Makefile

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
15include $(TOPDIR)/rules.mk
16
17PKG_NAME:=moc
18PKG_VERSION:=2.4.4
19
20PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
21PKG_SOURCE_URL:=ftp://ftp.daper.net/pub/soft/moc/stable/
22PKG_MD5SUM:=647c770a5542a4ae5437386807a89796
23
24PKG_FIXUP:=libtool
25PKG_INSTALL:=1
26
27include $(INCLUDE_DIR)/package.mk
28include $(INCLUDE_DIR)/nls.mk
29
30define 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
36endef
37
38define Package/moc/description
39    MOC (music on console) is a console audio player for LINUX/UNIX designed to be powerful and easy to use.
40endef
41
42TARGET_LDFLAGS+= \
43    -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
44
45CONFIGURE_ARGS += \
46    --without-mp3 \
47    --enable-shared \
48    --disable-static \
49    --disable-debug
50
51define 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
56endef
57
58$(eval $(call BuildPackage,moc))
59

Archive Download this file



interactive