wok rev 16469

Up and add to ARM: libgd fswebcam
author Christophe Lincoln <pankso@slitaz.org>
date Tue Apr 22 03:43:21 2014 +0200 (2014-04-22)
parents 94128ce5fcfd
children c9e627fb5d1e
files fswebcam/receipt libgd-dev/receipt libgd/receipt
line diff
     1.1 --- a/fswebcam/receipt	Tue Apr 22 02:08:38 2014 +0200
     1.2 +++ b/fswebcam/receipt	Tue Apr 22 03:43:21 2014 +0200
     1.3 @@ -1,35 +1,27 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="fswebcam"
     1.7 -VERSION="20070108"
     1.8 +VERSION="20140113"
     1.9  CATEGORY="misc"
    1.10  MAINTAINER="jozee@slitaz.org"
    1.11  LICENSE="GPL2"
    1.12  SHORT_DESC="Tiny and flexible webcam app"
    1.13  WEB_SITE="http://www.firestorm.cx/fswebcam/"
    1.14  CONFIG_FILES="etc/fswebcam.conf"
    1.15 -TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.16 +TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.17  WGET_URL="$WEB_SITE/files/$TARBALL"
    1.18  TAGS="webcam"
    1.19 +HOST_ARCH="i486 arm"
    1.20  
    1.21  DEPENDS="libgd"
    1.22 -BUILD_DEPENDS="$DEPENDS libgd-dev"
    1.23 +BUILD_DEPENDS="libgd-dev"
    1.24  
    1.25  # Rules to configure and make the package.
    1.26 -
    1.27 -compile_rules() {
    1.28 -  cd $src
    1.29 -   while read file; do
    1.30 -    	[ -f done.$file ] && continue
    1.31 -    	echo "Apply $file..."
    1.32 -    	patch -p1 < $stuff/$PACKAGE-$VERSION-$file || return 1
    1.33 -	touch done.$file
    1.34 -    done <<EOT
    1.35 -gzip.patch
    1.36 -EOT
    1.37 -  ./configure --prefix=/usr &&
    1.38 -  make &&
    1.39 -  make DESTDIR=$DESTDIR install 
    1.40 +compile_rules()
    1.41 +{
    1.42 +	./configure \
    1.43 +		--prefix=/usr $CONFIGURE_ARGS &&
    1.44 +	make && make install 
    1.45  }
    1.46  	
    1.47  # Rules to gen a SliTaz package suitable for Tazpkg.
     2.1 --- a/libgd-dev/receipt	Tue Apr 22 02:08:38 2014 +0200
     2.2 +++ b/libgd-dev/receipt	Tue Apr 22 03:43:21 2014 +0200
     2.3 @@ -8,12 +8,14 @@
     2.4  LICENSE="BSD"
     2.5  WANTED="libgd"
     2.6  WEB_SITE="http://www.libgd.org/"
     2.7 +HOST_ARCH="i486 arm"
     2.8  
     2.9  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.10  genpkg_rules()
    2.11  {
    2.12 -	mkdir -p $fs/usr/lib
    2.13 +	mkdir -p $fs/usr/lib $fs/usr/bin
    2.14  	cp -a $install/usr/local/include $fs/usr
    2.15  	cp -a $install/usr/local/lib/*a $fs/usr/lib
    2.16 +	cp -a $install/usr/local/bin/gdlib-config $fs/usr/bin
    2.17  }
    2.18  
     3.1 --- a/libgd/receipt	Tue Apr 22 02:08:38 2014 +0200
     3.2 +++ b/libgd/receipt	Tue Apr 22 03:43:21 2014 +0200
     3.3 @@ -1,31 +1,39 @@
     3.4  # SliTaz package receipt.
     3.5  
     3.6  PACKAGE="libgd"
     3.7 -VERSION="2.0.35"
     3.8 +VERSION="2.1.0"
     3.9  CATEGORY="graphics"
    3.10  SHORT_DESC="Library for the dynamic creation of images."
    3.11  MAINTAINER="pascal.bellard@slitaz.org"
    3.12  LICENSE="BSD"
    3.13 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
    3.14 +TARBALL="$PACKAGE-$VERSION.tar.xz"
    3.15  WEB_SITE="http://www.libgd.org/"
    3.16 -WGET_URL="hg|https://bitbucket.org/pierrejoye/gd-libgd"
    3.17 +WGET_URL="https://bitbucket.org/libgd/gd-libgd/downloads/$TARBALL"
    3.18 +HOST_ARCH="i486 arm"
    3.19  
    3.20  DEPENDS="zlib libpng jpeg freetype expat fontconfig xorg-libX11 \
    3.21  xorg-libXau xorg-libXdmcp xorg-libXpm"
    3.22 -BUILD_DEPENDS="libpng-dev jpeg-dev expat-dev freetype-dev cmake \
    3.23 +BUILD_DEPENDS="libpng-dev jpeg-dev expat-dev freetype-dev  \
    3.24  xorg-libXau-dev xorg-libXdmcp-dev xorg-libXpm-dev automake libtool"
    3.25  
    3.26 +# Cross compilation use some build host tools
    3.27 +case "$ARCH" in
    3.28 +	i?86) 
    3.29 +		BUILD_DEPENDS="$BUILD_DEPENDS cmake wget" ;;
    3.30 +	arm) 
    3.31 +		jpeg="/cross/$ARCH/sysroot/usr/lib" ;;
    3.32 +esac
    3.33 +
    3.34  # Rules to configure and make the package.
    3.35  compile_rules()
    3.36  {
    3.37 -	cd $src
    3.38  	export LDFLAGS="-Wl,--copy-dt-needed-entries -lm"
    3.39  	cmake . && make && make DESTDIR=$DESTDIR install || return 1
    3.40 -	cd src
    3.41 -	ln -sf ../config ../test .
    3.42 +	
    3.43  	./bootstrap.sh
    3.44 -	./configure --prefix=/usr --infodir=/usr/share/info \
    3.45 -		--mandir=/usr/share/man \
    3.46 +	./configure \
    3.47 +		--prefix=/usr \
    3.48 +		--with-jpeg=${jpeg} \
    3.49  		$CONFIGURE_ARGS
    3.50  	make -C config gdlib-config
    3.51  	cp config/gdlib-config $DESTDIR/usr/local/bin
    3.52 @@ -38,6 +46,6 @@
    3.53  {
    3.54  	mkdir -p $fs/usr/lib
    3.55  	cp -a $install/usr/local/bin $fs/usr
    3.56 -	chmod +x $fs/usr/bin/gdlib-config
    3.57 +	rm -f $fs/usr/bin/gdlib-config
    3.58  	cp -a $install/usr/local/lib/*.so* $fs/usr/lib
    3.59  }