2007-12-28 14:58:56 +00:00
|
|
|
#
|
2011-11-12 01:30:27 +00:00
|
|
|
# Copyright (C) 2006-2011 OpenWrt.org
|
2007-12-28 14:58:56 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=scmpc
|
|
|
|
PKG_VERSION:=0.2.2
|
2011-11-12 01:30:27 +00:00
|
|
|
PKG_RELEASE:=3
|
2007-12-28 14:58:56 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=http://download.berlios.de/scmpc
|
|
|
|
PKG_MD5SUM:=f42482e4dbf398df92a36d5610b403e5
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/scmpc
|
|
|
|
SECTION:=sound
|
|
|
|
CATEGORY:=Sound
|
|
|
|
TITLE:=A MPD client which submits your tracks to Last.Fm
|
2009-12-07 23:47:47 +00:00
|
|
|
DEPENDS:=+libcurl +libdaemon +argtable +confuse +libpthread
|
2007-12-28 14:58:56 +00:00
|
|
|
URL:=http://scmpc.berlios.de/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/scmpc/description
|
|
|
|
scmpc is a multithreaded, robust client for MPD to submit tracks to Audioscrobbler (Last.fm).
|
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--disable-rpath \
|
|
|
|
--without-libiconv-prefix \
|
|
|
|
--without-libintl-prefix \
|
2009-12-07 23:47:47 +00:00
|
|
|
|
2007-12-28 14:58:56 +00:00
|
|
|
MAKE_FLAGS += \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
$(1) \
|
|
|
|
|
2011-02-04 12:58:39 +00:00
|
|
|
TARGET_LDFLAGS += \
|
|
|
|
-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
|
|
|
|
|
2007-12-28 14:58:56 +00:00
|
|
|
define Package/scmpc/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/src/scmpc $(1)/usr/bin/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/scmpc.init $(1)/etc/init.d/scmpc
|
|
|
|
$(INSTALL_DIR) $(1)/etc
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/examples/scmpc.conf $(1)/etc
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,scmpc))
|