4ccf2bf49879fe94e6686353f9b2344788dc3ce9
[openwrt/svn-archive/archive.git] / utils / setpwc / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=setpwc
12 PKG_VERSION:=1.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
16 PKG_SOURCE_URL:=http://www.vanheusden.com/setpwc/
17 PKG_MD5SUM:=a125d76f630c4aab940df5912f161965
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/setpwc
25 SECTION:=utils
26 CATEGORY:=Utilities
27 DEPENDS:=+kmod-pwc
28 TITLE:=Philips (and compatibles) WebCams (PWC) control utility
29 URL:=http://www.vanheusden.com/setpwc/
30 endef
31
32
33 define Build/Compile
34 $(TARGET_CC) $(TARGET_CFLAGS) -DVERSION=\"$(PKG_VERSION)\" -o $(PKG_BUILD_DIR)/setpwc $(PKG_BUILD_DIR)/setpwc.c
35 endef
36
37 define Package/setpwc/install
38 $(INSTALL_DIR) $(1)/usr/bin
39 $(INSTALL_BIN) $(PKG_BUILD_DIR)/setpwc $(1)/usr/bin/
40 endef
41
42 $(eval $(call BuildPackage,setpwc))