libgphoto2 yields support for almost 200 digital cameras.
Work by Arnaud Launay and me, further patch by Thorsten. Thanks to Marjorie for lending me her Canon A20 so that I could test this.
This commit is contained in:
parent
aadeb59a52
commit
2300039bc0
30
graphics/libgphoto2/Makefile
Normal file
30
graphics/libgphoto2/Makefile
Normal file
@ -0,0 +1,30 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2003/04/09 23:55:01 espie Exp $
|
||||
|
||||
COMMENT= 'digital camera library'
|
||||
CATEGORIES= graphics devel
|
||||
|
||||
MAINTAINER= Marc Espie <espie@openbsd.org>, Arnaud Launay <asl@launay.org>
|
||||
|
||||
DISTNAME= libgphoto2-2.1.1
|
||||
PKGNAME= libgphoto-2.1.1
|
||||
|
||||
HOMEPAGE=http://gphoto.sourceforge.net/
|
||||
|
||||
MASTER_SITES=${MASTER_SITE_SOURCEFORGE:=gphoto/}
|
||||
|
||||
# GPL
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
|
||||
CONFIGURE_STYLE= autoconf
|
||||
AUTOCONF_VERSION= 2.52
|
||||
SEPARATE_BUILD= simple
|
||||
CONFIGURE_ARGS= --disable-nls
|
||||
|
||||
LIB_DEPENDS= exif::graphics/libexif \
|
||||
usb::devel/libusb
|
||||
BUILD_DEPENDS= ::devel/pkgconfig
|
||||
|
||||
.include <bsd.port.mk>
|
3
graphics/libgphoto2/distinfo
Normal file
3
graphics/libgphoto2/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (libgphoto2-2.1.1.tar.gz) = e6a21973f7cc68739f2a55decf318048
|
||||
RMD160 (libgphoto2-2.1.1.tar.gz) = 777f2708d0a6ef53e45fc22f3c7689fe952c8a09
|
||||
SHA1 (libgphoto2-2.1.1.tar.gz) = e27e12faaabdf064bf7bbfabc48049756d2cdbe0
|
18
graphics/libgphoto2/patches/patch-configure_in
Normal file
18
graphics/libgphoto2/patches/patch-configure_in
Normal file
@ -0,0 +1,18 @@
|
||||
$OpenBSD: patch-configure_in,v 1.1.1.1 2003/04/09 23:55:01 espie Exp $
|
||||
--- configure.in.orig Sun Dec 1 22:46:02 2002
|
||||
+++ configure.in Thu Feb 27 10:00:40 2003
|
||||
@@ -326,12 +326,12 @@ dnl Check for sysctl()
|
||||
AC_MSG_CHECKING([for sysctl on BSD])
|
||||
AC_TRY_COMPILE([
|
||||
#include <unistd.h>
|
||||
- #include <sys/sysctl.h>
|
||||
#if __FreeBSD__
|
||||
# include <sys/types.h>
|
||||
#elif (__NetBSD__ || __OpenBSD__)
|
||||
# include <sys/param.h>
|
||||
- #endif],
|
||||
+ #endif
|
||||
+ #include <sys/sysctl.h>],
|
||||
[int mib[2] = { CTL_HW, HW_PHYSMEM };
|
||||
int value;
|
||||
size_t valuelen = sizeof(value);
|
12
graphics/libgphoto2/patches/patch-gphoto2-config_in
Normal file
12
graphics/libgphoto2/patches/patch-gphoto2-config_in
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-gphoto2-config_in,v 1.1.1.1 2003/04/09 23:55:01 espie Exp $
|
||||
--- gphoto2-config.in.orig Thu Feb 27 10:37:30 2003
|
||||
+++ gphoto2-config.in Thu Feb 27 10:37:39 2003
|
||||
@@ -59,7 +59,7 @@ while test $# -gt 0; do
|
||||
;;
|
||||
|
||||
--libs)
|
||||
- echo "-L@libdir@" -lgphoto2 -lm
|
||||
+ echo "-L@libdir@" -lgphoto2 -lm -lgphoto2_port
|
||||
;;
|
||||
|
||||
*)
|
@ -0,0 +1,17 @@
|
||||
$OpenBSD: patch-libgphoto2_gphoto2-filesys_c,v 1.1.1.1 2003/04/09 23:55:01 espie Exp $
|
||||
--- libgphoto2/gphoto2-filesys.c.orig Wed Feb 26 19:20:57 2003
|
||||
+++ libgphoto2/gphoto2-filesys.c Wed Feb 26 19:21:15 2003
|
||||
@@ -38,12 +38,12 @@
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SYSCTL
|
||||
-# include <sys/sysctl.h>
|
||||
# if __FreeBSD__
|
||||
# include <sys/types.h>
|
||||
# elif (__NetBSD__ || __OpenBSD__)
|
||||
# include <sys/param.h>
|
||||
# endif
|
||||
+# include <sys/sysctl.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_EXIF
|
@ -0,0 +1,10 @@
|
||||
$OpenBSD: patch-libgphoto2_libgphoto2_pc_in,v 1.1.1.1 2003/04/09 23:55:01 espie Exp $
|
||||
--- libgphoto2/libgphoto2.pc.in.orig Thu Feb 27 10:45:39 2003
|
||||
+++ libgphoto2/libgphoto2.pc.in Thu Feb 27 10:45:52 2003
|
||||
@@ -9,5 +9,5 @@ Name: libgphoto2
|
||||
Description: Library for easy access to digital cameras
|
||||
Requires:
|
||||
Version: @VERSION@
|
||||
-Libs: -L${libdir} -lgphoto2 -lm
|
||||
+Libs: -L${libdir} -lgphoto2 -lm -lgphoto2_port
|
||||
Cflags: -I${includedir}/gphoto2 -I${includedir}
|
@ -0,0 +1,14 @@
|
||||
$MirBSD$
|
||||
--- libgphoto2_port/libgphoto2_port/gphoto2-port-portability.h.orig Mon Apr 7 17:30:13 2003
|
||||
+++ libgphoto2_port/libgphoto2_port/gphoto2-port-portability.h Mon Apr 7 17:30:46 2003
|
||||
@@ -60,8 +60,9 @@ typedef struct {
|
||||
|
||||
/* Dynamic library functions */
|
||||
#define GP_SYSTEM_DLOPEN(_filename) dlopen(_filename, RTLD_LAZY)
|
||||
-#if defined(__APPLE__) || defined(__OpenBSD__)
|
||||
+#if defined(__APPLE__) || (defined(__OpenBSD__) && !defined(__ELF__))
|
||||
/* Darwin and OpenBSD prepend underscores to symbols */
|
||||
+ /* The gphoto2 makers are as stupid as any other GNU software! -mirabile */
|
||||
#define GP_SYSTEM_DLSYM(_handle, _funcname) dlsym(_handle, "_" _funcname)
|
||||
#else
|
||||
#define GP_SYSTEM_DLSYM(_handle, _funcname) dlsym(_handle, _funcname)
|
12
graphics/libgphoto2/patches/patch-libgphoto2_port_ltmain_sh
Normal file
12
graphics/libgphoto2/patches/patch-libgphoto2_port_ltmain_sh
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-libgphoto2_port_ltmain_sh,v 1.1.1.1 2003/04/09 23:55:01 espie Exp $
|
||||
--- libgphoto2_port/ltmain.sh.orig Thu Feb 27 10:36:33 2003
|
||||
+++ libgphoto2_port/ltmain.sh Thu Feb 27 10:36:51 2003
|
||||
@@ -1758,7 +1758,7 @@ compiler."
|
||||
|
||||
if test "$installed" = no; then
|
||||
notinst_deplibs="$notinst_deplibs $lib"
|
||||
- need_relink=yes
|
||||
+ need_relink=no
|
||||
fi
|
||||
|
||||
if test -n "$old_archive_from_expsyms_cmds"; then
|
12
graphics/libgphoto2/patches/patch-ltmain_sh
Normal file
12
graphics/libgphoto2/patches/patch-ltmain_sh
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-ltmain_sh,v 1.1.1.1 2003/04/09 23:55:01 espie Exp $
|
||||
--- ltmain.sh.orig Thu Feb 27 10:00:59 2003
|
||||
+++ ltmain.sh Thu Feb 27 10:01:14 2003
|
||||
@@ -1758,7 +1758,7 @@ compiler."
|
||||
|
||||
if test "$installed" = no; then
|
||||
notinst_deplibs="$notinst_deplibs $lib"
|
||||
- need_relink=yes
|
||||
+ need_relink=no
|
||||
fi
|
||||
|
||||
if test -n "$old_archive_from_expsyms_cmds"; then
|
9
graphics/libgphoto2/pkg/DESCR
Normal file
9
graphics/libgphoto2/pkg/DESCR
Normal file
@ -0,0 +1,9 @@
|
||||
This library is the core of the gphoto2 software. It gives access to
|
||||
almost 300 digital cameras
|
||||
(see http://gphoto.sourceforge.net/proj/libgphoto2/support.php for a
|
||||
list of supported cameras).
|
||||
|
||||
It uses abstractions to handle the communication port (serial/usb
|
||||
protocols) and the camera model separately.
|
||||
|
||||
WWW: ${HOMEPAGE}
|
4
graphics/libgphoto2/pkg/PFRAG.shared
Normal file
4
graphics/libgphoto2/pkg/PFRAG.shared
Normal file
@ -0,0 +1,4 @@
|
||||
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2003/04/09 23:55:01 espie Exp $
|
||||
lib/libgphoto2.so.2.3
|
||||
lib/libgphoto2_port.so.5.1
|
||||
DYNLIBDIR(%D/lib)
|
174
graphics/libgphoto2/pkg/PLIST
Normal file
174
graphics/libgphoto2/pkg/PLIST
Normal file
@ -0,0 +1,174 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2003/04/09 23:55:01 espie Exp $
|
||||
bin/gphoto2-config
|
||||
bin/gphoto2-port-config
|
||||
include/gphoto2/gphoto2-abilities-list.h
|
||||
include/gphoto2/gphoto2-camera.h
|
||||
include/gphoto2/gphoto2-context.h
|
||||
include/gphoto2/gphoto2-file.h
|
||||
include/gphoto2/gphoto2-filesys.h
|
||||
include/gphoto2/gphoto2-library.h
|
||||
include/gphoto2/gphoto2-list.h
|
||||
include/gphoto2/gphoto2-port-info-list.h
|
||||
include/gphoto2/gphoto2-port-log.h
|
||||
include/gphoto2/gphoto2-port-portability.h
|
||||
include/gphoto2/gphoto2-port-result.h
|
||||
include/gphoto2/gphoto2-port-version.h
|
||||
include/gphoto2/gphoto2-port.h
|
||||
include/gphoto2/gphoto2-result.h
|
||||
include/gphoto2/gphoto2-setting.h
|
||||
include/gphoto2/gphoto2-version.h
|
||||
include/gphoto2/gphoto2-widget.h
|
||||
include/gphoto2/gphoto2.h
|
||||
lib/gphoto2/2.1.1/libgphoto2_barbie.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_barbie.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_barbie.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_canon.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_canon.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_canon.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_casio_qv.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_casio_qv.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_casio_qv.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_digita.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_digita.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_digita.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_dimagev.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_dimagev.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_dimagev.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_dimera3500.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_dimera3500.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_dimera3500.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_directory.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_directory.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_directory.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_fuji.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_fuji.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_fuji.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_gsmart.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_gsmart.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_gsmart.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_jamcam.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_jamcam.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_jamcam.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_jd11.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_jd11.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_jd11.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_kodak_dc120.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_kodak_dc120.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_kodak_dc120.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_kodak_dc210.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_kodak_dc210.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_kodak_dc210.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_kodak_dc240.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_kodak_dc240.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_kodak_dc240.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_kodak_dc3200.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_kodak_dc3200.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_kodak_dc3200.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_konica.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_konica.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_konica.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_largan.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_largan.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_largan.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_mustek.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_mustek.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_mustek.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_panasonic_coolshot.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_panasonic_coolshot.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_panasonic_coolshot.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_panasonic_dc1000.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_panasonic_dc1000.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_panasonic_dc1000.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_panasonic_dc1580.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_panasonic_dc1580.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_panasonic_dc1580.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_panasonic_l859.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_panasonic_l859.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_panasonic_l859.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_pccam600.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_pccam600.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_pccam600.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_polaroid_pdc320.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_polaroid_pdc320.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_polaroid_pdc320.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_polaroid_pdc640.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_polaroid_pdc640.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_polaroid_pdc640.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_polaroid_pdc700.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_polaroid_pdc700.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_polaroid_pdc700.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_ptp.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_ptp.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_ptp.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_ricoh.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_ricoh.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_ricoh.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_samsung.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_samsung.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_samsung.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_sierra.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_sierra.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_sierra.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_sipix.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_sipix.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_sipix.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_sipixblink.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_sipixblink.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_sipixblink.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_sony_dscf1.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_sony_dscf1.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_sony_dscf1.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_sony_dscf55.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_sony_dscf55.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_sony_dscf55.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_soundvision.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_soundvision.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_soundvision.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_spca504_flash.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_spca504_flash.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_spca504_flash.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_stv0680.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_stv0680.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_stv0680.so
|
||||
lib/gphoto2/2.1.1/libgphoto2_sx330z.a
|
||||
lib/gphoto2/2.1.1/libgphoto2_sx330z.la
|
||||
lib/gphoto2/2.1.1/libgphoto2_sx330z.so
|
||||
lib/gphoto2_port/0.5.1/libgphoto2_port_serial.a
|
||||
lib/gphoto2_port/0.5.1/libgphoto2_port_serial.la
|
||||
lib/gphoto2_port/0.5.1/libgphoto2_port_serial.so
|
||||
lib/gphoto2_port/0.5.1/libgphoto2_port_usb.a
|
||||
lib/gphoto2_port/0.5.1/libgphoto2_port_usb.la
|
||||
lib/gphoto2_port/0.5.1/libgphoto2_port_usb.so
|
||||
lib/libgphoto2.a
|
||||
lib/libgphoto2.la
|
||||
lib/libgphoto2_port.a
|
||||
lib/libgphoto2_port.la
|
||||
lib/pkgconfig/libgphoto2.pc
|
||||
man/man3/gphoto2.3
|
||||
man/man3/gphoto2_port.3
|
||||
share/doc/libgphoto2/AUTHORS
|
||||
share/doc/libgphoto2/COPYING
|
||||
share/doc/libgphoto2/README
|
||||
share/doc/libgphoto2_port/AUTHORS
|
||||
share/doc/libgphoto2_port/NEWS
|
||||
share/doc/libgphoto2_port/README
|
||||
share/libgphoto2/2.1.1/konica/english
|
||||
share/libgphoto2/2.1.1/konica/french
|
||||
share/libgphoto2/2.1.1/konica/german
|
||||
share/libgphoto2/2.1.1/konica/japanese
|
||||
share/libgphoto2/2.1.1/konica/korean
|
||||
share/libgphoto2/2.1.1/konica/spanish
|
||||
%%SHARED%%
|
||||
@dirrm share/libgphoto2/2.1.1/konica
|
||||
@dirrm share/libgphoto2/2.1.1
|
||||
@dirrm share/libgphoto2
|
||||
@dirrm share/doc/libgphoto2_port
|
||||
@exec mkdir -p %D/share/doc/libgphoto2/linux-hotplug
|
||||
@dirrm share/doc/libgphoto2/linux-hotplug
|
||||
@dirrm share/doc/libgphoto2
|
||||
@dirrm lib/pkgconfig
|
||||
@dirrm lib/gphoto2_port/0.5.1
|
||||
@dirrm lib/gphoto2_port
|
||||
@dirrm lib/gphoto2/2.1.1
|
||||
@dirrm lib/gphoto2
|
||||
@dirrm include/gphoto2
|
Loading…
Reference in New Issue
Block a user