2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-10-07 09:04:26 +02:00
|
|
|
#
|
2013-06-06 01:53:29 +02:00
|
|
|
# pv
|
2011-10-07 09:04:26 +02:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-10-07 09:04:26 +02:00
|
|
|
|
2016-02-17 11:03:47 +01:00
|
|
|
PV_VERSION = 1.6.0
|
2011-10-07 09:04:26 +02:00
|
|
|
PV_SOURCE = pv-$(PV_VERSION).tar.bz2
|
2013-06-26 21:50:28 +02:00
|
|
|
PV_SITE = http://www.ivarch.com/programs/sources
|
2013-06-27 11:29:06 +02:00
|
|
|
PV_LICENSE = Artistic-2.0
|
|
|
|
PV_LICENSE_FILES = doc/COPYING
|
2017-07-03 17:07:42 +02:00
|
|
|
PV_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
|
2013-10-06 18:30:33 +02:00
|
|
|
|
2016-01-05 22:01:48 +01:00
|
|
|
# --relax linker option is enabled by default on sparc/sparc64
|
|
|
|
# architectures, and it can't be used together with -r option, so
|
|
|
|
# disable it.
|
|
|
|
ifeq ($(BR2_sparc)$(BR2_sparc64),y)
|
|
|
|
PV_LDFLAGS = "-Wl,--no-relax"
|
|
|
|
endif
|
|
|
|
|
2013-10-06 18:30:33 +02:00
|
|
|
# While 'pv' uses autoconf, it does not use automake for its
|
|
|
|
# makefiles. It uses $(LD) $(LDFLAGS) to achieve partial linking, but
|
|
|
|
# using 'ld' directly doesn't work well with some toolchain
|
|
|
|
# configuration, as the ld default emulation may not necessarily be
|
|
|
|
# the correct one. By passing the below values for LD and LDFLAGS, we
|
|
|
|
# ensure that 'gcc' is used to do these partial linking steps.
|
2014-09-27 21:32:38 +02:00
|
|
|
PV_MAKE_OPTS = \
|
2013-11-15 21:28:56 +01:00
|
|
|
LD="$(TARGET_CC)" \
|
2016-01-05 22:01:48 +01:00
|
|
|
LDFLAGS="-Wl,-r -nostdlib $(PV_LDFLAGS)"
|
2011-10-07 09:04:26 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|