[packages] zaptel: update and fix kernel module build for 2.6.34
[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.19.0
12 PKG_RELEASE:=2
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:=a994f5f25a22c778926a3684c3e3050d
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 TARGET_CFLAGS += $(FPIC)
24
25
26 define Package/libmpd
27 SECTION:=libs
28 CATEGORY:=Libraries
29 TITLE:=Libmpd is an a library to easily connect to a mpd server
30 URL:=http://gmpc.wikia.com/wiki/LIBMPD_RELEASES
31 endef
32
33 define Package/libmpd/description
34 It's wraps around libmpdclient and provides a higher level api.
35 endef
36
37 define Build/InstallDev
38 $(INSTALL_DIR) $(1)/usr/include
39 $(CP) $(PKG_INSTALL_DIR)/usr/include/libmpd-1.0 $(1)/usr/include/
40 $(INSTALL_DIR) $(1)/usr/lib
41 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmpd.{a,so*} $(1)/usr/lib/
42 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
43 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libmpd.pc $(1)/usr/lib/pkgconfig/
44 endef
45
46 define Package/libmpd/install
47 $(INSTALL_DIR) $(1)/usr/lib
48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmpd.so.* $(1)/usr/lib/
49 endef
50
51 $(eval $(call BuildPackage,libmpd))