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
|
2013-04-13 08:15:49 +00:00
|
|
|
revision=5
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2013-01-08 09:10:40 +00:00
|
|
|
configure_args="--disable-static --disable-rpath udevscriptdir=/usr/lib/udev"
|
2013-04-13 08:15:49 +00:00
|
|
|
hostmakedepends="pkg-config"
|
|
|
|
makedepends="libltdl-devel libusb-compat-devel libjpeg-turbo-devel gd-devel libexif-devel"
|
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-07-09 21:44:20 +00:00
|
|
|
homepage="http://www.gphoto.org"
|
|
|
|
distfiles="${SOURCEFORGE_SITE}/gphoto/$pkgname-$version.tar.bz2"
|
2012-04-16 14:39:10 +00:00
|
|
|
checksum=59b32d45252f67d066cc3bda7a59f8078e0cf4e7f23590a4b621633e81060292
|
2010-04-14 11:43:21 +00:00
|
|
|
|
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-07-09 21:44:20 +00:00
|
|
|
vmkdir usr/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 > \
|
2012-07-09 21:44:20 +00:00
|
|
|
"${DESTDIR}/usr/lib/udev/rules.d/40-gphoto.rules"
|
2012-03-09 00:13:02 +00:00
|
|
|
|
|
|
|
# Remove recursive symlink
|
|
|
|
rm -f ${DESTDIR}/usr/include/gphoto2/gphoto2
|
2010-04-14 11:43:21 +00:00
|
|
|
}
|
2013-04-13 08:15:49 +00:00
|
|
|
|
|
|
|
libgphoto2-devel_package() {
|
|
|
|
depends="libexif-devel libusb-compat-devel libgphoto2>=${version}"
|
|
|
|
short_desc+=" -- development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/share/doc
|
|
|
|
vmove usr/share/man/man3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libgphoto2_package() {
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|