2 # Copyright (C) 2010-2014 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
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
15 PKG_SOURCE_URL
:=http
://www.firestorm.cx
/fswebcam
/files \
16 http
://www.sanslogic.
co.uk
/fswebcam
/files
17 PKG_HASH
:=444d6a8a82102e09e935540c64a731021de36db03e1e74181f41ca6f39aa6474
20 PKG_LICENSE_FILES
:=LICENCE
21 PKG_MAINTAINER
:=Nicolas Thill
<nico@openwrt.org
>
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/fswebcam
31 URL
:=http
://www.sanslogic.
co.uk
/fswebcam
/
35 define Package
/fswebcam
/description
36 fswebcam is a neat and simple webcam app. It captures images from a V4L1
/V4L2 compatible
37 device or file
, averages them to reduce noise and draws a caption using the GD Graphics
38 Library which also handles compressing the image to PNG or JPEG. The resulting image
39 is saved to a file or sent to stdio where it can be piped to something like ncftpput or scp.
42 EXTRA_CFLAGS
+= $(TARGET_CPPFLAGS
)
43 EXTRA_LDFLAGS
+= $(TARGET_LDFLAGS
) -Wl
,-rpath-link
,$(STAGING_DIR
)/usr
/lib
45 define Package
/fswebcam
/install
46 $(INSTALL_DIR
) $(1)/usr
/bin
47 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/fswebcam
$(1)/usr
/bin
/
50 $(eval
$(call BuildPackage
,fswebcam
))