source: packages/multimedia/fswebcam/Makefile @ 20958

Last change on this file since 20958 was 20958, checked in by nico, 6 years ago

[packages] add fswebcam (closes: #7177)

File size: 1.3 KB
Line 
1#
2# Copyright (C) 2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=fswebcam
11PKG_VERSION:=20100405
12PKG_RELEASE:=1
13
14PKG_INSTALL=1
15
16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17PKG_SOURCE_URL:=http://www.firestorm.cx/fswebcam/files/
18PKG_MD5SUM:=1ca864c8cef096fb4ace71cf14085424
19
20include $(INCLUDE_DIR)/package.mk
21
22PKG_BUILD_DEPENDS:=libgd
23
24define Package/fswebcam
25  SECTION:=multimedia
26  CATEGORY:=Multimedia
27  TITLE:=fswebcam
28  URL:=http://www.firestorm.cx/fswebcam/
29  DEPENDS:=+libgd
30endef
31
32define Package/fswebcam/description
33  fswebcam is a neat and simple webcam app. It captures images from a V4L1/V4L2 compatible
34  device or file, averages them to reduce noise and draws a caption using the GD Graphics
35  Library which also handles compressing the image to PNG or JPEG. The resulting image
36  is saved to a file or sent to stdio where it can be piped to something like ncftpput or scp.
37endef
38
39EXTRA_CFLAGS+= $(TARGET_CPPFLAGS)
40EXTRA_LDFLAGS+= $(TARGET_LDFLAGS) -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
41
42define Package/fswebcam/install
43        $(INSTALL_DIR) $(1)/usr/bin
44        $(CP) $(PKG_INSTALL_DIR)/usr/bin/fswebcam $(1)/usr/bin/
45endef
46
47$(eval $(call BuildPackage,fswebcam))
Note: See TracBrowser for help on using the repository browser.