board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / vdr / vdr.mk
blobcdfa7e3af8f319a14f49a26e08b02c20ba683678
1 ################################################################################
3 # vdr
5 ################################################################################
7 VDR_VERSION = 2.3.2
8 VDR_SOURCE = vdr-$(VDR_VERSION).tar.bz2
9 VDR_SITE = ftp://ftp.tvdr.de/vdr/Developer
10 VDR_LICENSE = GPLv2+
11 VDR_LICENSE_FILES = COPYING
12 VDR_INSTALL_STAGING = YES
13 VDR_DEPENDENCIES = \
14 freetype \
15 fontconfig \
16 jpeg \
17 libcap
19 VDR_INCLUDE_DIRS = -I$(STAGING_DIR)/usr/include/freetype2
20 VDR_MAKE_FLAGS = \
21 NO_KBD=yes \
22 PLUGINLIBDIR=/usr/lib/vdr \
23 PREFIX=/usr \
24 VIDEODIR=/var/lib/vdr
26 ifeq ($(BR2_NEEDS_GETTEXT),y)
27 VDR_DEPENDENCIES += gettext
28 VDR_LDFLAGS += -lintl
29 endif
31 ifeq ($(BR2_PACKAGE_LIBFRIBIDI),y)
32 VDR_DEPENDENCIES += libfribidi
33 VDR_INCLUDE_DIRS += -I$(STAGING_DIR)/usr/include/fribidi
34 VDR_LDFLAGS += -lfribidi
35 VDR_MAKE_FLAGS += BIDI=1
36 endif
38 ifeq ($(BR2_PACKAGE_LIBICONV),y)
39 VDR_DEPENDENCIES += libiconv
40 VDR_LDFLAGS += -liconv
41 endif
43 VDR_MAKE_ENV = \
44 INCLUDES="$(VDR_INCLUDE_DIRS)" \
45 LDFLAGS="$(VDR_LDFLAGS)" \
46 $(VDR_MAKE_FLAGS)
48 define VDR_BUILD_CMDS
49 $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) $(VDR_MAKE_ENV) \
50 vdr vdr.pc include-dir
51 endef
53 define VDR_INSTALL_STAGING_CMDS
54 $(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(@D) $(VDR_MAKE_ENV) \
55 DESTDIR=$(STAGING_DIR) \
56 install-dirs install-bin install-conf install-includes \
57 install-pc
58 endef
60 define VDR_INSTALL_TARGET_CMDS
61 $(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(@D) $(VDR_MAKE_ENV) \
62 DESTDIR=$(TARGET_DIR) \
63 install-dirs install-bin install-conf
64 endef
66 $(eval $(generic-package))