13c6f833d2
- Drop patches (already in version) - pkg-config can be used to retrieve dependencies since https://projects.vdr-developer.org/git/vdr.git/commit?id=f5dba03447fa73da6e181ead7fb98c2b0a2fed41 so use it and drop unneeded workarounds such as VDR_INCLUDE_DIRS - Update indentation in hash file (two spaces) https://projects.vdr-developer.org/git/vdr.git/tree/HISTORY?id=V20406 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
62 lines
1.4 KiB
Makefile
62 lines
1.4 KiB
Makefile
################################################################################
|
|
#
|
|
# vdr
|
|
#
|
|
################################################################################
|
|
|
|
VDR_VERSION = 2.4.6
|
|
VDR_SOURCE = vdr-$(VDR_VERSION).tar.bz2
|
|
VDR_SITE = ftp://ftp.tvdr.de/vdr
|
|
VDR_LICENSE = GPL-2.0+
|
|
VDR_LICENSE_FILES = COPYING
|
|
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_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))
|