2 # Copyright (C) 2013 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=libwebcam-src-
$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@SF
/libwebcam
16 PKG_HASH
:=91741aca11f079eb6d043e31b7da6fe1f7927c28d7496590386928f8466b4297
17 PKG_MAINTAINER
:=Roger D
<rogerdammit@gmail.com
>
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/libwebcam-src-
$(PKG_VERSION
)
21 include $(INCLUDE_DIR
)/package.mk
22 include $(INCLUDE_DIR
)/cmake.mk
24 define Package
/uvcdynctrl
28 TITLE
:=Manage dynamic controls in uvcvideo
29 URL
:=http
://sourceforge.net
/projects
/libwebcam
/
33 define Package
/uvcdynctrl
/description
34 The webcam-tools package contains the following two components
:
35 - libwebcam
: Webcam Library
(LGPL
)
36 - uvcdynctrl
: Manage dynamic controls in uvcvideo
(GPL
)
39 define Package
/libwebcam
42 DEPENDS
:=+libxml2
+libiconv-full
44 URL
:=http
://sourceforge.net
/projects
/libwebcam
/
47 define Package
/libwebcam
/description
48 $(call Package
/uvcdynctrl
/description
)
51 TARGET_CFLAGS
+= -I
$(STAGING_DIR
)/usr
/lib
/libiconv-full
/include -liconv
52 TARGET_LDFLAGS
+= -L
$(STAGING_DIR
)/usr
/lib
/libiconv-full
/lib
54 define Package
/uvcdynctrl
/install
55 $(INSTALL_DIR
) $(1)/usr
/{bin
,share
}
56 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/uvcdynctrl
* $(1)/usr
/bin
/
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/uvcdynctrl
/ $(1)/usr
/share
/
60 define Package
/libwebcam
/install
61 $(INSTALL_DIR
) $(1)/usr
/lib
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libwebcam.so
* $(1)/usr
/lib
/
65 define Build
/InstallDev
66 $(INSTALL_DIR
) $(1)/usr
/{include,lib
}
67 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/* $(1)/usr
/include/
68 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libwebcam.
{a
,so
*} $(1)/usr
/lib
/
71 $(eval
$(call BuildPackage
,uvcdynctrl
))
72 $(eval
$(call BuildPackage
,libwebcam
))