2 # Copyright (C) 2011-2015 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
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=http
://ftp.daper.net
/pub
/soft
/moc
/stable
/
16 PKG_MD5SUM
:=18e3a979b67091bfee4b62217908c473
18 PKG_MAINTAINER
:=Ted Hess
<thess@kitschensync.net
>
21 PKG_LICENSE_FILES
:=COPYING
26 include $(INCLUDE_DIR
)/package.mk
27 include $(INCLUDE_DIR
)/nls.mk
32 DEPENDS
:=+libcurl
+BUILD_PATENTED
:libmad
+libvorbis
$(ICONV_DEPENDS
) +alsa-lib
+libid3tag
+libflac
+libsamplerate
+PACKAGE_libncursesw
:libncursesw
+!PACKAGE_libncursesw
:libncurses
+libffmpeg
+libltdl
+libmagic
+faad2
+libdb47
33 TITLE
:=Music On Console
34 URL
:=http
://moc.daper.net
/
37 define Package
/moc
/description
38 MOC
(music on console
) is a console audio player for LINUX
/UNIX designed to be powerful and easy to use.
41 TARGET_CFLAGS
+=-D_GNU_SOURCE
43 define Build
/Configure
44 $(call Build
/Configure
/Default
, \
45 $(if
$(CONFIG_BUILD_PATENTED
),,--without-mp3
) \
50 --without-samplerate \
55 $(if
$(CONFIG_PACKAGE_libncursesw
),--with-ncursesw
--without-ncurses
,--with-ncurses
--without-ncursesw
) \
59 define Package
/moc
/install
60 $(INSTALL_DIR
) $(1)/usr
/bin
61 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/mocp
$(1)/usr
/bin
/
62 $(INSTALL_DIR
) $(1)/usr
/lib
/moc
/decoder_plugins
63 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/moc
/decoder_plugins
/*.so
$(1)/usr
/lib
/moc
/decoder_plugins
66 $(eval
$(call BuildPackage
,moc
))