source: packages/sound/mpd/Makefile @ 17941

Last change on this file since 17941 was 17941, checked in by nico, 7 years ago

[packages] mpd: update to v0.15.4, cleanup

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 2.3 KB
Line 
1#
2# Copyright (C) 2007-2009 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=mpd
11PKG_VERSION:=0.15.4
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=@SF/musicpd
16PKG_MD5SUM:=addbbcbbf8a24a2ce80db1ba5a1f91ca
17
18include $(INCLUDE_DIR)/package.mk
19
20define Package/mpd
21  SECTION:=sound
22  CATEGORY:=Sound
23  DEPENDS:=+libflac +libid3tag +libmad +libvorbisidec +libpthread +glib2 +libmms +libcurl
24  TITLE:=Music Player Daemon
25  URL:=http://www.musicpd.org/
26endef
27
28define Package/mpd/description
29        MPD is a music player supporting flac, mp3 and ogg files.
30        It is typically controlled over a network using one of it's many
31        clients including mpc(console), gmpc(gnome), phpmp(php) etc.
32endef
33
34define Package/mpd/conffiles
35/etc/mpd.conf
36endef
37
38CONFIGURE_ARGS+= \
39        --disable-audiofile \
40        --disable-mpc \
41        --disable-aac \
42        --disable-lsr \
43        --disable-ao \
44        --disable-mvp \
45        --disable-lametest \
46        --disable-lame-encoder \
47        --enable-flac \
48        --enable-lastfm \
49        --enable-mms \
50        --with-tremor="$(STAGING_DIR)/usr/lib" \
51
52ifeq ($(CONFIG_PACKAGE_kmod-sound-core),)
53        CONFIGURE_ARGS+= --disable-alsa
54endif
55
56CONFIGURE_VARS += \
57        CURL_LIBS="-L$(STAGING_DIR)/usr/lib -lssl -lcrypto -lcurl" \
58        CURL_CFLAGS="-I$(STAGING_DIR)/usr/include" \
59        ID3TAG_LIBS="$(TARGET_LDFLAGS) -lz -lid3tag" \
60        ID3TAG_CFLAGS="$(TARGET_CPPFLAGS)" \
61        FLAC_LIBS="$(TARGET_LDFLAGS) -lFLAC" \
62        FLAC_CFLAGS="-I$(STAGING_DIR)/usr/include/FLAC" \
63        MAD_LIBS="$(TARGET_LDFLAGS) -lmad" \
64        MAD_CFLAGS="$(TARGET_CPPFLAGS)" \
65        OGGVORBIS_LIBS="$(TARGET_LDLFAGS) -lvorbisidec" \
66        OGGVORBIS_CFLAGS="$(TARGET_CPPFLAGS)" \
67        GLIB_CFLAGS="-I$(STAGING_DIR)/usr/include/glib-2.0 -I$(STAGING_DIR)/usr/lib/glib-2.0/include" \
68        GLIB_LIBS="$(TARGET_LDLFAGS) -L$(STAGING_DIR)/usr/lib/libintl/lib -lintl -L$(STAGING_DIR)/usr/lib/libiconv/lib -liconv -lglib-2.0 -lgthread-2.0 -pthread"
69
70define Build/Compile
71        $(MAKE) -C $(PKG_BUILD_DIR) \
72                DESTDIR="$(PKG_INSTALL_DIR)" \
73                all install
74endef
75
76define Package/mpd/install
77        $(INSTALL_DIR) $(1)/etc
78        $(CP) $(PKG_BUILD_DIR)/doc/mpdconf.example $(1)/etc/mpd.conf
79        $(INSTALL_DIR) $(1)/usr/bin
80        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mpd $(1)/usr/bin/
81        $(INSTALL_DIR) $(1)/etc/init.d
82        $(INSTALL_BIN) ./files/mpd.init $(1)/etc/init.d/mpd
83endef
84
85$(eval $(call BuildPackage,mpd))
Note: See TracBrowser for help on using the repository browser.