[packages] massive change: replace occurences of -I$(STAGING_DIR)/{include,usr/includ...
[openwrt/svn-archive/archive.git] / multimedia / mjpg-streamer / Makefile
1 #
2 # Copyright (C) 2007-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=mjpg-streamer
11 PKG_REV:=74
12 PKG_VERSION:=r$(PKG_REV)
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=https://mjpg-streamer.svn.sourceforge.net/svnroot/mjpg-streamer/mjpg-streamer/
17 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
18 PKG_SOURCE_VERSION:=$(PKG_REV)
19 PKG_SOURCE_PROTO:=svn
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/mjpg-streamer
24 SECTION:=multimedia
25 CATEGORY:=Multimedia
26 TITLE:=MJPG-streamer
27 DEPENDS:=@LINUX_2_6 +libpthread +libjpeg
28 URL:=http://www.naaa.de/uvc_streamer.htm
29 endef
30
31 define Package/mjpg-streamer/description
32 Streaming application for Linux-UVC compatible webcams
33 endef
34
35 EXTRA_CFLAGS += $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS)
36
37 define Package/mjpg-streamer/install
38 $(INSTALL_DIR) $(1)/sbin
39 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mjpg_streamer $(1)/sbin
40 $(INSTALL_DIR) $(1)/usr/lib
41 $(CP) $(foreach input_plugin,file uvc gspcav1,$(PKG_BUILD_DIR)/input_$(input_plugin).so) $(1)/usr/lib
42 $(CP) $(foreach output_plugin,http file autofocus,$(PKG_BUILD_DIR)/output_$(output_plugin).so) $(1)/usr/lib
43 $(INSTALL_DIR) $(1)/webcam_www
44 $(CP) $(PKG_BUILD_DIR)/www/* $(1)/webcam_www
45 endef
46
47 $(eval $(call BuildPackage,mjpg-streamer))