aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'graphics')
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/libgphoto2/Makefile58
-rw-r--r--graphics/libgphoto2/distinfo1
-rw-r--r--graphics/libgphoto2/files/patch-libgphoto2_port::ltmain.sh23
-rw-r--r--graphics/libgphoto2/files/patch-ltmain.sh23
-rw-r--r--graphics/libgphoto2/pkg-comment1
-rw-r--r--graphics/libgphoto2/pkg-descr4
-rw-r--r--graphics/libgphoto2/pkg-plist113
8 files changed, 224 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index 1129595894e5..34386e6b4731 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -184,6 +184,7 @@
SUBDIR += libgdgeda
SUBDIR += libggi
SUBDIR += libgnomecanvas
+ SUBDIR += libgphoto2
SUBDIR += libgrass5
SUBDIR += libimg
SUBDIR += liblug
diff --git a/graphics/libgphoto2/Makefile b/graphics/libgphoto2/Makefile
new file mode 100644
index 000000000000..c45da71ddbdf
--- /dev/null
+++ b/graphics/libgphoto2/Makefile
@@ -0,0 +1,58 @@
+# New ports collection makefile for: libgphoto2
+# Date created: 26 May 1999
+# Whom: Anders Nordby <anders@fix.no>
+#
+# $FreeBSD$
+#
+
+PORTNAME= libgphoto2
+PORTVERSION= 2.1.1
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= gphoto
+
+MAINTAINER= ports@FreeBSD.org
+
+BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkgconfig
+LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext \
+ usb-0.1.7:${PORTSDIR}/devel/libusb \
+ exif.8:${PORTSDIR}/graphics/libexif
+RUN_DEPENDS= pkg-config:${PORTSDIR}/devel/pkgconfig
+
+USE_BZIP2= yes
+USE_REINPLACE= yes
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+INSTALLS_SHLIB= yes
+
+MAN3= gphoto2.3 gphoto2_port.3
+
+post-patch:
+.for file in configure libgphoto2_port/configure
+ @${REINPLACE_CMD} -e \
+ 's|[{]libdir[}]/pkgconfig|{prefix}/libdata/pkgconfig|g ; \
+ s|-g -Wall||g' ${WRKSRC}/${file}
+.endfor
+ @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|po packaging doc|po doc|g ; \
+ s|: install-docDATA|:|g'
+ @${FIND} ${WRKSRC} -name "*.[ch]" | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|<malloc\.h>|<stdlib.h>|g'
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for file in AUTHORS NEWS README
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+.endfor
+ @${MKDIR} ${PREFIX}/share/doc/libgphoto2_port
+.for file in AUTHORS NEWS README
+ ${INSTALL_DATA} ${WRKSRC}/libgphoto2_port/${file} \
+ ${PREFIX}/share/doc/libgphoto2_port
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/graphics/libgphoto2/distinfo b/graphics/libgphoto2/distinfo
new file mode 100644
index 000000000000..b3288036388e
--- /dev/null
+++ b/graphics/libgphoto2/distinfo
@@ -0,0 +1 @@
+MD5 (libgphoto2-2.1.1.tar.bz2) = ec69ffba3dc3d6a6a604fd63b3e1159e
diff --git a/graphics/libgphoto2/files/patch-libgphoto2_port::ltmain.sh b/graphics/libgphoto2/files/patch-libgphoto2_port::ltmain.sh
new file mode 100644
index 000000000000..7fd28043b837
--- /dev/null
+++ b/graphics/libgphoto2/files/patch-libgphoto2_port::ltmain.sh
@@ -0,0 +1,23 @@
+--- libgphoto2_port/ltmain.sh.orig Tue Jun 25 21:56:37 2002
++++ libgphoto2_port/ltmain.sh Tue Jul 2 02:34:54 2002
+@@ -967,6 +967,7 @@
+ ;;
+
+ -avoid-version)
++ build_old_libs=no
+ avoid_version=yes
+ continue
+ ;;
+@@ -4273,10 +4274,12 @@
+ fi
+
+ # Install the pseudo-library for information purposes.
++ if /usr/bin/false; then
+ name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
+ instname="$dir/$name"i
+ $show "$install_prog $instname $destdir/$name"
+ $run eval "$install_prog $instname $destdir/$name" || exit $?
++ fi
+
+ # Maybe install the static library, too.
+ test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
diff --git a/graphics/libgphoto2/files/patch-ltmain.sh b/graphics/libgphoto2/files/patch-ltmain.sh
new file mode 100644
index 000000000000..886fc92f7ccc
--- /dev/null
+++ b/graphics/libgphoto2/files/patch-ltmain.sh
@@ -0,0 +1,23 @@
+--- ltmain.sh.orig Sat Mar 2 08:58:32 2002
++++ ltmain.sh Sat Mar 2 08:59:07 2002
+@@ -958,6 +958,7 @@
+ ;;
+
+ -avoid-version)
++ build_old_libs=no
+ avoid_version=yes
+ continue
+ ;;
+@@ -4247,10 +4248,12 @@
+ fi
+
+ # Install the pseudo-library for information purposes.
++ if /usr/bin/false; then
+ name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
+ instname="$dir/$name"i
+ $show "$install_prog $instname $destdir/$name"
+ $run eval "$install_prog $instname $destdir/$name" || exit $?
++ fi
+
+ # Maybe install the static library, too.
+ test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
diff --git a/graphics/libgphoto2/pkg-comment b/graphics/libgphoto2/pkg-comment
new file mode 100644
index 000000000000..f0c4300f9733
--- /dev/null
+++ b/graphics/libgphoto2/pkg-comment
@@ -0,0 +1 @@
+A universal digital camera picture control tool
diff --git a/graphics/libgphoto2/pkg-descr b/graphics/libgphoto2/pkg-descr
new file mode 100644
index 000000000000..0b5b596afca0
--- /dev/null
+++ b/graphics/libgphoto2/pkg-descr
@@ -0,0 +1,4 @@
+libgphoto2 is a library that can be used by applications to access
+various digital cameras.
+
+WWW: http://gphoto.sourceforge.net/
diff --git a/graphics/libgphoto2/pkg-plist b/graphics/libgphoto2/pkg-plist
new file mode 100644
index 000000000000..c01094871475
--- /dev/null
+++ b/graphics/libgphoto2/pkg-plist
@@ -0,0 +1,113 @@
+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.so
+lib/gphoto2/2.1.1/libgphoto2_canon.so
+lib/gphoto2/2.1.1/libgphoto2_casio_qv.so
+lib/gphoto2/2.1.1/libgphoto2_digita.so
+lib/gphoto2/2.1.1/libgphoto2_dimagev.so
+lib/gphoto2/2.1.1/libgphoto2_dimera3500.so
+lib/gphoto2/2.1.1/libgphoto2_directory.so
+lib/gphoto2/2.1.1/libgphoto2_fuji.so
+lib/gphoto2/2.1.1/libgphoto2_gsmart.so
+lib/gphoto2/2.1.1/libgphoto2_jamcam.so
+lib/gphoto2/2.1.1/libgphoto2_jd11.so
+lib/gphoto2/2.1.1/libgphoto2_kodak_dc120.so
+lib/gphoto2/2.1.1/libgphoto2_kodak_dc210.so
+lib/gphoto2/2.1.1/libgphoto2_kodak_dc240.so
+lib/gphoto2/2.1.1/libgphoto2_kodak_dc3200.so
+lib/gphoto2/2.1.1/libgphoto2_konica.so
+lib/gphoto2/2.1.1/libgphoto2_largan.so
+lib/gphoto2/2.1.1/libgphoto2_mustek.so
+lib/gphoto2/2.1.1/libgphoto2_panasonic_coolshot.so
+lib/gphoto2/2.1.1/libgphoto2_panasonic_dc1000.so
+lib/gphoto2/2.1.1/libgphoto2_panasonic_dc1580.so
+lib/gphoto2/2.1.1/libgphoto2_panasonic_l859.so
+lib/gphoto2/2.1.1/libgphoto2_pccam600.so
+lib/gphoto2/2.1.1/libgphoto2_polaroid_pdc320.so
+lib/gphoto2/2.1.1/libgphoto2_polaroid_pdc640.so
+lib/gphoto2/2.1.1/libgphoto2_polaroid_pdc700.so
+lib/gphoto2/2.1.1/libgphoto2_ptp.so
+lib/gphoto2/2.1.1/libgphoto2_ricoh.so
+lib/gphoto2/2.1.1/libgphoto2_samsung.so
+lib/gphoto2/2.1.1/libgphoto2_sierra.so
+lib/gphoto2/2.1.1/libgphoto2_sipix.so
+lib/gphoto2/2.1.1/libgphoto2_sipixblink.so
+lib/gphoto2/2.1.1/libgphoto2_sony_dscf1.so
+lib/gphoto2/2.1.1/libgphoto2_sony_dscf55.so
+lib/gphoto2/2.1.1/libgphoto2_soundvision.so
+lib/gphoto2/2.1.1/libgphoto2_spca504_flash.so
+lib/gphoto2/2.1.1/libgphoto2_stv0680.so
+lib/gphoto2/2.1.1/libgphoto2_sx330z.so
+lib/gphoto2_port/0.5.1/libgphoto2_port_serial.so
+lib/gphoto2_port/0.5.1/libgphoto2_port_usb.so
+libdata/pkgconfig/libgphoto2.pc
+lib/libgphoto2.a
+lib/libgphoto2.so
+lib/libgphoto2.so.2
+lib/libgphoto2_port.a
+lib/libgphoto2_port.so
+lib/libgphoto2_port.so.5
+%%PORTDOCS%%share/doc/libgphoto2/AUTHORS
+%%PORTDOCS%%share/doc/libgphoto2/NEWS
+%%PORTDOCS%%share/doc/libgphoto2/README
+%%PORTDOCS%%share/doc/libgphoto2_port/AUTHORS
+%%PORTDOCS%%share/doc/libgphoto2_port/NEWS
+%%PORTDOCS%%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
+share/locale/da/LC_MESSAGES/libgphoto2-2.mo
+share/locale/da/LC_MESSAGES/libgphoto2_port-0.mo
+share/locale/de/LC_MESSAGES/libgphoto2-2.mo
+share/locale/de/LC_MESSAGES/libgphoto2_port-0.mo
+share/locale/es/LC_MESSAGES/libgphoto2-2.mo
+share/locale/es/LC_MESSAGES/libgphoto2_port-0.mo
+share/locale/fr/LC_MESSAGES/libgphoto2-2.mo
+share/locale/fr/LC_MESSAGES/libgphoto2_port-0.mo
+share/locale/it/LC_MESSAGES/libgphoto2-2.mo
+share/locale/it/LC_MESSAGES/libgphoto2_port-0.mo
+share/locale/ja/LC_MESSAGES/libgphoto2-2.mo
+share/locale/ja/LC_MESSAGES/libgphoto2_port-0.mo
+share/locale/no/LC_MESSAGES/libgphoto2-2.mo
+share/locale/no/LC_MESSAGES/libgphoto2_port-0.mo
+share/locale/ru/LC_MESSAGES/libgphoto2-2.mo
+share/locale/ru/LC_MESSAGES/libgphoto2_port-0.mo
+share/locale/sl/LC_MESSAGES/libgphoto2-2.mo
+share/locale/sl/LC_MESSAGES/libgphoto2_port-0.mo
+share/locale/sv/LC_MESSAGES/libgphoto2-2.mo
+share/locale/sv/LC_MESSAGES/libgphoto2_port-0.mo
+share/locale/uk/LC_MESSAGES/libgphoto2-2.mo
+share/locale/uk/LC_MESSAGES/libgphoto2_port-0.mo
+share/locale/zh_CN/LC_MESSAGES/libgphoto2-2.mo
+share/locale/zh_CN/LC_MESSAGES/libgphoto2_port-0.mo
+@dirrm share/libgphoto2/2.1.1/konica
+@dirrm share/libgphoto2/2.1.1
+@dirrm share/libgphoto2
+%%PORTDOCS%%@dirrm share/doc/libgphoto2_port
+%%PORTDOCS%%@dirrm share/doc/libgphoto2
+@dirrm lib/gphoto2_port/0.5.1
+@dirrm lib/gphoto2_port
+@dirrm lib/gphoto2/2.1.1
+@dirrm lib/gphoto2
+@dirrm include/gphoto2