summaryrefslogtreecommitdiffstats
path: root/utils/setpwc/Makefile
blob: 638f10e490ded3cc1f7666be0c584630cbc5ff1e (plain)
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
#
# Copyright (C) 2006-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:=setpwc
PKG_VERSION:=1.3
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=http://www.vanheusden.com/setpwc
PKG_MD5SUM:=79d5ee468c0076feb3cac473bef661d2

include $(INCLUDE_DIR)/package.mk

define Package/setpwc
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE:=Philips (and compatibles) WebCams (PWC) control utility
  URL:=http://www.vanheusden.com/setpwc/
  DEPENDS:=+kmod-video-pwc
endef

define Package/setpwc/description
	With setpwc you can set and list various settings of Philips (and
	compatibles) WebCams with the 'PWC chipset'.
endef

define Build/Compile
	$(TARGET_CC) $(TARGET_CFLAGS) -DVERSION=\"$(PKG_VERSION)\" -o $(PKG_BUILD_DIR)/setpwc $(PKG_BUILD_DIR)/setpwc.c
endef

define Package/setpwc/install
	$(INSTALL_DIR) $(1)/usr/bin
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/setpwc $(1)/usr/bin/
endef

$(eval $(call BuildPackage,setpwc))