Add libmpd, by michu, fix #1870
authorJens Muecke <jens@nons.de>
Mon, 11 Jun 2007 20:49:50 +0000 (20:49 +0000)
committerJens Muecke <jens@nons.de>
Mon, 11 Jun 2007 20:49:50 +0000 (20:49 +0000)
SVN-Revision: 7573

libs/libmpd/Makefile [new file with mode: 0644]

diff --git a/libs/libmpd/Makefile b/libs/libmpd/Makefile
new file mode 100644 (file)
index 0000000..0a27f67
--- /dev/null
@@ -0,0 +1,58 @@
+# 
+# Copyright (C) 2007 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+# $Id: Makefile 6582 2007-03-16 20:21:39Z nbd $
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libmpd
+PKG_VERSION:=0.14.0
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://www.neophob.com/files/owrt/
+PKG_MD5SUM:=44f9e0e3bcaf205b9a0d86cbcca03f9f
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/libmpd
+  SECTION:=libs
+  CATEGORY:=Libraries
+  TITLE:=Libmpd is an a library to easily connect to a mpd server.
+  DESCRIPTION:=It's wraps around libmpdclient and provides a higher level api.  
+  URL:=http://sarine.nl/libmpd
+endef
+
+define Build/Compile
+       $(MAKE) -C $(PKG_BUILD_DIR) \
+       DESTDIR="$(PKG_INSTALL_DIR)" \
+               all install
+endef                  
+
+define Build/InstallDev
+       mkdir -p $(STAGING_DIR)/usr/include
+       $(CP) $(PKG_INSTALL_DIR)/usr/include/libmpd $(STAGING_DIR)/usr/include/
+       mkdir -p $(STAGING_DIR)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmpd.{a,so*} $(STAGING_DIR)/usr/lib/
+       mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libmpd.pc $(STAGING_DIR)/usr/lib/pkgconfig/
+       $(SED) 's,-I$$$${includedir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/libmpd.pc
+       $(SED) 's,-L$$$${libdir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/libmpd.pc
+endef
+
+define Build/UninstallDev
+       rm -rf \
+       $(STAGING_DIR)/usr/include/libmpd \
+       $(STAGING_DIR)/usr/lib/libmpd.{a,so*} \
+       $(STAGING_DIR)/usr/lib/pkgconfig/libmpd.pc
+endef
+
+define Package/libmpd/install
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libmpd.so.* $(1)/usr/lib/
+endef
+
+$(eval $(call BuildPackage,libmpd))