582b6495b294897a244f310774973acef77cb2f8
[openwrt/svn-archive/archive.git] / multimedia / mocp / Makefile
1 #
2 # Copyright (C) 2011 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.4.4
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14 PKG_SOURCE_URL:=ftp://ftp.daper.net/pub/soft/moc/stable/
15
16 PKG_MD5SUM:=647c770a5542a4ae5437386807a89796
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22 include $(INCLUDE_DIR)/nls.mk
23
24 define Package/moc
25 SECTION:=sound
26 CATEGORY:=Sound
27 DEPENDS:=+librt +libltdl +libcurl +libflac +libmad +libvorbis +libncurses +libid3tag $(ICONV_DEPENDS)
28 TITLE:=Music On Console
29 endef
30
31 define Package/moc/description
32 MOC (music on console) is a console audio player for LINUX/UNIX designed to be powerful and easy to use.
33 endef
34
35 define Build/Configure
36 $(call Build/Configure/Default, \
37 --enable-shared \
38 --disable-static \
39 --disable-debug \
40 )
41 endef
42
43 define Package/moc/install
44 $(INSTALL_DIR) $(1)/usr/bin
45 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mocp $(1)/usr/bin/
46 $(INSTALL_DIR) $(1)/usr/lib/moc/decoder_plugins
47 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/moc/decoder_plugins/*.so $(1)/usr/lib/moc/decoder_plugins
48 endef
49
50 $(eval $(call BuildPackage,moc))