[package] do not build input_testpicture pluging which requires convert on the host...
[openwrt/svn-archive/archive.git] / multimedia / mjpg-streamer / Makefile
1 #
2 # Copyright (C) 2007-2008 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:=mjpg-streamer
12 PKG_REV:=68
13 PKG_VERSION:=r$(PKG_REV)
14 PKG_RELEASE:=2
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_SOURCE_URL:=https://mjpg-streamer.svn.sourceforge.net/svnroot/mjpg-streamer/mjpg-streamer/
18 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19 PKG_SOURCE_VERSION:=$(PKG_REV)
20 PKG_SOURCE_PROTO:=svn
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/mjpg-streamer
25 SECTION:=multimedia
26 CATEGORY:=Multimedia
27 TITLE:=MJPG-streamer
28 DEPENDS:=@LINUX_2_6 +libpthread +libjpeg
29 URL:=http://www.naaa.de/uvc_streamer.htm
30 endef
31
32 define Package/mjpg-streamer/description
33 Streaming application for Linux-UVC compatible webcams
34 endef
35
36 EXTRA_CFLAGS += -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib
37
38 define Package/mjpg-streamer/install
39 $(INSTALL_DIR) $(1)/sbin
40 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mjpg_streamer $(1)/sbin
41 $(INSTALL_DIR) $(1)/usr/lib
42 $(CP) $(foreach input_plugin,uvc gspcav1,$(PKG_BUILD_DIR)/input_$(input_plugin).so) $(1)/usr/lib
43 $(CP) $(foreach output_plugin,http file autofocus,$(PKG_BUILD_DIR)/output_$(output_plugin).so) $(1)/usr/lib
44 $(INSTALL_DIR) $(1)/webcam_www
45 $(CP) $(PKG_BUILD_DIR)/www/* $(1)/webcam_www
46 endef
47
48 $(eval $(call BuildPackage,mjpg-streamer))