From 33be13cf1d8dfc43074ec9b5c8c91ebe45403f39 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Sat, 5 Jul 2008 12:45:00 +0000 Subject: [PATCH] Upgrade motion to 3.2.10.1 (#3678) SVN-Revision: 11651 --- multimedia/motion/Makefile | 7 ++----- multimedia/motion/patches/001-ffmpeg.patch | 14 ++++++-------- multimedia/motion/patches/002-honor_cppflags.patch | 14 ++++++-------- 3 files changed, 14 insertions(+), 21 deletions(-) diff --git a/multimedia/motion/Makefile b/multimedia/motion/Makefile index eb45d1f2ff..4aef0826c9 100644 --- a/multimedia/motion/Makefile +++ b/multimedia/motion/Makefile @@ -9,16 +9,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=motion -PKG_VERSION:=3.2.9 +PKG_VERSION:=3.2.10.1 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.lavrsen.dk/sources/motion-daily \ @SF/motion -PKG_MD5SUM:=6003011b126c9b17e23e085e7fba6536 - -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) -PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install +PKG_MD5SUM:=5ffdc958313345c69d3e0d5ec5c013cd include $(INCLUDE_DIR)/package.mk diff --git a/multimedia/motion/patches/001-ffmpeg.patch b/multimedia/motion/patches/001-ffmpeg.patch index a56201e733..9c04e1396f 100644 --- a/multimedia/motion/patches/001-ffmpeg.patch +++ b/multimedia/motion/patches/001-ffmpeg.patch @@ -1,8 +1,6 @@ -Index: motion-3.2.9/motion.c -=================================================================== ---- motion-3.2.9.orig/motion.c -+++ motion-3.2.9/motion.c -@@ -1285,6 +1285,7 @@ static void *motion_loop(void *arg) +--- a/motion.c ++++ b/motion.c +@@ -1611,6 +1611,7 @@ * httpd-control snaps are always enabled. */ @@ -10,8 +8,8 @@ Index: motion-3.2.9/motion.c /* time_current_frame is used both for snapshot and timelapse features */ time_current_frame = cnt->currenttime; -@@ -1294,7 +1295,7 @@ static void *motion_loop(void *arg) - event(cnt, EVENT_IMAGE_SNAPSHOT, newimg, NULL, NULL, cnt->currenttime_tm); +@@ -1620,7 +1621,7 @@ + event(cnt, EVENT_IMAGE_SNAPSHOT, cnt->current_image->image, NULL, NULL, &cnt->current_image->timestamp_tm); cnt->snapshot = 0; } - @@ -19,7 +17,7 @@ Index: motion-3.2.9/motion.c /***** MOTION LOOP - TIMELAPSE FEATURE SECTION *****/ -@@ -1369,9 +1370,9 @@ static void *motion_loop(void *arg) +@@ -1695,9 +1696,9 @@ event(cnt, EVENT_TIMELAPSEEND, NULL, NULL, NULL, cnt->currenttime_tm); diff --git a/multimedia/motion/patches/002-honor_cppflags.patch b/multimedia/motion/patches/002-honor_cppflags.patch index cf6979eedf..81ae26a641 100644 --- a/multimedia/motion/patches/002-honor_cppflags.patch +++ b/multimedia/motion/patches/002-honor_cppflags.patch @@ -1,16 +1,14 @@ -Index: motion-3.2.9/Makefile.in -=================================================================== ---- motion-3.2.9.orig/Makefile.in -+++ motion-3.2.9/Makefile.in -@@ -33,6 +33,7 @@ examplesdir = $(docdir)/examples +--- a/Makefile.in ++++ b/Makefile.in +@@ -32,6 +32,7 @@ ################################################################################ - CFLAGS = @CFLAGS@ -Wall -DVERSION=\"$(VERSION)\" -D_REENTRANT \ - -Dsysconfdir=\"$(sysconfdir)\" + CFLAGS = @CFLAGS@ -Wall -DVERSION=\"@PACKAGE_VERSION@\" \ + -Dsysconfdir=\"$(sysconfdir)\" -Ddocdir=\"$(docdir)\" +CPPFLAGS = @CPPFLAGS@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ VIDEO_OBJ = @VIDEO@ -@@ -120,7 +121,7 @@ endif +@@ -119,7 +120,7 @@ ################################################################################ $(DEPEND_FILE): *.h $(SRC) @echo "Generating dependencies, please wait..." -- 2.30.2