kumquat-buildroot/package/vdr/vdr.mk
Bernd Kuhls 64843258ce package/vdr: enable musl/uclibc build
Re-add patch 0001 to fix uClibc build, this patch was removed 2019:
https://git.buildroot.net/buildroot/commit/?id=573d15b0790cfd2838cf0544ded79b415e20f5a7

Add two more patches from Alpine Linux to fix musl build.

Add optional dependency to libexecinfo to provide execinfo.h.

Add a patch that ensures an internal gettext symbol doesn't get used
except on glibc and uclibc toolchains. Indeed, both glibc and uclibc
provide the _nl_msg_cat_cntr variable, but not the musl
implementation.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2022-01-05 21:33:11 +01:00

67 lines
1.5 KiB
Makefile

################################################################################
#
# vdr
#
################################################################################
VDR_VERSION = 2.6.0
VDR_SITE = $(call github,vdr-projects,vdr,$(VDR_VERSION))
VDR_LICENSE = GPL-2.0+
VDR_LICENSE_FILES = COPYING
VDR_CPE_ID_VENDOR = tvdr
VDR_INSTALL_STAGING = YES
VDR_DEPENDENCIES = \
host-pkgconf \
freetype \
fontconfig \
jpeg \
libcap \
$(TARGET_NLS_DEPENDENCIES)
VDR_MAKE_FLAGS = \
NO_KBD=yes \
PKG_CONFIG=$(PKG_CONFIG_HOST_BINARY) \
PLUGINLIBDIR=/usr/lib/vdr \
PREFIX=/usr \
VIDEODIR=/var/lib/vdr
VDR_LDFLAGS = $(TARGET_NLS_LIBS)
ifeq ($(BR2_PACKAGE_LIBEXECINFO),y)
VDR_DEPENDENCIES += libexecinfo
VDR_LDFLAGS += -lexecinfo
endif
ifeq ($(BR2_PACKAGE_LIBFRIBIDI),y)
VDR_DEPENDENCIES += libfribidi
VDR_MAKE_FLAGS += BIDI=1
endif
ifeq ($(BR2_PACKAGE_LIBICONV),y)
VDR_DEPENDENCIES += libiconv
VDR_LDFLAGS += -liconv
endif
VDR_MAKE_ENV = \
LDFLAGS="$(VDR_LDFLAGS)" \
$(VDR_MAKE_FLAGS)
define VDR_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) $(VDR_MAKE_ENV) \
vdr vdr.pc include-dir
endef
define VDR_INSTALL_STAGING_CMDS
$(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(@D) $(VDR_MAKE_ENV) \
DESTDIR=$(STAGING_DIR) \
install-dirs install-bin install-conf install-includes \
install-pc
endef
define VDR_INSTALL_TARGET_CMDS
$(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(@D) $(VDR_MAKE_ENV) \
DESTDIR=$(TARGET_DIR) \
install-dirs install-bin install-conf
endef
$(eval $(generic-package))