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
19PKG_RELEASE:=1
20
21PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
22PKG_SOURCE_URL:=ftp://ftp.daper.net/pub/soft/moc/stable/
23PKG_MD5SUM:=647c770a5542a4ae5437386807a89796
24PKG_FIXUP:=libtool
25
26PKG_INSTALL:=1
27
28include $(INCLUDE_DIR)/package.mk
29include $(INCLUDE_DIR)/nls.mk
30
31define Package/moc
32  MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
33  SECTION:=sound
34  CATEGORY:=Sound
35  DEPENDS:=+libcurl +BUILD_PATENTED:libmad +libvorbis $(ICONV_DEPENDS) +alsa-utils +libid3tag +libflac +libsamplerate +libncursesw
36  TITLE:=Music On Console
37endef
38
39define Package/moc/description
40    MOC (music on console) is a console audio player for LINUX/UNIX designed to be powerful and easy to use.
41endef
42
43TARGET_LDFLAGS+= \
44    -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
45
46CONFIGURE_ARGS += \
47    $(if $(CONFIG_BUILD_PATENTED),,--without-mp3) \
48    --enable-shared \
49    --disable-static \
50    --disable-debug
51
52define Package/moc/install
53    $(INSTALL_DIR) $(1)/usr/bin
54    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mocp $(1)/usr/bin/
55    $(INSTALL_DIR) $(1)/usr/lib/moc/decoder_plugins
56    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/moc/decoder_plugins/*.so $(1)/usr/lib/moc/decoder_plugins
57endef
58
59$(eval $(call BuildPackage,moc))
60

Archive Download this file



interactive