2011-03-07 18:21:18 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# libv4l
|
|
|
|
#
|
|
|
|
#############################################################
|
2012-10-11 10:39:20 +02:00
|
|
|
LIBV4L_VERSION = 0.8.9
|
2011-03-07 18:21:18 +01:00
|
|
|
LIBV4L_SOURCE = v4l-utils-$(LIBV4L_VERSION).tar.bz2
|
|
|
|
LIBV4L_SITE = http://linuxtv.org/downloads/v4l-utils/
|
|
|
|
LIBV4L_INSTALL_STAGING = YES
|
|
|
|
LIBV4L_MAKE_OPTS = PREFIX=/usr
|
2012-01-22 16:30:45 +01:00
|
|
|
LIBV4L_DEPENDENCIES = jpeg
|
2011-03-07 18:21:18 +01:00
|
|
|
|
2011-04-05 12:05:08 +02:00
|
|
|
LIBV4L_DIRS_y += lib
|
2012-10-14 10:18:21 +02:00
|
|
|
LIBV4L_DIRS_$(BR2_PACKAGE_LIBV4L_DECODE_TM6000) += utils/libv4l2util utils/decode_tm6000
|
2011-04-05 12:05:08 +02:00
|
|
|
LIBV4L_DIRS_$(BR2_PACKAGE_LIBV4L_IR_KEYTABLE) += utils/keytable
|
|
|
|
LIBV4L_DIRS_$(BR2_PACKAGE_LIBV4L_V4L2_COMPLIANCE) += utils/v4l2-compliance
|
|
|
|
LIBV4L_DIRS_$(BR2_PACKAGE_LIBV4L_V4L2_CTL) += utils/v4l2-ctl
|
|
|
|
LIBV4L_DIRS_$(BR2_PACKAGE_LIBV4L_V4L2_DBG) += utils/v4l2-dbg
|
|
|
|
|
2011-03-07 18:21:18 +01:00
|
|
|
ifeq ($(BR2_PREFER_STATIC_LIB),y)
|
|
|
|
LIBV4L_MAKE_OPTS += LINKTYPE=static
|
|
|
|
endif
|
|
|
|
|
|
|
|
define LIBV4L_BUILD_CMDS
|
2011-04-05 12:05:08 +02:00
|
|
|
for i in $(LIBV4L_DIRS_y); do \
|
2012-10-11 10:37:29 +02:00
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)/$$i \
|
2012-10-14 10:18:20 +02:00
|
|
|
$(LIBV4L_MAKE_OPTS) || exit 1 ; done
|
2011-03-07 18:21:18 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LIBV4L_INSTALL_STAGING_CMDS
|
2011-04-05 12:05:08 +02:00
|
|
|
for i in $(LIBV4L_DIRS_y); do \
|
2012-10-11 10:37:29 +02:00
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)/$$i \
|
2012-10-14 10:18:20 +02:00
|
|
|
DESTDIR=$(STAGING_DIR) $(LIBV4L_MAKE_OPTS) install || exit 1; done
|
2011-03-07 18:21:18 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LIBV4L_INSTALL_TARGET_CMDS
|
2011-04-05 12:05:08 +02:00
|
|
|
for i in $(LIBV4L_DIRS_y); do \
|
2012-10-11 10:37:29 +02:00
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)/$$i \
|
2012-10-14 10:18:20 +02:00
|
|
|
DESTDIR=$(TARGET_DIR) $(LIBV4L_MAKE_OPTS) install || exit 1; done
|
2011-03-07 18:21:18 +01:00
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|
2011-03-07 18:21:18 +01:00
|
|
|
|