wok-next diff libgphoto2/receipt @ rev 21087

Updates...
Revert names: libsdl -> sdl, libsmpeg -> smpeg, libtdb -> tdb
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Dec 28 05:11:49 2018 +0200 (2018-12-28)
parents d5aab818505e
children 994f7b97ebea
line diff
     1.1 --- a/libgphoto2/receipt	Fri Nov 02 14:15:08 2018 +0200
     1.2 +++ b/libgphoto2/receipt	Fri Dec 28 05:11:49 2018 +0200
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6  PACKAGE="libgphoto2"
     1.7 -VERSION="2.5.19"
     1.8 +VERSION="2.5.21"
     1.9  CATEGORY="graphics"
    1.10  SHORT_DESC="Core library of gphoto2 to access photos from digital camera"
    1.11  MAINTAINER="devel@slitaz.org"
    1.12 @@ -9,14 +9,22 @@
    1.13  WEB_SITE="http://www.gphoto.org/"
    1.14  REPOLOGY="gphoto2"
    1.15  
    1.16 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.17 -WGET_URL="$SF_MIRROR/gphoto/$TARBALL"
    1.18 +TARBALL="$PACKAGE-${VERSION//./_}-release.tar.gz"
    1.19 +WGET_URL="https://github.com/gphoto/libgphoto2/archive/$TARBALL"
    1.20 +TARBALL_SHA1="574948a2ef9e45f25b72bd324de0870fb649dd1c"
    1.21  
    1.22 -BUILD_DEPENDS="libtool gettext-dev libjpeg-turbo-dev libexif-dev libusb-dev \
    1.23 -libxml2-dev libgd-dev" # use of libusb-compat-dev disabled while libusb found
    1.24 +BUILD_DEPENDS="automake libtool gettext-dev libjpeg-turbo-dev libexif-dev \
    1.25 +libusb-dev libxml2-dev libgd-dev" # use of libusb-compat-dev disabled while libusb found
    1.26  SPLIT="$PACKAGE-dev"
    1.27  
    1.28 +DEPENDS_std="libexif libgd libjpeg-turbo libltdl libusb libxml2   eudev"
    1.29 +DEPENDS_dev="libgphoto2 libexif-dev"
    1.30 +
    1.31 +TAGS_std="camera photo"
    1.32 +
    1.33  compile_rules() {
    1.34 +	autoreconf --install --symlink
    1.35 +
    1.36  	./configure \
    1.37  		udevscriptdir=/lib/udev \
    1.38  		--with-exif \
    1.39 @@ -29,16 +37,14 @@
    1.40  	# Remove recursive symlink
    1.41  	rm $install/usr/include/gphoto2/gphoto2
    1.42  
    1.43 -	# fix line:
    1.44 -	# driverdir=$(libdir)/$(PACKAGE_TARNAME)/$(VERSION)
    1.45 -	sed -i 's|^driverdir=.*|driverdir=${libdir}/libgphoto2_port/${VERSION}|' \
    1.46 -		$install/usr/lib/pkgconfig/libgphoto2_port.pc
    1.47 -
    1.48 +	echo "Making 20-gphoto.hwdb..."
    1.49  	mkdir -p $install/lib/udev/rules.d/
    1.50  	export LD_LIBRARY_PATH="$install/usr/lib${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
    1.51  	export CAMLIBS="$install/usr/lib/libgphoto2/$VERSION"
    1.52  	$install/usr/lib/libgphoto2/print-camera-list hwdb \
    1.53  		| install -Dm644 /dev/stdin $install/lib/udev/hwdb.d/20-gphoto.hwdb
    1.54 +
    1.55 +	echo "Making 40-gphoto.rules..."
    1.56  	# version <num> is UDEV version, one of: "pre-0.98", "0.98", "136", "175", "201"
    1.57  	# See #src/packaging/generic/print-camera-list.c.
    1.58  	# We use eudev, so maybe udev version here should be changed.
    1.59 @@ -46,20 +52,6 @@
    1.60  		| install -Dm644 /dev/stdin $install/lib/udev/rules.d/40-gphoto.rules
    1.61  }
    1.62  
    1.63 -genpkg_rules() {
    1.64 -	case $PACKAGE in
    1.65 -		libgphoto2)
    1.66 -			copy @std
    1.67 -			DEPENDS="libexif libgd libjpeg-turbo libltdl libusb libxml2   eudev"
    1.68 -			TAGS="camera photo"
    1.69 -			;;
    1.70 -		libgphoto2-dev)
    1.71 -			copy @dev
    1.72 -			DEPENDS="libgphoto2 libexif-dev"
    1.73 -			;;
    1.74 -	esac
    1.75 -}
    1.76 -
    1.77  post_install_libgphoto2() {
    1.78  	# add group camera
    1.79  	grep -q camera "$1/etc/group" || chroot "$1/" addgroup -g 97 -S camera