summaryrefslogtreecommitdiff
path: root/package/json-c/Makefile
blob: 87f0b34527866077416ab6defe1540bfb0f2fcff (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
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(ADK_TOPDIR)/rules.mk

PKG_NAME:=		json-c
PKG_VERSION:=		0.12.1
PKG_RELEASE:=		1
PKG_HASH:=		2a136451a7932d80b7d197b10441e26e39428d67b1443ec43bbba824705e1123
PKG_DESCR:=		json library
PKG_SECTION:=		libs/data
PKG_URL:=		https://github.com/json-c/json-c/wiki
PKG_SITES:=		https://s3.amazonaws.com/json-c_releases/releases/
PKG_OPTS:=		dev
PKG_NOPARALLEL:=	1

DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.gz

include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call PKG_template,JSON_C,json-c,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))

CONFIGURE_ENV+=		ac_cv_func_malloc_0_nonnull=yes \
			ac_cv_func_realloc_0_nonnull=yes

json-c-install:
	$(INSTALL_DIR) $(IDIR_JSON_C)/usr/lib
	$(CP) $(WRKINST)/usr/lib/libjson*.so* \
		$(IDIR_JSON_C)/usr/lib

include ${ADK_TOPDIR}/mk/pkg-bottom.mk