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
|
2009-11-23 23:42:11 +00:00
|
|
|
PKG_VERSION:=0.19.0
|
2010-02-19 00:14:01 +00:00
|
|
|
PKG_RELEASE:=2
|
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)/
|
|
|
|
PKG_MD5SUM:=a994f5f25a22c778926a3684c3e3050d
|
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
|
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
2010-12-13 02:01:55 +00:00
|
|
|
TARGET_LDFLAGS += \
|
|
|
|
-L$(STAGING_DIR)/usr/lib/libintl/lib \
|
|
|
|
-L$(STAGING_DIR)/usr/lib/libiconv/lib
|
2010-02-18 13:10:21 +00:00
|
|
|
|
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))
|