kumquat-buildroot/package/x11r7/xlib_libXfont2/xlib_libXfont2.mk
Bernd Kuhls d32098fd08 package/x11r7/xlib_libXfont2: fix usage of libbsd
Upstream added optional support for libbsd:
"Add strlcat & strlcpy fallbacks if not provided by libc nor libbsd"
https://cgit.freedesktop.org/xorg/lib/libXfont/commit/?id=d4c941ea8b1dc07a14efce656bff58d31a14c985

and forgot to define HAVE_LIBBSD.

Also add libbsd as optional dependency because the build error occured
only when libbsd was built before building xlib_libXfont2.

Fixes:
http://autobuild.buildroot.net/results/165/165f9f948419fc69fbf6b9281d759b37bb7d40c6/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-10-16 23:23:06 +02:00

46 lines
1.2 KiB
Makefile

################################################################################
#
# xlib_libXfont2
#
################################################################################
XLIB_LIBXFONT2_VERSION = 2.0.4
XLIB_LIBXFONT2_SOURCE = libXfont2-$(XLIB_LIBXFONT2_VERSION).tar.bz2
XLIB_LIBXFONT2_SITE = http://xorg.freedesktop.org/releases/individual/lib
XLIB_LIBXFONT2_LICENSE = MIT
XLIB_LIBXFONT2_LICENSE_FILES = COPYING
XLIB_LIBXFONT2_INSTALL_STAGING = YES
# 0001-configure-define-HAVE_LIBBSD-when-libbsd-was-found.patch
XLIB_LIBXFONT2_AUTORECONF = YES
XLIB_LIBXFONT2_DEPENDENCIES = \
freetype \
xlib_libfontenc \
xlib_xtrans \
xorgproto \
xfont_encodings
ifeq ($(BR2_PACKAGE_LIBBSD),y)
XLIB_LIBXFONT2_DEPENDENCIES += libbsd
endif
HOST_XLIB_LIBXFONT2_DEPENDENCIES = \
host-freetype \
host-xlib_libfontenc \
host-xlib_xtrans \
host-xorgproto \
host-xfont_encodings
XLIB_LIBXFONT2_CONF_OPTS = --disable-devel-docs
HOST_XLIB_LIBXFONT2_CONF_OPTS = --disable-devel-docs
XLIB_LIBXFONT2_CFLAGS = $(TARGET_CFLAGS)
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
XLIB_LIBXFONT2_CFLAGS += -O0
endif
XLIB_LIBXFONT2_CONF_ENV = CFLAGS="$(XLIB_LIBXFONT2_CFLAGS)"
$(eval $(autotools-package))
$(eval $(host-autotools-package))