source: packages/sound/mpd/Makefile @ 20318

Last change on this file since 20318 was 20318, checked in by florian, 6 years ago

[package] start mpd normally, patch from Stefan Monnier

  • 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-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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=mpd
11PKG_VERSION:=0.15.8
12PKG_RELEASE:=2
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=@SF/musicpd
16PKG_MD5SUM:=824e1ce46c0f468865d9e5e403cdaf5d
17
18PKG_INSTALL:=1
19
20include $(INCLUDE_DIR)/package.mk
21
22define Package/mpd
23  SECTION:=sound
24  CATEGORY:=Sound
25  DEPENDS:=+libflac +libid3tag +libmad +libvorbisidec +libpthread +glib2 \
26        +libmms +libcurl +libsqlite3 +libstdcpp +libvorbis +libshout
27  TITLE:=Music Player Daemon
28  URL:=http://www.musicpd.org/
29endef
30
31define Package/mpd/description
32        MPD is a music player supporting flac, mp3 and ogg files.
33        It is typically controlled over a network using one of it's many
34        clients including mpc(console), gmpc(gnome), phpmp(php) etc.
35endef
36
37define Package/mpd/conffiles
38/etc/mpd.conf
39endef
40
41CONFIGURE_ARGS+= \
42        --disable-audiofile \
43        --disable-mpc \
44        --disable-aac \
45        --disable-lsr \
46        --disable-ao \
47        --disable-mvp \
48        --disable-lametest \
49        --disable-lame-encoder \
50        --enable-flac \
51        --enable-lastfm \
52        --enable-mms \
53        --with-tremor="$(STAGING_DIR)/usr/lib" \
54
55ifeq ($(CONFIG_PACKAGE_kmod-sound-core),)
56        CONFIGURE_ARGS+= --disable-alsa
57endif
58
59TARGET_CFLAGS+=-std=gnu99
60
61CONFIGURE_VARS += \
62        CURL_LIBS="-L$(STAGING_DIR)/usr/lib -lssl -lcrypto -lcurl" \
63        CURL_CFLAGS="-I$(STAGING_DIR)/usr/include" \
64        ID3TAG_LIBS="$(TARGET_LDFLAGS) -lz -lid3tag" \
65        ID3TAG_CFLAGS="$(TARGET_CPPFLAGS)" \
66        FLAC_LIBS="$(TARGET_LDFLAGS) -lFLAC" \
67        FLAC_CFLAGS="-I$(STAGING_DIR)/usr/include/FLAC" \
68        MAD_LIBS="$(TARGET_LDFLAGS) -lmad" \
69        MAD_CFLAGS="$(TARGET_CPPFLAGS)" \
70        OGGVORBIS_LIBS="$(TARGET_LDLFAGS) -lvorbisidec" \
71        OGGVORBIS_CFLAGS="$(TARGET_CPPFLAGS)" \
72        GLIB_CFLAGS="-I$(STAGING_DIR)/usr/include/glib-2.0 -I$(STAGING_DIR)/usr/lib/glib-2.0/include" \
73        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"
74
75define Package/mpd/install
76        $(INSTALL_DIR) $(1)/etc
77        $(CP) $(PKG_BUILD_DIR)/doc/mpdconf.example $(1)/etc/mpd.conf
78        $(INSTALL_DIR) $(1)/usr/bin
79        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mpd $(1)/usr/bin/
80        $(INSTALL_DIR) $(1)/etc/init.d
81        $(INSTALL_BIN) ./files/mpd.init $(1)/etc/init.d/mpd
82endef
83
84$(eval $(call BuildPackage,mpd))
Note: See TracBrowser for help on using the repository browser.