Makefile 1.25 KB
Newer Older
blogic's avatar
blogic committed
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
#
# Copyright (C) 2010-2012 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:=20110717
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=http://www.sanslogic.co.uk/fswebcam/files
PKG_MD5SUM:=0b343a827771b7546cf4ede19a5ed000

PKG_INSTALL:=1

include $(INCLUDE_DIR)/package.mk

define Package/fswebcam
  SECTION:=multimedia
  CATEGORY:=Multimedia
  TITLE:=fswebcam
  URL:=http://www.sanslogic.co.uk/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))