Added libgphoto2-2.4.9 build template.
--HG-- extra : convert_revision : 18d1dee311b61ec3c58ef23984895c9a76f69812
This commit is contained in:
parent
0e39a3f36c
commit
c49c56ba2a
1
srcpkgs/libgphoto2-devel
Symbolic link
1
srcpkgs/libgphoto2-devel
Symbolic link
|
@ -0,0 +1 @@
|
|||
libgphoto2
|
2
srcpkgs/libgphoto2/depends
Normal file
2
srcpkgs/libgphoto2/depends
Normal file
|
@ -0,0 +1,2 @@
|
|||
abi_depends=">=2.4.9"
|
||||
api_depends="${abi_depends}"
|
28
srcpkgs/libgphoto2/libgphoto2-devel.template
Normal file
28
srcpkgs/libgphoto2/libgphoto2-devel.template
Normal file
|
@ -0,0 +1,28 @@
|
|||
# Template file for 'libgphoto2-devel'.
|
||||
#
|
||||
short_desc="${sourcepkg} - development files"
|
||||
long_desc="${long_desc}
|
||||
|
||||
This package contains files for development, headers, static libs, etc."
|
||||
|
||||
Add_dependency run pkg-config
|
||||
Add_dependency run intltool
|
||||
Add_dependency run doxygen
|
||||
Add_dependency run libltdl-devel
|
||||
Add_dependency run libusb-compat-devel
|
||||
Add_dependency run jpeg-devel
|
||||
Add_dependency run gd-devel
|
||||
Add_dependency run libexif-devel
|
||||
Add_dependency run dbus-devel
|
||||
Add_dependency run libhal-devel
|
||||
Add_dependency run libgphoto2
|
||||
|
||||
do_install()
|
||||
{
|
||||
mkdir -p ${DESTDIR}/usr/lib ${DESTDIR}/usr/share/man
|
||||
mv ${SRCPKGDESTDIR}/usr/{bin,include} ${DESTDIR}/usr
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/lib*.so ${DESTDIR}/usr/lib
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib
|
||||
mv ${SRCPKGDESTDIR}/usr/share/doc ${DESTDIR}/usr/share
|
||||
mv ${SRCPKGDESTDIR}/usr/share/man/man3 ${DESTDIR}/usr/share/man
|
||||
}
|
53
srcpkgs/libgphoto2/template
Normal file
53
srcpkgs/libgphoto2/template
Normal file
|
@ -0,0 +1,53 @@
|
|||
# Template file for 'libgphoto2'
|
||||
pkgname=libgphoto2
|
||||
version=2.4.9
|
||||
distfiles="${SOURCEFORGE_SITE}/gphoto/$pkgname-$version.tar.bz2"
|
||||
build_style=gnu_configure
|
||||
configure_args="--disable-rpath --localstatedir=/var udevscriptdir=/lib/udev"
|
||||
short_desc="Digital camera access library"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
checksum=d4bd7da50f073c121ebca2832a7eeb23d2f7a493e902d80a0ab7f7f0f4eb110a
|
||||
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 run glibc
|
||||
Add_dependency run libltdl
|
||||
Add_dependency run libusb-compat
|
||||
Add_dependency run jpeg
|
||||
Add_dependency run gd
|
||||
Add_dependency run libexif
|
||||
Add_dependency run dbus-libs
|
||||
Add_dependency run libhal
|
||||
|
||||
Add_dependency build pkg-config
|
||||
Add_dependency build intltool
|
||||
Add_dependency build doxygen
|
||||
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
|
||||
Add_dependency build dbus-devel
|
||||
Add_dependency build libhal-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
|
||||
}
|
Loading…
Reference in New Issue
Block a user