2 # Copyright (C) 2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
11 PKG_VERSION
:=2.5.0-beta2
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=http
://ftp.daper.net
/pub
/soft
/moc
/unstable
/
16 PKG_MD5SUM
:=da87b90b57934234589b63e347921458
21 include $(INCLUDE_DIR
)/package.mk
22 include $(INCLUDE_DIR
)/nls.mk
27 DEPENDS
:=+libcurl
+BUILD_PATENTED
:libmad
+libvorbis
$(ICONV_DEPENDS
) +alsa-utils
+libid3tag
+libflac
+libsamplerate
+PACKAGE_libncursesw
:libncursesw
+!PACKAGE_libncursesw
:libncurses
+libffmpeg
+libltdl
+libmagic
+faad2
+libdb47
28 TITLE
:=Music On Console
29 URL
:=http
://moc.daper.net
/
32 define Package
/moc
/description
33 MOC
(music on console
) is a console audio player for LINUX
/UNIX designed to be powerful and easy to use.
36 define Build
/Configure
37 $(call Build
/Configure
/Default
, \
38 $(if
$(CONFIG_BUILD_PATENTED
),,--without-mp3
) \
43 --without-samplerate \
48 $(if
$(CONFIG_PACKAGE_libncursesw
),--with-ncursesw
--without-ncurses
,--with-ncurses
--without-ncursesw
) \
52 define 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
59 $(eval
$(call BuildPackage
,moc
))