From 538c17cc9282d57e1497a4d47f57f9ab5b51e340 Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Sat, 17 Apr 2010 17:19:38 +0000 Subject: [PATCH] add fswebcam (closes: #7177) SVN-Revision: 20958 --- multimedia/fswebcam/Makefile | 47 ++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 multimedia/fswebcam/Makefile diff --git a/multimedia/fswebcam/Makefile b/multimedia/fswebcam/Makefile new file mode 100644 index 000000000..c73495d43 --- /dev/null +++ b/multimedia/fswebcam/Makefile @@ -0,0 +1,47 @@ +# +# Copyright (C) 2010 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=fswebcam +PKG_VERSION:=20100405 +PKG_RELEASE:=1 + +PKG_INSTALL=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://www.firestorm.cx/fswebcam/files/ +PKG_MD5SUM:=1ca864c8cef096fb4ace71cf14085424 + +include $(INCLUDE_DIR)/package.mk + +PKG_BUILD_DEPENDS:=libgd + +define Package/fswebcam + SECTION:=multimedia + CATEGORY:=Multimedia + TITLE:=fswebcam + URL:=http://www.firestorm.cx/fswebcam/ + DEPENDS:=+libgd +endef + +define Package/fswebcam/description + fswebcam is a neat and simple webcam app. It captures images from a V4L1/V4L2 compatible + device or file, averages them to reduce noise and draws a caption using the GD Graphics + Library which also handles compressing the image to PNG or JPEG. The resulting image + is saved to a file or sent to stdio where it can be piped to something like ncftpput or scp. +endef + +EXTRA_CFLAGS+= $(TARGET_CPPFLAGS) +EXTRA_LDFLAGS+= $(TARGET_LDFLAGS) -Wl,-rpath-link,$(STAGING_DIR)/usr/lib + +define Package/fswebcam/install + $(INSTALL_DIR) $(1)/usr/bin + $(CP) $(PKG_INSTALL_DIR)/usr/bin/fswebcam $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,fswebcam)) -- 2.30.2