tweak tor Makefile and remove unneeded intrusive patch
[openwrt/svn-archive/archive.git] / multimedia / motion / 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:=motion
12 PKG_VERSION:=3.2.6
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/motion
17 PKG_MD5SUM:=71e6bd13fcca70372e9b7c7806d62b30
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/motion
26 SECTION:=multimedia
27 CATEGORY:=Multimedia
28 DEPENDS:=+libjpeg
29 TITLE:=webcam motion sensing and logging
30 URL:=http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
31 endef
32
33 define Package/motion/conffiles
34 /etc/motion.conf
35 endef
36
37 define Build/Configure
38 $(call Build/Configure/Default, \
39 --without-ffmpeg \
40 --without-jpeg-mmx \
41 --without-mysql \
42 --without-pgsql \
43 )
44 endef
45
46 define Build/Compile
47 $(MAKE) -C $(PKG_BUILD_DIR) \
48 DESTDIR="$(PKG_INSTALL_DIR)" \
49 all install
50 endef
51
52 define Package/motion/install
53 $(INSTALL_DIR) $(1)/etc
54 $(CP) $(PKG_INSTALL_DIR)/etc/motion-dist.conf $(1)/etc/motion.conf
55 $(INSTALL_DIR) $(1)/usr/bin
56 $(CP) $(PKG_INSTALL_DIR)/usr/bin/motion $(1)/usr/bin/
57
58 endef
59
60 $(eval $(call BuildPackage,motion))