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