# HG changeset patch # User Christopher Rogers # Date 1318750944 0 # Node ID 6bfee44096f0a3a59c8ead97dfe1e691f155acee # Parent 2b66f7a527f58958e18c872fbb59e78e4be456d1 Up: amsn to 0.98.4. diff -r 2b66f7a527f5 -r 6bfee44096f0 amsn/receipt --- a/amsn/receipt Sun Oct 16 07:40:38 2011 +0000 +++ b/amsn/receipt Sun Oct 16 07:42:24 2011 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="amsn" -VERSION="0.98.3" +VERSION="0.98.4" CATEGORY="network" SHORT_DESC="Alvaro's Messenger" MAINTAINER="erjo@slitaz.org" @@ -10,19 +10,18 @@ BUILD_DEPENDS="tcl-dev tk-dev xorg-libXss-dev libv4l-dev libv4l" TARBALL="$PACKAGE-$VERSION-src.tar.gz" WEB_SITE="http://amsn-project.net/" -WGET_URL="http://freefr.dl.sourceforge.net/sourceforge/amsn/$TARBALL - http://switch.dl.sourceforge.net/sourceforge/amsn/$TARBALL" +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" TAGS="chat messenger im" - # Rules to configure and make the package. compile_rules() { cd $src + patch -Np0 -i $stuff/$PACKAGE-v4l2.patch ./configure --prefix=/usr \ --with-tcl=/usr/lib $CONFIGURE_ARGS && \ - make -j4 && \ - make DESTDIR=$PWD/_pkg install + make && \ + make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. diff -r 2b66f7a527f5 -r 6bfee44096f0 amsn/stuff/amsn-v4l2.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/amsn/stuff/amsn-v4l2.patch Sun Oct 16 07:42:24 2011 +0000 @@ -0,0 +1,33 @@ +Add support for v4l2 on Linux so it can compile against modern +kernel headers. #363201 + +Patch by Kevin McCarthy + +--- configure.ac ++++ configure.ac +@@ -382,6 +382,10 @@ + AC_CHECK_HEADERS(sys/videodev2.h,FOUND_OS=solaris,FOUND_OS=linux) + fi + ++if test "$FOUND_OS" = "linux"; then ++ AC_CHECK_HEADERS(linux/videodev2.h) ++fi ++ + #--------------------------------------------------------------------------------------------- + + dnl --------------------------------------------------------------------- +--- utils/linux/capture/capture.h ++++ utils/linux/capture/capture.h +@@ -33,7 +33,11 @@ + #ifdef HAVE_SYS_VIDEODEV2_H + # include + #else +-# include ++ #ifdef HAVE_LINUX_VIDEODEV2_H ++ #include ++ #else ++ #include ++ #endif + #endif + + #include "grab-ng.h"