[PATCH] No LaTeX documentation for sane-backend package
[openwrt/svn-archive/archive.git] / libs / libmpd / Makefile
1 #
2 # Copyright (C) 2007-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libmpd
11 PKG_VERSION:=0.20.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://download.sarine.nl/Programs/gmpc/$(PKG_VERSION)/
16 PKG_MD5SUM:=2f1c99e12c69f7d95cfd1e27368056ed
17
18 PKG_FIXUP:=libtool
19 PKG_BUILD_PARALLEL:=1
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23 include $(INCLUDE_DIR)/nls.mk
24
25 TARGET_CFLAGS += $(FPIC)
26
27 define Package/libmpd
28 SECTION:=libs
29 CATEGORY:=Libraries
30 DEPENDS:=+glib2
31 TITLE:=Libmpd is an a library to easily connect to a mpd server
32 URL:=http://gmpc.wikia.com/wiki/LIBMPD_RELEASES
33 endef
34
35 define Package/libmpd/description
36 It's wraps around libmpdclient and provides a higher level api.
37 endef
38
39 define Build/InstallDev
40 $(INSTALL_DIR) $(1)/usr/include
41 $(CP) $(PKG_INSTALL_DIR)/usr/include/libmpd-1.0 $(1)/usr/include/
42 $(INSTALL_DIR) $(1)/usr/lib
43 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmpd.{a,so*} $(1)/usr/lib/
44 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
45 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libmpd.pc $(1)/usr/lib/pkgconfig/
46 endef
47
48 define Package/libmpd/install
49 $(INSTALL_DIR) $(1)/usr/lib
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmpd.so.* $(1)/usr/lib/
51 endef
52
53 $(eval $(call BuildPackage,libmpd))