diff options
author | Klaus Schwarzkopf <schwarzkopf@sensortherm.de> | 2011-03-07 18:21:18 +0100 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2011-04-04 22:56:38 +0200 |
commit | 3110e81773aeba9bb78e1fb54a0e8547ce882159 (patch) | |
tree | 446a7b36f9216349e4c4d0573b978253bfa3d140 /package/libv4l/libv4l.mk | |
parent | 6fd58dfcf58206e10e101dbfca5f7368bb425861 (diff) |
libv4l: Add new package libv4l
[Peter: move to hw section]
Signed-off-by: Klaus Schwarzkopf <schwarzkopf@sensortherm.de>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/libv4l/libv4l.mk')
-rw-r--r-- | package/libv4l/libv4l.mk | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/package/libv4l/libv4l.mk b/package/libv4l/libv4l.mk new file mode 100644 index 000000000..a72320ee6 --- /dev/null +++ b/package/libv4l/libv4l.mk @@ -0,0 +1,29 @@ +############################################################# +# +# libv4l +# +############################################################# +LIBV4L_VERSION = 0.8.3 +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 + +ifeq ($(BR2_PREFER_STATIC_LIB),y) + LIBV4L_MAKE_OPTS += LINKTYPE=static +endif + +define LIBV4L_BUILD_CMDS + $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/lib $(LIBV4L_MAKE_OPTS) +endef + +define LIBV4L_INSTALL_STAGING_CMDS + $(MAKE) -C $(@D)/lib DESTDIR=$(STAGING_DIR) $(LIBV4L_MAKE_OPTS) install +endef + +define LIBV4L_INSTALL_TARGET_CMDS + $(MAKE) -C $(@D)/lib DESTDIR=$(TARGET_DIR) $(LIBV4L_MAKE_OPTS) install +endef + +$(eval $(call GENTARGETS,package,libv4l)) + |