summaryrefslogtreecommitdiffstats
path: root/rules/pcre2.make
blob: 79000b08ac2977558f516b3a5c5181ccf83da72f (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
79
80
81
82
83
84
85
86
87
88
89
90
# -*-makefile-*-
#
# Copyright (C) 2022 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_PCRE2) += pcre2

#
# Paths and names
#
PCRE2_VERSION		:= 10.40
PCRE2_MD5		:= a5cc4e276129c177d4fffb40601019a4
PCRE2			:= pcre2-$(PCRE2_VERSION)
PCRE2_SUFFIX		:= tar.bz2
PCRE2_URL		:= https://github.com/PCRE2Project/pcre2/releases/download/$(PCRE2)/$(PCRE2).$(PCRE2_SUFFIX)
PCRE2_SOURCE		:= $(SRCDIR)/$(PCRE2).$(PCRE2_SUFFIX)
PCRE2_DIR		:= $(BUILDDIR)/$(PCRE2)
PCRE2_LICENSE		:= BSD-3-Clause
PCRE2_LICENSE_FILES	:= file://LICENCE;md5=41bfb977e4933c506588724ce69bf5d2

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

#
# autoconf
#
PCRE2_CONF_TOOL	:= autoconf
PCRE2_CONF_OPT	:=  \
	$(CROSS_AUTOCONF_USR) \
	--$(call ptx/endis,PTXCONF_PCRE2_8)-pcre2-8 \
	--$(call ptx/endis,PTXCONF_PCRE2_16)-pcre2-16 \
	--$(call ptx/endis,PTXCONF_PCRE2_32)-pcre2-32 \
	--disable-debug \
	--disable-jit \
	--disable-jit-sealloc \
	--enable-pcre2grep-jit \
	--enable-pcre2grep-callout \
	--enable-pcre2grep-callout-fork \
	--disable-rebuild-chartables \
	--enable-unicode \
	--enable-newline-is-lf \
	--disable-bsr-anycrlf \
	--disable-never-backslash-C \
	--disable-ebcdic \
	--disable-ebcdic-nl25 \
	--disable-pcre2grep-libz \
	--disable-pcre2grep-libbz2 \
	--disable-pcre2test-libedit \
	--disable-pcre2test-libreadline \
	--disable-valgrind \
	--disable-coverage \
	--disable-fuzz-support \
	--enable-percent-zt

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

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

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

ifdef PTXCONF_PCRE2_8
	@$(call install_lib, pcre2, 0, 0, 0644, libpcre2-8)
	@$(call install_lib, pcre2, 0, 0, 0644, libpcre2-posix)
endif
ifdef PTXCONF_PCRE2_16
	@$(call install_lib, pcre2, 0, 0, 0644, libpcre2-16)
endif
ifdef PTXCONF_PCRE2_32
	@$(call install_lib, pcre2, 0, 0, 0644, libpcre2-32)
endif

	@$(call install_finish, pcre2)

	@$(call touch)

# vim: syntax=make