# -*-makefile-*- # # Copyright (C) 2009 by Michael Olbrich # # See CREDITS for details about who has contributed to this project. # # For further information about the PTXdist project and license conditions # see the README file. # # # We provide this package # PACKAGES-$(PTXCONF_JSON_C) += json-c # # Paths and names # JSON_C_VERSION := 0.12 JSON_C_MD5 := 3ca4bbb881dfc4017e8021b5e0a8c491 JSON_C := json-c-$(JSON_C_VERSION) JSON_C_SUFFIX := tar.gz JSON_C_URL := https://s3.amazonaws.com/json-c_releases/releases/$(JSON_C).$(JSON_C_SUFFIX) JSON_C_SOURCE := $(SRCDIR)/$(JSON_C).$(JSON_C_SUFFIX) JSON_C_DIR := $(BUILDDIR)/$(JSON_C) JSON_C_LICENSE := MIT # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- JSON_C_CONF_ENV := \ $(CROSS_ENV) \ CFLAGS="-O2 -g -Wno-error" # # autoconf # JSON_C_CONF_TOOL := autoconf JSON_C_CONF_OPT := \ $(CROSS_AUTOCONF_USR) \ --disable-static # ---------------------------------------------------------------------------- # Install # ---------------------------------------------------------------------------- $(STATEDIR)/json-c.install: @$(call targetinfo) @$(call world/install, JSON_C) @ln -sv json-c.pc $(JSON_C_PKGDIR)/usr/lib/pkgconfig/json.pc @$(call touch) # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- $(STATEDIR)/json-c.targetinstall: @$(call targetinfo) @$(call install_init, json-c) @$(call install_fixup, json-c,PRIORITY,optional) @$(call install_fixup, json-c,SECTION,base) @$(call install_fixup, json-c,AUTHOR,"Michael Olbrich ") @$(call install_fixup, json-c,DESCRIPTION,missing) @$(call install_lib, json-c, 0, 0, 0644, libjson-c) @$(call install_finish, json-c) @$(call touch) # vim: ft=make noet