f49c0213ef132824a3399f1a5279c6fbea8216d4
[openwrt/svn-archive/archive.git] / multimedia / uvc-streamer / Makefile
1 #
2 # Copyright (C) 2007 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:=uvc-streamer
12 PKG_VERSION:=1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=uvc_streamer_2007_07_21_14.07.06.tgz
16 PKG_SOURCE_URL:=http://naaa.de/programme/uvc_streamer/
17 PKG_MD5SUM:=491473a25882c3e7250aeeb68e0ca689
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/uvc-streamer
24 SECTION:=utils
25 CATEGORY:=Utilities
26 TITLE:=Linux-UVC streaming applicaton
27 DEPENDS:=@LINUX_2_6 +libpthread
28 URL:=http://www.naaa.de/uvc_streamer
29 endef
30
31 define Package/uvc-streamer/description
32 This package contains a streaming daemon for Linux-UVC based webcams
33 endef
34
35 MAKE_FLAGS += \
36 -C $(PKG_BUILD_DIR) \
37 CFLAGS="$(TARGET_CFLAGS)" \
38 CC="$(TARGET_CC)" \
39 all
40
41 define Package/uvc-streamer/install
42 $(INSTALL_DIR) $(1)/sbin
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/uvc_stream $(1)/sbin/$(PKG_NAME)
44 $(INSTALL_DIR) $(1)/etc/config
45 $(INSTALL_DATA) ./files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
46 $(INSTALL_DIR) $(1)/etc/init.d
47 $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
48 endef
49
50 $(eval $(call BuildPackage,uvc-streamer))