lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1364B)


      1 #
      2 # Copyright (C) 2008-2016 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:=motion
     11 PKG_VERSION=3.4.0-20141018-$(PKG_SOURCE_VERSION)
     12 PKG_RELEASE:=3
     13 
     14 PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
     15 PKG_LICENSE:=GPLv2
     16 PKG_LICENSE_FILES:=COPYING
     17 
     18 PKG_SOURCE_PROTO:=git
     19 PKG_SOURCE_URL:=https://github.com/Mr-Dave/motion.git
     20 PKG_SOURCE_VERSION:=9479d910f2149b5558788bb86f97f26522794212
     21 
     22 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
     23 PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
     24 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
     25 PKG_BUILD_PARALLEL:=1
     26 
     27 include $(INCLUDE_DIR)/package.mk
     28 
     29 define Package/motion
     30   SECTION:=multimedia
     31   CATEGORY:=Multimedia
     32   DEPENDS:=+libjpeg +libpthread
     33   TITLE:=webcam motion sensing and logging
     34   URL:=http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
     35 endef
     36 
     37 define Package/motion/conffiles
     38 /etc/motion.conf
     39 endef
     40 
     41 CONFIGURE_ARGS+= \
     42 	--without-optimizecpu \
     43 	--without-ffmpeg \
     44 	--without-jpeg-mmx \
     45 	--without-sdl \
     46 	--without-mysql \
     47 	--without-pgsql \
     48 	--without-sqlite3 \
     49 
     50 define Package/motion/install
     51 	$(INSTALL_DIR) $(1)/etc
     52 	$(CP) $(PKG_BUILD_DIR)/motion-dist.conf $(1)/etc/motion.conf
     53 	$(INSTALL_DIR) $(1)/usr/bin
     54 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/motion $(1)/usr/bin/
     55 
     56 endef
     57 
     58 $(eval $(call BuildPackage,motion))