1
0

Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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:=1
  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_MD5SUM:=1bfdb21904e816f100370ec8f4df986b
  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) -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
  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))