Makefile (1329B)
1 # 2 # Copyright (C) 2006-2014 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:=mpc 11 PKG_VERSION:=0.27 12 PKG_RELEASE:=1 13 14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz 15 PKG_SOURCE_URL:=http://www.musicpd.org/download/mpc/0 16 PKG_MD5SUM:=d9430db9b9d7fb1eadbe4d13e8d97c66 17 PKG_LICENSE:=GPL-2.0+ 18 PKG_LICENSE_FILES:=COPYING 19 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net> 20 21 include $(INCLUDE_DIR)/package.mk 22 23 define Package/mpc 24 SECTION:=sound 25 CATEGORY:=Sound 26 DEPENDS:=+libmpdclient 27 TITLE:=Music Player Daemon Console Client 28 URL:=http://www.musicpd.org/ 29 endef 30 31 define Package/mpc/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. 35 this is MPC 36 endef 37 38 define Build/Configure 39 $(call Build/Configure/Default, \ 40 --disable-iconv \ 41 ) 42 endef 43 44 define Build/Compile 45 $(call Build/Compile/Default,\ 46 CFLAGS="$(TARGET_CFLAGS) -std=gnu99" \ 47 prefix="/usr" \ 48 all \ 49 ) 50 endef 51 52 define Package/mpc/install 53 $(INSTALL_DIR) $(1)/usr/bin 54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mpc $(1)/usr/bin/ 55 $(INSTALL_BIN) ./files/pls-handler.sh $(1)/usr/bin/ 56 endef 57 58 $(eval $(call BuildPackage,mpc))