summaryrefslogtreecommitdiffstats
path: root/rules/libpsl.make
blob: 9ece1a974c7e223b2ee26b298e3c3ad2767b256a (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
# -*-makefile-*-
#
# Copyright (C) 2019 by Michael Olbrich <m.olbrich@pengutronix.de>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_LIBPSL) += libpsl

#
# Paths and names
#
LIBPSL_VERSION	:= 0.21.2
LIBPSL_MD5	:= 2864d3eb744b378d68f5c4da25603459
LIBPSL		:= libpsl-$(LIBPSL_VERSION)
LIBPSL_SUFFIX	:= tar.gz
LIBPSL_URL	:= https://github.com/rockdaboot/libpsl/releases/download/$(LIBPSL_VERSION)/$(LIBPSL).$(LIBPSL_SUFFIX)
LIBPSL_SOURCE	:= $(SRCDIR)/$(LIBPSL).$(LIBPSL_SUFFIX)
LIBPSL_DIR	:= $(BUILDDIR)/$(LIBPSL)
LIBPSL_LICENSE	:= MIT
LIBPSL_LICENSE_FILES := \
	file://COPYING;md5=6f40ab7fcf5ff18f3ff7f4b0860493fa

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

# Pretend that libidn2 is available. It's not actually used but needed for
# the --enable-builtin=libidn2 configure check.
LIBPSL_CONF_ENV	:= \
	$(CROSS_ENV) \
	ac_cv_search_idn2_lookup_u8= \
	ac_cv_search_u8_tolower=

#
# autoconf
#
LIBPSL_CONF_TOOL	:= autoconf
LIBPSL_CONF_OPT		:= \
	$(CROSS_AUTOCONF_USR) \
	--disable-nls \
	--disable-rpath \
	--disable-gtk-doc \
	--disable-gtk-doc-html \
	--disable-gtk-doc-pdf \
	--disable-man \
	--disable-cfi \
	--disable-ubsan \
	--disable-asan \
	--disable-runtime \
	--enable-builtin=libidn2 \
	--disable-valgrind-tests

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

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

	@$(call install_init, libpsl)
	@$(call install_fixup, libpsl,PRIORITY,optional)
	@$(call install_fixup, libpsl,SECTION,base)
	@$(call install_fixup, libpsl,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>")
	@$(call install_fixup, libpsl,DESCRIPTION,missing)

	@$(call install_lib, libpsl, 0, 0, 0644, libpsl)

	@$(call install_finish, libpsl)

	@$(call touch)

# vim: syntax=make