Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=libpng.git;a=commitdiff;h=468bfa8e787a71f2a9723c2a5e4748c42cb96823

commit 468bfa8e787a71f2a9723c2a5e4748c42cb96823
Author: Baste <[email protected]>
Date:   Thu Jan 17 16:11:30 2013 +0100

mjpegtools-2.0.0-1-x86_64
* Version bump

diff --git a/source/xapps/mjpegtools/FrugalBuild 
b/source/xapps/mjpegtools/FrugalBuild
index 6577139..0b5c24c 100644
--- a/source/xapps/mjpegtools/FrugalBuild
+++ b/source/xapps/mjpegtools/FrugalBuild
@@ -2,37 +2,39 @@
# Maintainer: Christian Hamar alias krix <[email protected]>

pkgname=mjpegtools
-pkgver=1.9.0
-pkgrel=6
+pkgver=2.0.0
+pkgrel=1
pkgdesc="The mjpeg programs are a set of tools that can do recording of videos 
and playback under Linux."
_F_sourceforge_dirname="mjpeg"
Finclude sourceforge
url="http://mjpeg.sourceforge.net/";
-depends=('libxml2>=2.7.8' 'libjpeg>=8a' 'libpng>=1.4.1' 'sdl_gfx>=2.0.24' 
'libquicktime>=1.1.5-4' 'libxxf86dga>=1.0.2-2')
+depends=('libxml2>=2.7.8' 'libjpeg-turbo' 'libpng>=1.5.13' 'sdl_gfx>=2.0.24' \
+       'libquicktime>=1.1.5-4' 'libxxf86dga>=1.0.2-2')
groups=('xapps')
options=('scriptlet')
archs=('i686' 'x86_64')
#up2date="lynx -dump 
http://sourceforge.net/project/showfiles.php?group_id=5776|grep -m1 
'mjpegtools-\(.*\).tar.gz'|sed 's/.*-\(.*\).t.*/\1/'"
-source=($source no-archflags.patch Fix_gcc44.diff no-v4l.diff)
-sha1sums=('1701233354c7ea86b5b7808c4dd5d03a71118e48' \
-          '7ae8bdb1669b05042f5c2065550c24c0705e0734' \
-          '4783235781f78a99c6c88a2e9b3fdc67eee36f1e' \
-          '7b61827c50f4b3bc590711810037d6d82a8b1125')
+source=($source v4l-2.6.38.patch y4mdenoise.patch)
+#source=($source no-archflags.patch)
+sha1sums=('f411e8573d446711dbe8455a6ae9257e1afe1e70' \
+          '43966cc5bd56186d20205a795150ec5749c518e0' \
+          'c21d425c2972c3fe02916aa353d0c8108bd868cd')

build()
{
Fcd
Fpatchall
-       Fautoreconf
-       if [ "$CARCH" == "x86_64" ]; then
-               export CFLAGS="$CFLAGS -fPIC"
-               confopts="--with-pic"
-       fi
-       Fconf --with-dv-yv12 --enable-largefile $confopts
-       for i in `find . -name Makefile`
-        do
-                Fsed "-O3" "" $i
-        done
+       sed -i -e '/ARCHFLAGS=/s:=.*:=:' configure
+#      Fautoreconf
+       #if [ "$CARCH" == "x86_64" ]; then
+       #       export CFLAGS="$CFLAGS -fPIC"
+       #       confopts="--with-pic"
+       #fi
+       Fconf --enable-largefile $confopts
+       #for i in `find . -name Makefile`
+        #do
+        #        Fsed "-O3" "" $i
+        #done
make || return 1
Fmakeinstall
}
diff --git a/source/xapps/mjpegtools/v4l-2.6.38.patch 
b/source/xapps/mjpegtools/v4l-2.6.38.patch
new file mode 100644
index 0000000..c147ab2
--- /dev/null
+++ b/source/xapps/mjpegtools/v4l-2.6.38.patch
@@ -0,0 +1,101 @@
+Index: lavtools/lavvideo.c
+===================================================================
+--- lavtools/lavvideo.c.orig
++++ lavtools/lavvideo.c
+@@ -63,7 +63,7 @@ Copyright by Gernot Ziegler.
+  * errors here, check your linux/time.h && sys/time.h header setup.
+  */
+ #define _LINUX_TIME_H
+-#include <linux/videodev.h>
++#include <libv4l1-videodev.h>
+
+ #include <videodev_mjpeg.h>
+ #include <frequencies.h>
+Index: lavtools/liblavplay.c
+===================================================================
+--- lavtools/liblavplay.c.orig
++++ lavtools/liblavplay.c
+@@ -68,7 +68,8 @@
+  * errors here, check your linux/time.h && sys/time.h header setup.
+  */
+ #define _LINUX_TIME_H
+-#include <linux/videodev.h>
++#include <libv4l1-videodev.h>
++#define BASE_VIDIOCPRIVATE  192     /* 192-255 are private */
+ #else
+ #define VIDEO_MODE_PAL                0
+ #define VIDEO_MODE_NTSC               1
+Index: lavtools/liblavrec.c
+===================================================================
+--- lavtools/liblavrec.c.orig
++++ lavtools/liblavrec.c
+@@ -63,7 +63,8 @@
+  * errors here, check your linux/time.h && sys/time.h header setup.
+  */
+ #define _LINUX_TIME_H
+-#include <linux/videodev.h>
++#include <libv4l1-videodev.h>
++#define BASE_VIDIOCPRIVATE  192     /* 192-255 are private */
+ #ifdef HAVE_SYS_SOUNDCARD_H
+ #include <sys/soundcard.h>
+ #endif
+Index: lavtools/testrec.c
+===================================================================
+--- lavtools/testrec.c.orig
++++ lavtools/testrec.c
+@@ -89,7 +89,7 @@
+  * errors here, check your linux/time.h && sys/time.h header setup.
+  */
+ #define _LINUX_TIME_H
+-#include <linux/videodev.h>
++#include <libv4l1-videodev.h>
+ #include <linux/soundcard.h>
+
+ /* These are explicit prototypes for the compiler, to prepare separation of 
audiolib.c */
+Index: configure.ac
+===================================================================
+--- configure.ac.orig
++++ configure.ac
+@@ -164,7 +164,7 @@ AC_ARG_WITH([v4l], AC_HELP_STRING([--wit
+ AS_IF([test "x$with_v4l" != "xno"], [
+ case $host in
+   *-*-linux*)
+-  AC_CHECK_HEADER(linux/videodev.h,
++  AC_CHECK_HEADER(libv4l1-videodev.h,
+                   [have_video4linux=true
+                    AC_DEFINE(HAVE_V4L, 1,
+                            [Building for Linux - using the video4linux 
API])], [])
+@@ -173,7 +173,7 @@ esac])
+
+ AS_IF([test "x$have_video4linux" != "xtrue" && test "x$with_v4l" != "xno"],
+         [have_video4linux=false
+-       AC_MSG_WARN([videodev.h not found - please install the linux kernel 
headers programms needing v4l disabled])])
++       AC_MSG_WARN([libv4l1-videodev.h not found - please install the linux 
kernel headers programms needing v4l disabled])])
+ AM_CONDITIONAL(HAVE_V4L, test x$have_video4linux = xtrue)
+
+ dnl *********************************************************************
+Index: configure
+===================================================================
+--- configure.orig
++++ configure
+@@ -16392,7 +16392,7 @@ if test "x$with_v4l" != "xno"; then :
+
+ case $host in
+   *-*-linux*)
+-  ac_fn_c_check_header_mongrel "$LINENO" "linux/videodev.h" 
"ac_cv_header_linux_videodev_h" "$ac_includes_default"
++  ac_fn_c_check_header_mongrel "$LINENO" "libv4l1-videodev.h" 
"ac_cv_header_linux_videodev_h" "$ac_includes_default"
+ if test "x$ac_cv_header_linux_videodev_h" = xyes; then :
+   have_video4linux=true
+
+@@ -16407,8 +16407,8 @@ fi
+
+ if test "x$have_video4linux" != "xtrue" && test "x$with_v4l" != "xno"; then :
+   have_video4linux=false
+-       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: videodev.h not found 
- please install the linux kernel headers programms needing v4l disabled" >&5
+-$as_echo "$as_me: WARNING: videodev.h not found - please install the linux 
kernel headers programms needing v4l disabled" >&2;}
++       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libv4l1-videodev.h 
not found - please install the linux kernel headers programms needing v4l 
disabled" >&5
++$as_echo "$as_me: WARNING: libv4l1-videodev.h not found - please install the 
linux kernel headers programms needing v4l disabled" >&2;}
+ fi
+  if test x$have_video4linux = xtrue; then
+   HAVE_V4L_TRUE=
+
diff --git a/source/xapps/mjpegtools/y4mdenoise.patch 
b/source/xapps/mjpegtools/y4mdenoise.patch
new file mode 100644
index 0000000..b522c9e
--- /dev/null
+++ b/source/xapps/mjpegtools/y4mdenoise.patch
@@ -0,0 +1,12 @@
+--- y4mdenoise/MotionSearcher.hh.orig  2010-07-26 05:06:56.000000000 +0900
++++ y4mdenoise/MotionSearcher.hh       2012-06-12 19:23:18.000000000 +0900
+@@ -2196,7 +2196,7 @@
+       {
+               // This region is too small to be bothered with.
+               // Just get rid of it.
+-              DeleteRegion (a_pRegion);
++              this->DeleteRegion (a_pRegion);
+       }
+       else
+       {
+
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to