2010-04-14 13:43:21 +02:00
|
|
|
# Template file for 'libgphoto2'
|
|
|
|
pkgname=libgphoto2
|
2012-04-16 16:39:10 +02:00
|
|
|
version=2.4.14
|
2014-11-20 15:24:30 +01:00
|
|
|
revision=9
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2013-01-08 10:10:40 +01:00
|
|
|
configure_args="--disable-static --disable-rpath udevscriptdir=/usr/lib/udev"
|
2014-05-09 11:17:56 +02:00
|
|
|
hostmakedepends="automake libtool pkg-config gettext-devel"
|
2013-07-11 08:36:38 +02:00
|
|
|
makedepends="libltdl-devel libusb-compat-devel libjpeg-turbo-devel gd-devel>=2.1.0 libexif-devel"
|
2014-05-09 11:17:56 +02:00
|
|
|
depends="${pkgname}-udev-rules-${version}_${revision}"
|
2010-04-14 13:43:21 +02:00
|
|
|
short_desc="Digital camera access library"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-03-09 01:13:02 +01:00
|
|
|
license="GPL-2"
|
2012-07-09 23:44:20 +02:00
|
|
|
homepage="http://www.gphoto.org"
|
|
|
|
distfiles="${SOURCEFORGE_SITE}/gphoto/$pkgname-$version.tar.bz2"
|
2012-04-16 16:39:10 +02:00
|
|
|
checksum=59b32d45252f67d066cc3bda7a59f8078e0cf4e7f23590a4b621633e81060292
|
2010-04-14 13:43:21 +02:00
|
|
|
|
2014-11-20 16:46:32 +01:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
hostmakedepends+=" libgphoto2"
|
|
|
|
fi
|
|
|
|
|
2014-05-09 11:17:56 +02:00
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
|
2012-03-09 01:13:02 +01:00
|
|
|
post_install() {
|
|
|
|
# Remove unused udev helper
|
2014-04-04 14:49:14 +02:00
|
|
|
rm -rf ${DESTDIR}/usr/lib/udev
|
2010-04-14 13:43:21 +02:00
|
|
|
|
2014-05-09 11:17:56 +02:00
|
|
|
# Remove recursive symlink
|
|
|
|
rm -f ${DESTDIR}/usr/include/gphoto2/gphoto2
|
|
|
|
|
2012-07-09 23:44:20 +02:00
|
|
|
vmkdir usr/lib/udev/rules.d
|
2014-11-20 16:46:32 +01:00
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
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 > \
|
|
|
|
${DESTDIR}/usr/lib/udev/rules.d/40-gphoto.rules
|
|
|
|
else
|
|
|
|
/usr/lib/libgphoto2/print-camera-list udev-rules version 136 > \
|
|
|
|
${DESTDIR}/usr/lib/udev/rules.d/40-gphoto.rules
|
|
|
|
fi
|
2010-04-14 13:43:21 +02:00
|
|
|
}
|
2013-04-13 10:15:49 +02:00
|
|
|
|
2014-11-20 16:46:32 +01:00
|
|
|
libgphoto2-udev-rules_package() {
|
|
|
|
short_desc+=" - udev rules"
|
|
|
|
noarch=yes
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/udev/rules.d
|
2014-05-09 11:17:56 +02:00
|
|
|
}
|
2014-11-20 16:46:32 +01:00
|
|
|
}
|
2013-04-13 10:15:49 +02:00
|
|
|
libgphoto2-devel_package() {
|
2014-05-09 11:17:56 +02:00
|
|
|
depends="libexif-devel libusb-compat-devel libgphoto2>=${version}_${revision}"
|
2013-07-11 08:36:38 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 10:15:49 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin
|
|
|
|
vmove usr/include
|
2013-07-11 08:36:38 +02:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-13 10:15:49 +02:00
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/share/doc
|
|
|
|
vmove usr/share/man/man3
|
|
|
|
}
|
|
|
|
}
|