mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 16:13:50 +02:00
libgphoto2: update to 2.5.11
udev rule building is now 201.
This commit is contained in:
parent
7db81495ac
commit
b61a33ce36
2 changed files with 16 additions and 29 deletions
|
@ -1,22 +0,0 @@
|
||||||
--- camlibs/ax203/jpeg_memsrcdest.h 2015-08-08 17:57:29.000000000 +0200
|
|
||||||
+++ camlibs/ax203/jpeg_memsrcdest.h 2016-06-16 10:41:12.793951660 +0200
|
|
||||||
@@ -1,7 +1,7 @@
|
|
||||||
#include <jpeglib.h>
|
|
||||||
|
|
||||||
void
|
|
||||||
-jpeg_mem_src (j_decompress_ptr cinfo, unsigned char * buffer,
|
|
||||||
+jpeg_mem_src (j_decompress_ptr cinfo, const unsigned char * buffer,
|
|
||||||
unsigned long bufsize);
|
|
||||||
|
|
||||||
void
|
|
||||||
--- camlibs/jl2005c/jpeg_memsrcdest.h 2015-08-08 17:57:29.000000000 +0200
|
|
||||||
+++ camlibs/jl2005c/jpeg_memsrcdest.h 2016-06-16 10:41:12.793951660 +0200
|
|
||||||
@@ -1,7 +1,7 @@
|
|
||||||
#include <jpeglib.h>
|
|
||||||
|
|
||||||
void
|
|
||||||
-jpeg_mem_src (j_decompress_ptr cinfo, unsigned char * buffer,
|
|
||||||
+jpeg_mem_src (j_decompress_ptr cinfo, const unsigned char * buffer,
|
|
||||||
unsigned long bufsize);
|
|
||||||
|
|
||||||
void
|
|
|
@ -1,18 +1,19 @@
|
||||||
# Template file for 'libgphoto2'
|
# Template file for 'libgphoto2'
|
||||||
pkgname=libgphoto2
|
pkgname=libgphoto2
|
||||||
version=2.5.10
|
version=2.5.11
|
||||||
revision=2
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-static --disable-rpath udevscriptdir=/usr/lib/udev"
|
configure_args="--disable-static --disable-rpath udevscriptdir=/usr/lib/udev"
|
||||||
hostmakedepends="automake libtool pkg-config gettext-devel"
|
hostmakedepends="automake libtool pkg-config gettext-devel"
|
||||||
makedepends="libltdl-devel libusb-compat-devel libjpeg-turbo-devel gd-devel libexif-devel"
|
makedepends="libltdl-devel libusb-compat-devel libjpeg-turbo-devel gd-devel
|
||||||
|
libexif-devel libxml2-devel"
|
||||||
depends="${pkgname}-udev-rules-${version}_${revision}"
|
depends="${pkgname}-udev-rules-${version}_${revision}"
|
||||||
short_desc="Digital camera access library"
|
short_desc="Digital camera access library"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
license="GPL-2"
|
license="GPL-2"
|
||||||
homepage="http://www.gphoto.org"
|
homepage="http://www.gphoto.org"
|
||||||
distfiles="${SOURCEFORGE_SITE}/gphoto/$pkgname-$version.tar.bz2"
|
distfiles="${SOURCEFORGE_SITE}/gphoto/$pkgname-$version.tar.bz2"
|
||||||
checksum=8d8668d432ba595c7466442aec2cf553bdf8782ec171291dbc65717c633a4ef2
|
checksum=7fb61486d6c153fbbadc57b8bada8528abd289f46175bfaab09350f33f38e0aa
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
hostmakedepends+=" libgphoto2"
|
hostmakedepends+=" libgphoto2"
|
||||||
|
@ -29,15 +30,22 @@ post_install() {
|
||||||
# Remove recursive symlink
|
# Remove recursive symlink
|
||||||
rm -f ${DESTDIR}/usr/include/gphoto2/gphoto2
|
rm -f ${DESTDIR}/usr/include/gphoto2/gphoto2
|
||||||
|
|
||||||
|
vmkdir usr/lib/udev/hwdb.d
|
||||||
vmkdir usr/lib/udev/rules.d
|
vmkdir usr/lib/udev/rules.d
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
if [ -z "$CROSS_BUILD" ]; then
|
||||||
LD_LIBRARY_PATH="${DESTDIR}/usr/lib${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" \
|
LD_LIBRARY_PATH="${DESTDIR}/usr/lib${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" \
|
||||||
CAMLIBS="${DESTDIR}/usr/lib/libgphoto2/${version}" \
|
CAMLIBS="${DESTDIR}/usr/lib/libgphoto2/${version}" \
|
||||||
${DESTDIR}/usr/lib/libgphoto2/print-camera-list udev-rules version 136 > \
|
${DESTDIR}/usr/lib/libgphoto2/print-camera-list udev-rules version 201 > \
|
||||||
${DESTDIR}/usr/lib/udev/rules.d/40-gphoto.rules
|
${DESTDIR}/usr/lib/udev/rules.d/40-gphoto.rules
|
||||||
|
LD_LIBRARY_PATH="${DESTDIR}/usr/lib${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" \
|
||||||
|
CAMLIBS="${DESTDIR}/usr/lib/libgphoto2/${version}" \
|
||||||
|
${DESTDIR}/usr/lib/libgphoto2/print-camera-list hwdb > \
|
||||||
|
${DESTDIR}/usr/lib/udev/hwdb.d/20-gphoto.hwdb
|
||||||
else
|
else
|
||||||
/usr/lib/libgphoto2/print-camera-list udev-rules version 136 > \
|
/usr/lib/libgphoto2/print-camera-list udev-rules version 201 > \
|
||||||
${DESTDIR}/usr/lib/udev/rules.d/40-gphoto.rules
|
${DESTDIR}/usr/lib/udev/rules.d/40-gphoto.rules
|
||||||
|
/usr/lib/libgphoto2/print-camera-list hwdb > \
|
||||||
|
${DESTDIR}/usr/lib/udev/hwdb.d/20-gphoto.hwdb
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,11 +53,12 @@ libgphoto2-udev-rules_package() {
|
||||||
short_desc+=" - udev rules"
|
short_desc+=" - udev rules"
|
||||||
noarch=yes
|
noarch=yes
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
|
vmove usr/lib/udev/hwdb.d
|
||||||
vmove usr/lib/udev/rules.d
|
vmove usr/lib/udev/rules.d
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
libgphoto2-devel_package() {
|
libgphoto2-devel_package() {
|
||||||
depends="libexif-devel libusb-compat-devel libgphoto2>=${version}_${revision}"
|
depends="libexif-devel libusb-compat-devel ${sourcepkg}>=${version}_${revision}"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin
|
vmove usr/bin
|
||||||
|
|
Loading…
Add table
Reference in a new issue