lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1835B)


      1 #
      2 # Copyright (C) 2016 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:=upmpdcli
     11 PKG_VERSION:=1.1.3
     12 PKG_RELEASE:=2
     13 
     14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
     15 PKG_SOURCE_URL:=http://www.lesbonscomptes.com/upmpdcli/downloads
     16 PKG_MD5SUM:=de9f232d6d5f746ec81ec239e11bdda4
     17 PKG_MAINTAINER:=Petko Bordjukov <bordjukov@gmail.com>
     18 PKG_LICENSE:=GPL-2.0
     19 PKG_LICENSE_FILES:=COPYING
     20 
     21 PKG_INSTALL:=1
     22 
     23 include $(INCLUDE_DIR)/package.mk
     24 
     25 define Package/upmpdcli
     26   SECTION:=sound
     27   CATEGORY:=Sound
     28   URL:=http://www.lesbonscomptes.com/upmpdcli
     29   DEPENDS+= +libupnpp +libmpdclient
     30   TITLE:=A UPnP front-end to MPD, the Music Player Daemon
     31   USERID:=upmpdcli=89:upmpdcli=89
     32   MENU:=1
     33 endef
     34 
     35 define Package/upmpdcli/description
     36 upmpdcli implements an UPnP Media Renderer, using MPD to perform the real work.
     37 endef
     38 
     39 define Package/upmpdcli/config
     40 	source "$(SOURCE)/Config.in"
     41 endef
     42 
     43 define Package/upmpdcli/install
     44 	$(INSTALL_DIR) $(1)/etc
     45 	$(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/upmpdcli.conf $(1)/etc/
     46 	$(INSTALL_DIR) $(1)/etc/config
     47 	$(INSTALL_CONF) ./files/upmpdcli.config $(1)/etc/config/upmpdcli
     48 	$(INSTALL_DIR) $(1)/usr/bin
     49 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/upmpdcli $(1)/usr/bin/
     50 ifeq ($(CONFIG_PACKAGE_UPMPDCLI_SCCTL),y)
     51 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/scctl $(1)/usr/bin/
     52 endif
     53 	$(INSTALL_DIR) $(1)/usr/share/upmpdcli
     54 ifneq ($(CONFIG_PACKAGE_UPMPDCLI_SC_WEB_INTERFACE),y)
     55 	$(RM) -rf $(PKG_INSTALL_DIR)/usr/share/upmpdcli/web
     56 endif
     57 	$(CP) $(PKG_INSTALL_DIR)/usr/share/upmpdcli $(1)/usr/share/
     58 	$(INSTALL_DATA) ./files/upmpdcli.png $(1)/usr/share/upmpdcli/icon.png
     59 	$(INSTALL_DIR) $(1)/etc/init.d
     60 	$(INSTALL_BIN) ./files/upmpdcli.init $(1)/etc/init.d/upmpdcli
     61 endef
     62 
     63 $(eval $(call BuildPackage,upmpdcli))