2010-04-14 13:43:21 +02:00
|
|
|
# Template file for 'libgphoto2'
|
|
|
|
pkgname=libgphoto2
|
2010-10-29 17:14:02 +02:00
|
|
|
version=2.4.10.1
|
2010-04-14 13:43:21 +02:00
|
|
|
distfiles="${SOURCEFORGE_SITE}/gphoto/$pkgname-$version.tar.bz2"
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2011-10-16 19:46:38 +02:00
|
|
|
configure_args="--disable-rpath udevscriptdir=/lib/udev"
|
2011-11-14 18:12:47 +01:00
|
|
|
revision=2
|
2010-04-14 13:43:21 +02:00
|
|
|
short_desc="Digital camera access library"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2010-10-29 17:14:02 +02:00
|
|
|
checksum=980ec6ab6f92bfe72bf955f6e00408b2d5042acbda591903be3795a9184ca98a
|
2010-04-14 13:43:21 +02:00
|
|
|
long_desc="
|
|
|
|
libgphoto2 is the core library designed to allow access to digital
|
|
|
|
camera by external programs. Here is an overview of the global
|
|
|
|
architecture:
|
|
|
|
|
|
|
|
It abstracts communication ports and camera protocol, to allow a
|
|
|
|
complete modularity. To support a new communication physical layer
|
|
|
|
(like IEEE1394), just add a new port to libgphoto2_port. To support
|
|
|
|
a new kind a digital camera, just provide a new camlib with the
|
|
|
|
required callbacks. All of this will be transparent to client
|
|
|
|
programs that call libgphoto2."
|
|
|
|
|
|
|
|
subpackages="$pkgname-devel"
|
|
|
|
|
|
|
|
|
|
|
|
Add_dependency build pkg-config
|
|
|
|
Add_dependency build libltdl-devel
|
|
|
|
Add_dependency build libusb-compat-devel
|
|
|
|
Add_dependency build jpeg-devel
|
|
|
|
Add_dependency build gd-devel
|
|
|
|
Add_dependency build libexif-devel
|
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
|
|
|
install -d ${DESTDIR}/lib/udev/rules.d
|
|
|
|
|
|
|
|
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" \
|
|
|
|
udev-rules version 136 group plugdev mode 0660 > \
|
|
|
|
"${DESTDIR}/lib/udev/rules.d/54-gphoto.rules" || return 1
|
|
|
|
}
|