summaryrefslogtreecommitdiffstats
path: root/rules/jansson.make
blob: 11ede071910f71d31fa03e95a85c81d5d4983f9d (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
# -*-makefile-*-
#
# Copyright (C) 2014 by Christian Gieseler <cg@eks-engel.de>
#
# 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_JANSSON) += jansson

#
# Paths and names
#
JANSSON_VERSION	:= 2.7
JANSSON_MD5	:= ffac352f9c5f80a6ae8145d451af2c0e
JANSSON		:= jansson-$(JANSSON_VERSION)
JANSSON_SUFFIX	:= tar.bz2
JANSSON_URL	:= http://www.digip.org/jansson/releases/$(JANSSON).$(JANSSON_SUFFIX)
JANSSON_SOURCE	:= $(SRCDIR)/$(JANSSON).$(JANSSON_SUFFIX)
JANSSON_DIR	:= $(BUILDDIR)/lib$(JANSSON)
JANSSON_LICENSE	:= MIT

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

#
# autoconf
#

JANSSON_CONF_TOOL	:= autoconf
JANSSON_CONF_OPT	:= \
	$(CROSS_AUTOCONF_USR) \
	--disable-windows-cryptoapi

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/jansson.targetinstall:
	@$(call targetinfo)

	@$(call install_init, jansson)
	@$(call install_fixup, jansson,PRIORITY,optional)
	@$(call install_fixup, jansson,SECTION,base)
	@$(call install_fixup, jansson,AUTHOR,"Christian Gieseler <cg@eks-engel.de>")
	@$(call install_fixup, jansson,DESCRIPTION,missing)

	@$(call install_lib, jansson, 0, 0, 0644, libjansson)

	@$(call install_finish, jansson)

	@$(call touch)

# vim: syntax=make