You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2010-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=fswebcam
  9. PKG_VERSION:=20140113
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=http://www.firestorm.cx/fswebcam/files \
  13. http://www.sanslogic.co.uk/fswebcam/files
  14. PKG_HASH:=444d6a8a82102e09e935540c64a731021de36db03e1e74181f41ca6f39aa6474
  15. PKG_LICENSE:=GPL-2.0
  16. PKG_LICENSE_FILES:=LICENCE
  17. PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/fswebcam
  21. SECTION:=multimedia
  22. CATEGORY:=Multimedia
  23. TITLE:=fswebcam
  24. URL:=http://www.sanslogic.co.uk/fswebcam/
  25. DEPENDS:=+libgd
  26. endef
  27. define Package/fswebcam/description
  28. fswebcam is a neat and simple webcam app. It captures images from a V4L1/V4L2 compatible
  29. device or file, averages them to reduce noise and draws a caption using the GD Graphics
  30. Library which also handles compressing the image to PNG or JPEG. The resulting image
  31. is saved to a file or sent to stdio where it can be piped to something like ncftpput or scp.
  32. endef
  33. EXTRA_CFLAGS+= $(TARGET_CPPFLAGS)
  34. EXTRA_LDFLAGS+= $(TARGET_LDFLAGS)
  35. define Package/fswebcam/install
  36. $(INSTALL_DIR) $(1)/usr/bin
  37. $(CP) $(PKG_INSTALL_DIR)/usr/bin/fswebcam $(1)/usr/bin/
  38. endef
  39. $(eval $(call BuildPackage,fswebcam))