5346b10fc49f6215fad9a20ad3a4bec7359fc71c
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / pv / pv.mk
1 ################################################################################
2 #
3 # pv
4 #
5 ################################################################################
6
7 PV_VERSION = 1.5.7
8 PV_SOURCE = pv-$(PV_VERSION).tar.bz2
9 PV_SITE = http://www.ivarch.com/programs/sources
10 PV_LICENSE = Artistic-2.0
11 PV_LICENSE_FILES = doc/COPYING
12
13 # pv configure script is somewhat stupid: if it cannot find the host
14 # gettext tool msgfmt, it concludes that gettext is not available, and
15 # provides its own minimal version. Unfortunately, this minimal
16 # version conflicts with the available target gettext. We fix this by
17 # ensuring that host-gettext is built if gettext support is enabled;
18 PV_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext host-gettext)
19
20 # While 'pv' uses autoconf, it does not use automake for its
21 # makefiles. It uses $(LD) $(LDFLAGS) to achieve partial linking, but
22 # using 'ld' directly doesn't work well with some toolchain
23 # configuration, as the ld default emulation may not necessarily be
24 # the correct one. By passing the below values for LD and LDFLAGS, we
25 # ensure that 'gcc' is used to do these partial linking steps.
26 PV_MAKE_OPTS = \
27         LD="$(TARGET_CC)" \
28         LDFLAGS="-Wl,-r -nostdlib"
29
30 $(eval $(autotools-package))