[arch-commits] Commit in motion/trunk (PKGBUILD libjpeg-8.patch)

Andrea Scarpino andrea at archlinux.org
Tue Jan 19 15:20:23 EST 2010


    Date: Tuesday, January 19, 2010 @ 15:20:23
  Author: andrea
Revision: 64338

upgpkg: motion 3.2.11.1-3
    libjpeg 8 rebuild

Added:
  motion/trunk/libjpeg-8.patch
Modified:
  motion/trunk/PKGBUILD

-----------------+
 PKGBUILD        |   17 +++++++++++------
 libjpeg-8.patch |   29 +++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-01-19 20:18:20 UTC (rev 64337)
+++ PKGBUILD	2010-01-19 20:20:23 UTC (rev 64338)
@@ -1,22 +1,27 @@
 # $Id$
-# Maintainer: None
+# Maintainer:
 
 pkgname=motion
 pkgver=3.2.11.1
-pkgrel=2
-pkgdesc="A software motion detector. It grabs images from video4linux devices and/or from webcams."
+pkgrel=3
+pkgdesc="A software motion detector. It grabs images from video4linux devices and/or from webcams"
 arch=('i686' 'x86_64')
 license=('GPL')
 url="http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome"
-depends=('ffmpeg>=20100108')
+depends=('ffmpeg')
 options=('!makeflags')
 source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz
-	rc.motion)
+	'rc.motion'
+	'libjpeg-8.patch')
 md5sums=('4e729f129d8f9b9abaed5121c3cd0037'
-         'fc09828564850824f8549d258053e0b6')
+         'fc09828564850824f8549d258053e0b6'
+         '945a7da5e65156804d2446826d28dfbb')
 
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
+
+  patch -Np1 -i ${srcdir}/libjpeg-8.patch
+
   ./configure --prefix=/usr \
     --without-pgsql \
     --without-mysql \

Added: libjpeg-8.patch
===================================================================
--- libjpeg-8.patch	                        (rev 0)
+++ libjpeg-8.patch	2010-01-19 20:20:23 UTC (rev 64338)
@@ -0,0 +1,29 @@
+--- motion-3.2.11.1/picture.c~	2010-01-19 21:16:45.621459550 +0100
++++ motion-3.2.11.1/picture.c	2010-01-19 21:17:56.818117906 +0100
+@@ -52,7 +52,7 @@
+     dest->jpegsize = dest->bufsize - dest->pub.free_in_buffer;
+ }
+ 
+-static GLOBAL(void) jpeg_mem_dest(j_compress_ptr cinfo, JOCTET* buf, size_t bufsize)
++static GLOBAL(void) _jpeg_mem_dest(j_compress_ptr cinfo, JOCTET* buf, size_t bufsize)
+ {
+     mem_dest_ptr dest;
+ 
+@@ -131,7 +131,7 @@
+     jpeg_set_quality(&cinfo, quality, TRUE);
+     cinfo.dct_method = JDCT_FASTEST;
+ 
+-    jpeg_mem_dest(&cinfo, dest_image, image_size);    // data written to mem
++    _jpeg_mem_dest(&cinfo, dest_image, image_size);    // data written to mem
+     
+     jpeg_start_compress (&cinfo, TRUE);
+ 
+@@ -182,7 +182,7 @@
+ 
+     jpeg_set_quality(&cjpeg, quality, TRUE);
+     cjpeg.dct_method = JDCT_FASTEST;
+-    jpeg_mem_dest(&cjpeg, dest_image, image_size);  // data written to mem
++    _jpeg_mem_dest(&cjpeg, dest_image, image_size);  // data written to mem
+ 
+     jpeg_start_compress (&cjpeg, TRUE);
+ 



More information about the arch-commits mailing list