summaryrefslogtreecommitdiffstats
path: root/rules/cxxtools.make
blob: d95aef9e6395d6fc7ee086f439d5d2fafd35aa2a (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
# -*-makefile-*-
#
# Copyright (C) 2014 by Bernhard Seßler <bernhard.sessler@corscience.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_CXXTOOLS) += cxxtools

#
# Paths and names
#
CXXTOOLS_VERSION	:= 2.2.1
CXXTOOLS_MD5		:= aab00068ae5237435b37ac86f2ac7576
CXXTOOLS			:= cxxtools-$(CXXTOOLS_VERSION)
CXXTOOLS_SUFFIX		:= tar.gz
CXXTOOLS_URL		:= http://www.tntnet.org/download/$(CXXTOOLS).$(CXXTOOLS_SUFFIX)
CXXTOOLS_SOURCE		:= $(SRCDIR)/$(CXXTOOLS).$(CXXTOOLS_SUFFIX)
CXXTOOLS_DIR		:= $(BUILDDIR)/$(CXXTOOLS)
CXXTOOLS_LICENSE	:= LGPL-2.1

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

# Building in thumb mode fails
ifdef PTXCONF_ARCH_ARM
CXXTOOLS_CXXFLAGS	:= -marm
endif

CXXTOOLS_CONF_ENV	:= $(CROSS_ENV)
CXXTOOLS_CONF_TOOL	:= autoconf
CXXTOOLS_CONF_OPT	:= $(CROSS_AUTOCONF_USR) \
	--disable-static \
	--disable-unittest \
	--disable-demos \
	--disable-dependency-tracking

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

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

	@$(call install_init, cxxtools)
	@$(call install_fixup, cxxtools,PRIORITY,optional)
	@$(call install_fixup, cxxtools,SECTION,base)
	@$(call install_fixup, cxxtools,AUTHOR,"Bernhard Seßler <bernhard.sessler@corscience.de>")
	@$(call install_fixup, cxxtools,DESCRIPTION,missing)

	@$(call install_lib, cxxtools, 0, 0, 0644, libcxxtools)
	@$(call install_lib, cxxtools, 0, 0, 0644, libcxxtools-bin)
	@$(call install_lib, cxxtools, 0, 0, 0644, libcxxtools-http)
	@$(call install_lib, cxxtools, 0, 0, 0644, libcxxtools-json)
	@$(call install_lib, cxxtools, 0, 0, 0644, libcxxtools-unit)
	@$(call install_lib, cxxtools, 0, 0, 0644, libcxxtools-xmlrpc)

	@$(call install_finish, cxxtools)

	@$(call touch)

# vim: syntax=make