Date:2010-12-02 06:44:29 (9 years 7 months ago)
Author:Xiangfu Liu
Commit:d072c915ef806f72ba635a7ebdad6a95d78e08a5
Message:new package: moc, a console audio player

Files: moc/Makefile (1 diff)

Change Details

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
28
29define Package/moc
30  SECTION:=sound
31  CATEGORY:=Sound
32  DEPENDS:=+libcurl +BUILD_PATENTED:libmad +libvorbis +libncurses +libiconv +alsa-utils +libid3tag +libflac @BROKEN
33  TITLE:=Music On Console
34endef
35
36define Package/moc/description
37    MOC (music on console) is a console audio player for LINUX/UNIX designed to be powerful and easy to use.
38endef
39
40TARGET_CFLAGS+= \
41    -I$(STAGING_DIR)/usr/lib/libiconv/include \
42
43TARGET_LDFLAGS+= \
44    -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
45    -L$(STAGING_DIR)/usr/lib/libiconv/lib
46
47CONFIGURE_ARGS += \
48    $(call autoconf_bool,CONFIG_BUILD_PATENTED,mad) \
49    --enable-shared \
50    --disable-static \
51    --disable-debug
52
53define Package/moc/install
54    $(INSTALL_DIR) $(1)/usr/bin
55    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mocp $(1)/usr/bin/
56    $(INSTALL_DIR) $(1)/usr/lib/moc/decoder_plugins
57    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/moc/decoder_plugins/*.so $(1)/usr/lib/moc/decoder_plugins
58endef
59
60$(eval $(call BuildPackage,moc))

Archive Download the corresponding diff file



interactive