2009-11-23 23:42:11 +00:00
|
|
|
#
|
2010-02-19 00:14:01 +00:00
|
|
|
# Copyright (C) 2007-2010 OpenWrt.org
|
2007-06-11 20:49:50 +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:=libmpd
|
2011-02-05 19:42:41 +00:00
|
|
|
PKG_VERSION:=0.20.0
|
|
|
|
PKG_RELEASE:=1
|
2007-06-11 20:49:50 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2009-11-23 23:42:11 +00:00
|
|
|
PKG_SOURCE_URL:=http://download.sarine.nl/Programs/gmpc/$(PKG_VERSION)/
|
2011-02-05 19:42:41 +00:00
|
|
|
PKG_MD5SUM:=2f1c99e12c69f7d95cfd1e27368056ed
|
2007-06-11 20:49:50 +00:00
|
|
|
|
2010-02-19 00:14:01 +00:00
|
|
|
PKG_FIXUP:=libtool
|
2010-10-08 18:54:09 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2007-06-11 20:49:50 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2011-02-02 18:54:24 +00:00
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
2007-06-11 20:49:50 +00:00
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2007-06-11 20:49:50 +00:00
|
|
|
define Package/libmpd
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2010-10-08 18:50:14 +00:00
|
|
|
DEPENDS:=+glib2
|
2009-11-23 23:42:11 +00:00
|
|
|
TITLE:=Libmpd is an a library to easily connect to a mpd server
|
|
|
|
URL:=http://gmpc.wikia.com/wiki/LIBMPD_RELEASES
|
2007-06-11 20:49:50 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/libmpd/description
|
|
|
|
It's wraps around libmpdclient and provides a higher level api.
|
|
|
|
endef
|
|
|
|
|
2007-06-11 20:49:50 +00:00
|
|
|
define Build/InstallDev
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2009-11-23 23:42:11 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/libmpd-1.0 $(1)/usr/include/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libmpd.{a,so*} $(1)/usr/lib/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libmpd.pc $(1)/usr/lib/pkgconfig/
|
2007-06-11 20:49:50 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libmpd/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-01-04 00:06:33 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libmpd.so.* $(1)/usr/lib/
|
2007-06-11 20:49:50 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libmpd))
|