summaryrefslogtreecommitdiff
path: root/package/v4l-utils/Makefile
blob: a18b8574c31da7618777b952c7021931c0025c1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(ADK_TOPDIR)/rules.mk

PKG_NAME:=		v4l-utils
PKG_VERSION:=		1.26.1
PKG_RELEASE:=		1
PKG_HASH:=		4a71608c0ef7df2931176989e6d32b445c0bdc1030a2376d929c8ca6e550ec4e
PKG_DESCR:=		video4linux utilities
PKG_SECTION:=		mm/video
PKG_BUILDDEP:=		libjpeg-turbo
PKG_SITES:=		https://www.linuxtv.org/downloads/v4l-utils/
PKG_NEEDS:=		intl
PKG_LIBNAME:=		libv4l
PKG_OPTS:=		dev

PKG_SUBPKGS:=		V4L_UTILS LIBV4L
PKGSC_LIBV4L:=		libs/video
PKGSD_LIBV4L:=		Video4Linux2 libraries

include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call PKG_template,V4L_UTILS,v4l-utils,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,LIBV4L,libv4l,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBV4L},${PKGSC_LIBV4L},${PKG_OPTS}))

TARGET_CPPFLAGS+=	-DLINUX_I2C_DEV_H
WRKBUILD=               $(WRKDIR)/$(PKG_NAME)-obj

MESON_FLAGS+=		-Dgconv=disabled

CONFIG_STYLE:=		meson
BUILD_STYLE:=		meson
INSTALL_STYLE:=		meson

v4l-utils-install:
	$(INSTALL_DIR) $(IDIR_V4L_UTILS)/usr/bin
	$(INSTALL_BIN) $(WRKINST)/usr/bin/v4l2-ctl \
		$(IDIR_V4L_UTILS)/usr/bin

libv4l-install:
	$(INSTALL_DIR) $(IDIR_LIBV4L)/usr/lib/libv4l
	$(CP) $(WRKINST)/usr/lib/libv4l*so* \
		$(IDIR_LIBV4L)/usr/lib
	$(CP) $(WRKINST)/usr/lib/libv4l/v4l{1compat,2convert}.so \
		$(IDIR_LIBV4L)/usr/lib/libv4l

include ${ADK_TOPDIR}/mk/pkg-bottom.mk