summaryrefslogtreecommitdiffstats
path: root/rules/qrencode.make
blob: c46eebe8d14ea10f63db7d113cca4871d4162cc7 (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
# -*-makefile-*-
#
# Copyright (C) 2017 by Roland Hieber <r.hieber@pengutronix.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_QRENCODE) += qrencode

#
# Paths and names
#
QRENCODE_VERSION	:= 3.4.4
QRENCODE_MD5		:= be545f3ce36ea8fbb58612d72c4222de
QRENCODE		:= qrencode-$(QRENCODE_VERSION)
QRENCODE_SUFFIX		:= tar.gz
QRENCODE_URL		:= https://fukuchi.org/works/qrencode/$(QRENCODE).$(QRENCODE_SUFFIX)
QRENCODE_SOURCE		:= $(SRCDIR)/$(QRENCODE).$(QRENCODE_SUFFIX)
QRENCODE_DIR		:= $(BUILDDIR)/$(QRENCODE)
QRENCODE_LICENSE	:= LGPL-2.1-or-later

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

QRENCODE_CONF_TOOL	:= autoconf
QRENCODE_CONF_OPT	:= \
	$(CROSS_AUTOCONF_USR) \
	--enable-thread-safety \
	--disable-sdltest \
	--disable-rpath \
	--disable-gprof \
	--disable-gcov \
	--disable-mudflap \
	--$(call ptx/wwo,PTXCONF_QRENCODE_TOOLS)-tools \
	--without-tests

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

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

	@$(call install_init, qrencode)
	@$(call install_fixup, qrencode,PRIORITY,optional)
	@$(call install_fixup, qrencode,SECTION,base)
	@$(call install_fixup, qrencode,AUTHOR,"Roland Hieber <r.hieber@pengutronix.de>")
	@$(call install_fixup, qrencode,DESCRIPTION,missing)

	@$(call install_lib, qrencode, 0, 0, 0644, libqrencode)

ifdef PTXCONF_QRENCODE_TOOLS
	@$(call install_copy, qrencode, 0, 0, 0755, -, /usr/bin/qrencode)
endif

	@$(call install_finish, qrencode)

	@$(call touch)

# vim: ft=make ts=8 noet tw=80