treewide: make all GNOME URLs consistent
[feed/packages.git] / libs / json-glib / Makefile
1 #
2 # Copyright (C) 2020 Sebastian Kemper <sebastian_ml@gmx.net>
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:=json-glib
11 PKG_VERSION:=1.6.6
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=@GNOME/json-glib/$(basename $(PKG_VERSION))
16 PKG_HASH:=96ec98be7a91f6dde33636720e3da2ff6ecbb90e76ccaa49497f31a6855a490e
17
18 PKG_LICENSE:=LGPL-2.1-or-later
19 PKG_LICENSE_FILES:=COPYING
20 PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
21
22 PKG_BUILD_DEPENDS:=glib2/host
23
24 OPENWRT_VERBOSE:=c
25
26 include $(INCLUDE_DIR)/package.mk
27 include $(INCLUDE_DIR)/nls.mk
28 include $(INCLUDE_DIR)/meson.mk
29
30 define Package/json-glib
31 SECTION:=libs
32 CATEGORY:=Libraries
33 TITLE:=JSON GLib Library
34 URL:=https://wiki.gnome.org/Projects/JsonGlib
35 DEPENDS:=+glib2
36 ABI_VERSION:=0
37 endef
38
39 define Package/json-glib/description
40 JSON-GLib is a library providing serialization and deserialization
41 support for the JavaScript Object Notation (JSON) format described by
42 RFC 4627.
43 endef
44
45 MESON_ARGS += \
46 -Dgtk_doc=disabled \
47 -Dintrospection=disabled \
48 -Dman=false \
49 -Dtests=false
50
51 define Build/Prepare
52 $(call Build/Prepare/Default)
53 ifeq ($(QUILT),)
54 $(SED) '/error=format=2/d' $(PKG_BUILD_DIR)/meson.build
55 endif
56 endef
57
58 define Build/InstallDev
59 $(INSTALL_DIR) $(1)/usr/include/json-glib-1.0/json-glib
60 $(INSTALL_DATA) \
61 $(PKG_INSTALL_DIR)/usr/include/json-glib-1.0/json-glib/*.h \
62 $(1)/usr/include/json-glib-1.0/json-glib
63
64 $(INSTALL_DIR) $(1)/usr/lib
65 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libjson-glib-1.0.so* \
66 $(1)/usr/lib
67
68 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
69 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/json-glib-1.0.pc \
70 $(1)/usr/lib/pkgconfig
71 endef
72
73 define Package/json-glib/install
74 $(INSTALL_DIR) $(1)/usr/lib
75 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libjson-glib-1.0.so.$(ABI_VERSION)* \
76 $(1)/usr/lib
77 endef
78
79 $(eval $(call BuildPackage,json-glib))