2010-04-14 11:43:21 +00:00
|
|
|
# Template file for 'libgphoto2'
|
|
|
|
pkgname=libgphoto2
|
2012-04-16 14:39:10 +00:00
|
|
|
version=2.4.14
|
2012-03-09 00:13:02 +00:00
|
|
|
homepage="http://www.gphoto.org"
|
2010-04-14 11:43:21 +00:00
|
|
|
distfiles="${SOURCEFORGE_SITE}/gphoto/$pkgname-$version.tar.bz2"
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2011-10-16 17:46:38 +00:00
|
|
|
configure_args="--disable-rpath udevscriptdir=/lib/udev"
|
2012-05-23 16:26:56 +00:00
|
|
|
makedepends="pkg-config libltdl-devel libusb-compat-devel jpeg-devel gd-devel libexif-devel"
|
2012-06-03 07:08:53 +00:00
|
|
|
revision=1
|
2010-04-14 11:43:21 +00:00
|
|
|
short_desc="Digital camera access library"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-03-09 00:13:02 +00:00
|
|
|
license="GPL-2"
|
2012-04-16 14:39:10 +00:00
|
|
|
checksum=59b32d45252f67d066cc3bda7a59f8078e0cf4e7f23590a4b621633e81060292
|
2010-04-14 11:43:21 +00: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"
|
|
|
|
|
|
|
|
|
2012-03-09 00:13:02 +00:00
|
|
|
post_install() {
|
|
|
|
# Remove unused udev helper
|
|
|
|
rm -rf ${pkgdir}/usr/lib/udev
|
2010-04-14 11:43:21 +00:00
|
|
|
|
2012-03-09 00:13:02 +00:00
|
|
|
vmkdir lib/udev/rules.d
|
2010-04-14 11:43:21 +00:00
|
|
|
LD_LIBRARY_PATH="${DESTDIR}/usr/lib${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" \
|
|
|
|
CAMLIBS="${DESTDIR}/usr/lib/libgphoto2/${version}" \
|
2012-03-09 00:13:02 +00:00
|
|
|
"${DESTDIR}/usr/lib/libgphoto2/print-camera-list" udev-rules version 136 > \
|
|
|
|
"${DESTDIR}/lib/udev/rules.d/40-gphoto.rules"
|
|
|
|
|
|
|
|
# Remove recursive symlink
|
|
|
|
rm -f ${DESTDIR}/usr/include/gphoto2/gphoto2
|
|
|
|
install -d ${DESTDIR}/lib/udev/rules.d
|
2010-04-14 11:43:21 +00:00
|
|
|
}
|