slang: make install-static do install-pkgconfig
[buildroot-gz.git] / package / dvb-apps / dvb-apps.mk
blobb5b8a1f09c70d92c67379ad2073aa9fdd9184982
1 ################################################################################
3 # dvb-apps
5 ################################################################################
7 DVB_APPS_VERSION = 3d43b280298c39a67d1d889e01e173f52c12da35
8 DVB_APPS_SITE = http://linuxtv.org/hg/dvb-apps
9 DVB_APPS_SITE_METHOD = hg
10 DVB_APPS_LICENSE = GPLv2, GPLv2+, LGPLv2.1+
11 DVB_APPS_LICENSE_FILES = COPYING COPYING.LGPL
13 ifeq ($(BR2_ENABLE_LOCALE),)
14 DVB_APPS_DEPENDENCIES = libiconv
15 DVB_APPS_LDLIBS += -liconv
16 endif
18 ifeq ($(BR2_STATIC_LIBS),y)
19 DVB_APPS_MAKE_OPTS += enable_shared=no
20 else ifeq ($(BR2_SHARED_LIBS),y)
21 DVB_APPS_MAKE_OPTS += enable_static=no
22 endif
24 DVB_APPS_INSTALL_STAGING = YES
26 define DVB_APPS_BUILD_CMDS
27 $(TARGET_CONFIGURE_OPTS) LDLIBS="$(DVB_APPS_LDLIBS)" \
28 $(MAKE) -C $(@D) CROSS_ROOT=$(STAGING_DIR) \
29 $(DVB_APPS_MAKE_OPTS)
30 endef
32 define DVB_APPS_INSTALL_STAGING_CMDS
33 $(MAKE) -C $(@D) $(DVB_APPS_MAKE_OPTS) DESTDIR=$(STAGING_DIR) install
34 endef
36 define DVB_APPS_INSTALL_TARGET_CMDS
37 $(MAKE) -C $(@D) $(DVB_APPS_MAKE_OPTS) DESTDIR=$(TARGET_DIR) install
38 endef
40 $(eval $(generic-package))