Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:= v4l-utils
  5. PKG_VERSION:= 1.0.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 2127f2d06be9162b0d346f7037a9e852
  8. PKG_DESCR:= Video4Linux2 utilities
  9. PKG_SECTION:= multimedia
  10. PKG_BUILDDEP:= libjpeg-turbo
  11. PKG_SITES:= http://linuxtv.org/downloads/v4l-utils/
  12. PKG_LIBNAME:= libv4l
  13. PKG_OPTS:= dev
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  15. PKG_LIBC_DEPENDS:= glibc
  16. PKG_SUBPKGS:= V4L_UTILS LIBV4L
  17. PKGSC_LIBV4L:= libs
  18. PKGSD_LIBV4L:= Video4Linux2 libraries
  19. ifeq ($(ADK_STATIC),y)
  20. PKG_OPTS+= libmix
  21. endif
  22. include $(TOPDIR)/mk/package.mk
  23. $(eval $(call PKG_template,V4L_UTILS,v4l-utils,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  24. $(eval $(call PKG_template,LIBV4L,libv4l,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBV4L},${PKGSC_LIBV4L},${PKG_OPTS}))
  25. CONFIGURE_ARGS+= --disable-qv4l2
  26. TARGET_CPPFLAGS+= -DLINUX_I2C_DEV_H
  27. v4l-utils-install:
  28. $(INSTALL_DIR) $(IDIR_V4L_UTILS)/usr/bin
  29. $(INSTALL_BIN) $(WRKINST)/usr/bin/v4l2-ctl \
  30. $(IDIR_V4L_UTILS)/usr/bin
  31. libv4l-install:
  32. $(INSTALL_DIR) $(IDIR_LIBV4L)/usr/lib/libv4l
  33. $(CP) $(WRKINST)/usr/lib/libv4l*so* \
  34. $(IDIR_LIBV4L)/usr/lib
  35. $(CP) $(WRKINST)/usr/lib/libv4l/v4l{1compat,2convert}.so \
  36. $(IDIR_LIBV4L)/usr/lib/libv4l
  37. include ${TOPDIR}/mk/pkg-bottom.mk