OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
1 | # |
2 | # Copyright (C) 2006-2010 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 | # |
9 | # Don't forget: |
10 | # |
11 | # ./scripts/feeds update |
12 | # ./scripts/feeds install iconv libcurl alsa-utils libvorbis usbutils libmad libflac libid3tag |
13 | # |
14 | |
15 | include $(TOPDIR)/rules.mk |
16 | |
17 | PKG_NAME:=moc |
18 | PKG_VERSION:=2.4.4 |
19 | |
20 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 |
21 | PKG_SOURCE_URL:=ftp://ftp.daper.net/pub/soft/moc/stable/ |
22 | PKG_MD5SUM:=647c770a5542a4ae5437386807a89796 |
23 | |
24 | PKG_FIXUP:=libtool |
25 | PKG_INSTALL:=1 |
26 | |
27 | include $(INCLUDE_DIR)/package.mk |
28 | |
29 | define Package/moc |
30 | SECTION:=sound |
31 | CATEGORY:=Sound |
32 | DEPENDS:=+libcurl +BUILD_PATENTED:libmad +libvorbis +libncurses +libiconv +alsa-utils +libid3tag +libflac |
33 | TITLE:=Music On Console |
34 | endef |
35 | |
36 | define Package/moc/description |
37 | MOC (music on console) is a console audio player for LINUX/UNIX designed to be powerful and easy to use. |
38 | endef |
39 | |
40 | TARGET_CFLAGS+= \ |
41 | -I$(STAGING_DIR)/usr/lib/libiconv/include \ |
42 | |
43 | TARGET_LDFLAGS+= \ |
44 | -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ |
45 | -L$(STAGING_DIR)/usr/lib/libiconv/lib |
46 | |
47 | CONFIGURE_ARGS += \ |
48 | --without-mp3 \ |
49 | --enable-shared \ |
50 | --disable-static \ |
51 | --disable-debug |
52 | |
53 | define Package/moc/install |
54 | $(INSTALL_DIR) $(1)/usr/bin |
55 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mocp $(1)/usr/bin/ |
56 | $(INSTALL_DIR) $(1)/usr/lib/moc/decoder_plugins |
57 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/moc/decoder_plugins/*.so $(1)/usr/lib/moc/decoder_plugins |
58 | endef |
59 | |
60 | $(eval $(call BuildPackage,moc)) |
61 |