Merge pull request #11353 from kvuorine/fwknop-fixes
[feed/packages.git] / libs / libmpdclient / Makefile
1 #
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=libmpdclient
9 PKG_VERSION:=2.19
10 PKG_RELEASE:=1
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
13 PKG_SOURCE_URL:=https://www.musicpd.org/download/libmpdclient/2
14 PKG_HASH:=158aad4c2278ab08e76a3f2b0166c99b39fae00ee17231bd225c5a36e977a189
15
16 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
17 PKG_LICENSE:=BSD-3-Clause
18 PKG_LICENSE_FILES:=COPYING
19
20 PKG_BUILD_DEPENDS:=meson/host
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24 include ../../devel/meson/meson.mk
25
26 define Package/libmpdclient
27 TITLE:=libmpdclient
28 SECTION:=libs
29 CATEGORY:=Libraries
30 URL:=https://musicpd.org/libs/libmpdclient/
31 endef
32
33 define Package/libmpdclient/description
34 A stable, documented, asynchronous API library for interfacing MPD in the C, C++ & Objective C languages.
35 endef
36
37 MESON_ARGS+=-Ddocumentation=false
38
39 define Build/InstallDev
40 $(INSTALL_DIR) \
41 $(1)/usr/include \
42 $(1)/usr/lib \
43 $(1)/usr/lib/pkgconfig
44 $(CP) \
45 $(PKG_INSTALL_DIR)/usr/lib/* \
46 $(1)/usr/lib/
47 $(CP) \
48 $(PKG_INSTALL_DIR)/usr/include/* \
49 $(1)/usr/include/
50 $(CP) \
51 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig \
52 $(1)/usr/lib/
53 endef
54
55 define Package/libmpdclient/install
56 $(INSTALL_DIR) \
57 $(1)/usr/lib
58 $(CP) \
59 $(PKG_INSTALL_DIR)/usr/lib/libmpdclient.so* \
60 $(1)/usr/lib/
61 endef
62
63 $(eval $(call BuildPackage,libmpdclient))