2008-03-09 20:24:52 -04:00
|
|
|
# Description: A library designed to allow access to digital cameras to external programs
|
|
|
|
# URL: http://www.gphoto.org/proj/libgphoto2/
|
|
|
|
# Packager: Brett Goulder, predatorfreak at dcaf-security dot org
|
|
|
|
# Maintainer: Matt Housh, jaeger at crux dot nu
|
|
|
|
# Depends on: libusb, libexif
|
|
|
|
|
|
|
|
name=libgphoto2
|
2008-04-09 14:06:26 -04:00
|
|
|
version=2.4.1
|
2008-03-09 20:24:52 -04:00
|
|
|
release=1
|
|
|
|
source=(http://dl.sourceforge.net/sourceforge/gphoto/$name-$version.tar.gz)
|
|
|
|
|
|
|
|
build () {
|
|
|
|
cd $name-$version
|
2008-04-09 14:06:26 -04:00
|
|
|
sed -i "s:lt_dlcaller_register:lt_dlinit:g" configure libgphoto2_port/configure
|
|
|
|
sed -i "s:usb_busses:usb_find_busses:g" libgphoto2_port/configure
|
2008-03-09 20:24:52 -04:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--disable-nls \
|
|
|
|
--disable-static \
|
|
|
|
--mandir=/usr/man
|
|
|
|
find . -name "Makefile" -exec \
|
|
|
|
sed -i -e 's|\(udevscriptdir = \)${libdir}/udev|\1/lib/udev|g' '{}' \;
|
|
|
|
make EXIF_CFLAGS="-DHAVE_EXIF_0_5_4"
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
rm -rf $PKG/usr/share/doc
|
|
|
|
}
|