contrib/libgphoto2/Pkgfile
2008-04-09 14:06:47 -04:00

26 lines
864 B
Plaintext

# 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
version=2.4.1
release=1
source=(http://dl.sourceforge.net/sourceforge/gphoto/$name-$version.tar.gz)
build () {
cd $name-$version
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
./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
}