packages/sound/empcd/Makefile
florian a6c27cf02c empcd: pass our CFLAGS and LDFLAGS
The package Makefile already provides some CFLAGS and LDFLAGS but
we want to use ours.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@39804 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-03-08 00:56:47 +00:00

53 lines
1.2 KiB
Makefile

#
# Copyright (C) 2007-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=empcd
PKG_VERSION:=2008.02.16
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://unfix.org/projects/empcd
PKG_MD5SUM:=c3209f6bf8eb6e8ea9638601e1cd04a4
include $(INCLUDE_DIR)/package.mk
define Package/empcd
SECTION:=sound
CATEGORY:=Sound
TITLE:=EMPCd can control the MPD
URL:=http://unfix.org/projects/empcd
endef
define Package/empcd/description
This is EMPCd which can use /dev/input/event0 or other event devices
to control MPD (Music Player Daemon), directly using libmpdclient
and other programs, currently using system(2).
endef
define Package/empcd/conffiles
/etc/empcd.conf
endef
define Build/Compile
$(call Build/Compile/Default,\
DESTDIR="$(PKG_INSTALL_DIR)" \
$(TARGET_CONFIGURE_OPTS) \
all \
)
endef
define Package/empcd/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/empcd $(1)/usr/bin/
$(INSTALL_DIR) $(1)/etc
$(INSTALL_CONF) $(PKG_BUILD_DIR)/doc/empcd.conf $(1)/etc/
endef
$(eval $(call BuildPackage,empcd))