Retain symlinks. $(INSTALL_*) copys the contens of a file, so if we want to keep
[openwrt/svn-archive/archive.git] / libs / libmpd / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libmpd
12 PKG_VERSION:=0.14.0
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.neophob.com/files/owrt/
17 PKG_MD5SUM:=44f9e0e3bcaf205b9a0d86cbcca03f9f
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/libmpd
22 SECTION:=libs
23 CATEGORY:=Libraries
24 TITLE:=Libmpd is an a library to easily connect to a mpd server.
25 URL:=http://sarine.nl/libmpd
26 endef
27
28 define Package/libmpd/description
29 It's wraps around libmpdclient and provides a higher level api.
30 endef
31
32 TARGET_CFLAGS += $(FPIC)
33
34 define Build/Compile
35 $(MAKE) -C $(PKG_BUILD_DIR) \
36 DESTDIR="$(PKG_INSTALL_DIR)" \
37 all install
38 endef
39
40 define Build/InstallDev
41 mkdir -p $(1)/usr/include
42 $(CP) $(PKG_INSTALL_DIR)/usr/include/libmpd $(1)/usr/include/
43 mkdir -p $(1)/usr/lib
44 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmpd.{a,so*} $(1)/usr/lib/
45 mkdir -p $(1)/usr/lib/pkgconfig
46 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libmpd.pc $(1)/usr/lib/pkgconfig/
47 endef
48
49 define Package/libmpd/install
50 $(INSTALL_DIR) $(1)/usr/lib
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmpd.so.* $(1)/usr/lib/
52 endef
53
54 $(eval $(call BuildPackage,libmpd))