[package] openswan: fix build for 64-bits targets
[openwrt/svn-archive/archive.git] / sound / 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 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=ftp://ftp.daper.net/pub/soft/moc/stable/
16 PKG_MD5SUM:=647c770a5542a4ae5437386807a89796
17
18 PKG_FIXUP:=autoreconf
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:=+libcurl +BUILD_PATENTED:libmad +libvorbis $(ICONV_DEPENDS) +alsa-utils +libid3tag +libflac +libsamplerate +PACKAGE_libncursesw:libncursesw +!PACKAGE_libncursesw:libncurses +libffmpeg +libltdl
28 TITLE:=Music On Console
29 URL:=http://moc.daper.net/
30 endef
31
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.
34 endef
35
36 define Build/Configure
37 $(call Build/Configure/Default, \
38 $(if $(CONFIG_BUILD_PATENTED),,--without-mp3) \
39 --enable-shared \
40 --disable-static \
41 --disable-debug \
42 --without-speex \
43 --without-samplerate \
44 --without-curl \
45 --without-flac \
46 --without-musepack \
47 --without-rcc \
48 )
49 endef
50
51 define Package/moc/install
52 $(INSTALL_DIR) $(1)/usr/bin
53 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mocp $(1)/usr/bin/
54 $(INSTALL_DIR) $(1)/usr/lib/moc/decoder_plugins
55 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/moc/decoder_plugins/*.so $(1)/usr/lib/moc/decoder_plugins
56 endef
57
58 $(eval $(call BuildPackage,moc))