Date:2010-11-21 18:58:28 (13 years 4 months ago)
Author:Yauhen Kharuzhy
Commit:5e68f891bf84261a0f0d099525acc95e51f91130
Message:Add libmpdclient package

Signed-off-by: Yauhen Kharuzhy <jekhor@gmail.com>
Files: libmpdclient/Makefile (1 diff)

Change Details

libmpdclient/Makefile
1#
2# Copyright (C) 2008 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=libmpdclient
11PKG_VERSION:=2.3
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=https://sourceforge.net/projects/musicpd/files/libmpdclient/$(PKG_VERSION)/
16PKG_SOURCE_URL:=http://downloads.sourceforge.net/project/musicpd/libmpdclient/$(PKG_VERSION)/
17PKG_MD5SUM:=d14bad30c9c117aa6b211ad9f96cfbe0
18
19PKG_INSTALL:=1
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/libmpdclient
24    TITLE:=libmpdclient
25    SECTION:=libs
26    CATEGORY:=Libraries
27    URL:=http://mpd.wikia.com/wiki/ClientLib:libmpdclient
28    DEPENDS:=
29endef
30
31define Package/libmpdclient/description
32    A stable, documented, asynchronous API library for interfacing MPD in the C, C++ & Objective C languages.
33endef
34
35TARGET_CFLAGS+="-std=gnu99"
36
37#TARGET_LDFLAGS+=-lpthread
38
39define Build/Configure
40    $(call Build/Configure/Default)
41endef
42
43define Build/InstallDev
44    $(INSTALL_DIR) \
45        $(1)/usr/include \
46        $(1)/usr/lib \
47        $(1)/usr/lib/pkgconfig
48    $(CP) \
49        $(PKG_INSTALL_DIR)/usr/lib/* \
50        $(1)/usr/lib/
51    $(CP) \
52        $(PKG_INSTALL_DIR)/usr/include/* \
53        $(1)/usr/include/
54    $(CP) \
55        $(PKG_INSTALL_DIR)/usr/lib/pkgconfig \
56        $(1)/usr/lib/
57endef
58
59define Package/libmpdclient/install
60    $(INSTALL_DIR) \
61        $(1)/usr/lib
62    $(CP) \
63        $(PKG_INSTALL_DIR)/usr/lib/libmpdclient.so* \
64        $(1)/usr/lib/
65endef
66
67$(eval $(call BuildPackage,libmpdclient))

Archive Download the corresponding diff file



interactive