Merge pull request #4940 from diizzyy/patch-95
[feed/packages.git] / sound / mocp / Makefile
1 #
2 # Copyright (C) 2011-2017 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 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=moc
11 PKG_VERSION:=2.5.2
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://ftp.daper.net/pub/soft/moc/stable/
16 PKG_HASH:=f3a68115602a4788b7cfa9bbe9397a9d5e24c68cb61a57695d1c2c3ecf49db08
17
18 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
19
20 PKG_LICENSE:=GPL-2.0
21 PKG_LICENSE_FILES:=COPYING
22
23 PKG_FIXUP:=autoreconf
24 PKG_INSTALL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27 include $(INCLUDE_DIR)/nls.mk
28
29 define Package/moc
30 SECTION:=sound
31 CATEGORY:=Sound
32 DEPENDS:=+libcurl $(ICONV_DEPENDS) +alsa-lib +libid3tag +libsamplerate +libncursesw +libffmpeg +libltdl +libmagic +libdb47
33 TITLE:=Music On Console
34 URL:=http://moc.daper.net/
35 endef
36
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.
39 endef
40
41 TARGET_CFLAGS+=-D_GNU_SOURCE
42
43 TARGET_CPPFLAGS+=-P
44
45 CONFIGURE_ARGS+= \
46 --enable-shared \
47 --disable-static \
48 --disable-debug \
49 --without-speex \
50 --without-aac \
51 --without-flac \
52 --without-mp3 \
53 --without-musepack \
54 --without-rcc \
55 --without-sndfile \
56 --without-vorbis \
57 --without-wavpack \
58 $(if $(CONFIG_PACKAGE_libncursesw),--with-ncursesw --without-ncurses,--with-ncurses --without-ncursesw) \
59 --with-bdb-dir="$(STAGING_DIR)/usr"
60
61 define Package/moc/install
62 $(INSTALL_DIR) $(1)/usr/bin
63 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mocp $(1)/usr/bin/
64 $(INSTALL_DIR) $(1)/usr/lib/moc/decoder_plugins
65 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/moc/decoder_plugins/*.so $(1)/usr/lib/moc/decoder_plugins
66 endef
67
68 $(eval $(call BuildPackage,moc))