summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2010-09-05 02:08:55 +0800
committerkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2010-09-05 02:08:55 +0800
commit18842ee45fa56ff1006fb321b5f141ae88647af7 (patch)
tree2b09e95c1f37abaaecf1bb1be2754367f136cab7 /graphics
parent884ca758f6cd942266d6c01e539edccbc461e75a (diff)
downloadmarcuscom-ports-18842ee45fa56ff1006fb321b5f141ae88647af7.tar.gz
marcuscom-ports-18842ee45fa56ff1006fb321b5f141ae88647af7.tar.zst
marcuscom-ports-18842ee45fa56ff1006fb321b5f141ae88647af7.zip
Fix build with new libchamplain.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@14552 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'graphics')
-rw-r--r--graphics/geeqie/Makefile87
-rw-r--r--graphics/geeqie/distinfo3
-rw-r--r--graphics/geeqie/files/patch-plugins-ufraw-geeqie-ufraw35
-rw-r--r--graphics/geeqie/pkg-descr15
-rw-r--r--graphics/geeqie/pkg-plist58
5 files changed, 198 insertions, 0 deletions
diff --git a/graphics/geeqie/Makefile b/graphics/geeqie/Makefile
new file mode 100644
index 000000000..a8602a22b
--- /dev/null
+++ b/graphics/geeqie/Makefile
@@ -0,0 +1,87 @@
+# New ports collection makefile for: graphics/geeqie
+# Date created: 17 May 2008
+# Whom: Martin Tournoij <carpetsmoker@rwxrwxrwx.net>
+#
+# $FreeBSD: ports/graphics/geeqie/Makefile,v 1.14 2010/08/20 08:34:49 kwm Exp $
+#
+
+PORTNAME= geeqie
+PORTVERSION= 1.0
+PORTREVISION= 4
+CATEGORIES= graphics
+MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
+
+MAINTAINER= amdmi3@FreeBSD.org
+COMMENT= Lightweight image viewer forked from GQview
+
+LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png
+
+USE_GNOME= gtk20
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+CONFIGURE_ARGS= --docdir="${DOCSDIR}" \
+ --htmldir="${DOCSDIR}/html" \
+ --with-htmldir="${DOCSDIR}/html" \
+ --with-readmedir="${DOCSDIR}"
+CFLAGS+= -I${LOCALBASE}/include
+CONFIGURE_ENV+= CPPFLAGS="${CFLAGS}" LDFLAGS="-L${LOCALBASE}/lib"
+MAKE_ARGS+= top_builddir="${WRKSRC}"
+MAKE_JOBS_SAFE= yes
+
+PORTDOCS= *
+MAN1= geeqie.1
+USE_GETTEXT= yes
+
+OPTIONS= EXIV2 "Metadata editing" on \
+ LCMS "Color adjusting" on \
+ LIRC "Remote control" off \
+ GPS "GPS map support (libchamplain) EXPERIMENTAL" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_EXIV2)
+LIB_DEPENDS+= exiv2.9:${PORTSDIR}/graphics/exiv2
+CONFIGURE_ARGS+=--enable-exiv2
+.else
+CONFIGURE_ARGS+=--disable-exiv2
+.endif
+
+.if defined(WITH_LCMS)
+LIB_DEPENDS+= lcms.1:${PORTSDIR}/graphics/lcms
+CONFIGURE_ARGS+=--enable-lcms
+.else
+CONFIGURE_ARGS+=--disable-lcms
+.endif
+
+.if defined(WITH_LIRC)
+LIB_DEPENDS+= lirc_client.1:${PORTSDIR}/comms/lirc
+CONFIGURE_ARGS+=--enable-lirc
+.else
+CONFIGURE_ARGS+=--disable-lirc
+.endif
+
+# Support for libchamplain is marked as experimental!
+.if defined(WITH_GPS)
+LIB_DEPENDS+= champlain-0.8.1:${PORTSDIR}/graphics/libchamplain
+CONFIGURE_ARGS+=--enable-gps
+.else
+CONFIGURE_ARGS+=--disable-gps
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|MAP_ANONYMOUS|MAP_ANON|' ${WRKSRC}/src/main.c
+ @${REINPLACE_CMD} -e 's| -r %F||' ${WRKSRC}/geeqie.desktop
+# I cannot get gnome-doc-tool working properly: Outputs gibberish
+ @${REINPLACE_CMD} -Ee '/^(SUBDIRS|DIST_SUBDIRS)/ s|doc||' \
+ ${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} -e 's|champlain-0.4|champlain-0.8|g' \
+ -e 's|champlain-gtk-0.4|champlain-gtk-0.8|g' \
+ ${WRKSRC}/configure
+.if defined(NOPORTDOCS)
+ @${REINPLACE_CMD} -e '/^install-data-am:/ s|install-helpDATA||' \
+ ${WRKSRC}/doc/Makefile.in
+ @${REINPLACE_CMD} -e '/^install-data-am:/,/^[a-z]/ s|install-readmeDATA||' \
+ ${WRKSRC}/Makefile.in
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/graphics/geeqie/distinfo b/graphics/geeqie/distinfo
new file mode 100644
index 000000000..dac406d93
--- /dev/null
+++ b/graphics/geeqie/distinfo
@@ -0,0 +1,3 @@
+MD5 (geeqie-1.0.tar.gz) = 1d67ef990390224c5052697d93bb49c0
+SHA256 (geeqie-1.0.tar.gz) = d1ad64666446c1d490437a9441267e8d7c1b9dc6ab640716b213e386d9211fdd
+SIZE (geeqie-1.0.tar.gz) = 1934236
diff --git a/graphics/geeqie/files/patch-plugins-ufraw-geeqie-ufraw b/graphics/geeqie/files/patch-plugins-ufraw-geeqie-ufraw
new file mode 100644
index 000000000..467d822c0
--- /dev/null
+++ b/graphics/geeqie/files/patch-plugins-ufraw-geeqie-ufraw
@@ -0,0 +1,35 @@
+--- plugins/ufraw/geeqie-ufraw.orig 2010-02-18 00:21:15.000000000 +0300
++++ plugins/ufraw/geeqie-ufraw 2010-05-22 17:06:21.000000000 +0400
+@@ -37,7 +37,7 @@
+
+ basename=${input%.*}
+ dirname=${basename%/*}
+- xmp=`find "$dirname" -maxdepth 1 -path "$basename.*" -regextype posix-egrep -iregex "$XMP_REGEX" -print | head -n 1`
++ xmp=`find -E "$dirname" -maxdepth 1 -path "$basename.*" -iregex "$XMP_REGEX" -print | head -n 1`
+ [ -f "$xmp" ] || return 1
+
+ output=`get_output_from_id "$idfile"`
+@@ -75,7 +75,7 @@
+ rawfile=$1
+ basename=${rawfile%.*}
+ dirname=${basename%/*}
+- outfiles=`find "$dirname" -maxdepth 1 -path "$basename.*" -regextype posix-egrep \( -iregex "$OUT_REGEX" -o -regex "$ID_REGEX" \) -print `
++ outfiles=`find -E "$dirname" -maxdepth 1 -path "$basename.*" \( -iregex "$OUT_REGEX" -o -regex "$ID_REGEX" \) -print `
+ [ -z "$outfiles" ] # return true if no possible output file exists
+
+ # raw+jpeg pair created by the camera is considered processed,
+@@ -136,12 +136,12 @@
+ {
+ list=`mktemp /tmp/geeqie-ufraw-list.XXXXXXXXXX` || exit 1
+
+- find "$@" -regextype posix-egrep -iregex "$RAW_REGEX" -print | while read rawfile ; do
++ find -E "$@" -iregex "$RAW_REGEX" -print | while read rawfile ; do
+ raw_file_not_processed "$rawfile" && echo "$rawfile"
+ done >>$list
+
+ #refresh output from changed id files
+- find "$@" -regextype posix-egrep -regex "$ID_REGEX" -print | while read idfile ; do
++ find -E "$@" -regex "$ID_REGEX" -print | while read idfile ; do
+ id_file_changed "$idfile" && echo "$idfile"
+ done >>$list
+
diff --git a/graphics/geeqie/pkg-descr b/graphics/geeqie/pkg-descr
new file mode 100644
index 000000000..a35db4eb2
--- /dev/null
+++ b/graphics/geeqie/pkg-descr
@@ -0,0 +1,15 @@
+Geeqie is a lightweight Gtk+ based image viewer for Unix operating systems.
+
+Main features
+ o EXIF, IPTC and XMP metadata browsing and editing.
+ o Interoperability, easy integration with other software.
+ o geeqie works on files and directories, there is no need to import images.
+ o Fast preview for many raw image formats.
+ o Tools for image comparison, sorting and managing photo collection.
+
+History
+ Geeqie has been forked from gqview project, because it was not possible to
+ contact gqview author and the only maintainer. Geeqie projects goal is to move
+ the development forward and also integrate the existing patches.
+
+WWW: http://geeqie.sourceforge.net/
diff --git a/graphics/geeqie/pkg-plist b/graphics/geeqie/pkg-plist
new file mode 100644
index 000000000..3b6e44393
--- /dev/null
+++ b/graphics/geeqie/pkg-plist
@@ -0,0 +1,58 @@
+bin/geeqie
+lib/geeqie/geeqie-import
+lib/geeqie/geeqie-rotate
+lib/geeqie/geeqie-symlink
+lib/geeqie/geeqie-ufraw
+share/applications/geeqie.desktop
+%%DATADIR%%/applications/geeqie-import-geeqie.desktop
+%%DATADIR%%/applications/geeqie-import-gqview.desktop
+%%DATADIR%%/applications/geeqie-ufraw-id.desktop
+%%DATADIR%%/applications/geeqie-ufraw-recursive.desktop
+%%DATADIR%%/applications/geeqie-ufraw.desktop
+%%DATADIR%%/applications/rotate.desktop
+%%DATADIR%%/applications/symlink.desktop
+%%DATADIR%%/template.desktop
+share/locale/ar/LC_MESSAGES/geeqie.mo
+share/locale/be/LC_MESSAGES/geeqie.mo
+share/locale/bg/LC_MESSAGES/geeqie.mo
+share/locale/ca/LC_MESSAGES/geeqie.mo
+share/locale/cs/LC_MESSAGES/geeqie.mo
+share/locale/da/LC_MESSAGES/geeqie.mo
+share/locale/de/LC_MESSAGES/geeqie.mo
+share/locale/eo/LC_MESSAGES/geeqie.mo
+share/locale/es/LC_MESSAGES/geeqie.mo
+share/locale/et/LC_MESSAGES/geeqie.mo
+share/locale/eu/LC_MESSAGES/geeqie.mo
+share/locale/fi/LC_MESSAGES/geeqie.mo
+share/locale/fr/LC_MESSAGES/geeqie.mo
+share/locale/hu/LC_MESSAGES/geeqie.mo
+share/locale/id/LC_MESSAGES/geeqie.mo
+share/locale/it/LC_MESSAGES/geeqie.mo
+share/locale/ja/LC_MESSAGES/geeqie.mo
+share/locale/ko/LC_MESSAGES/geeqie.mo
+share/locale/nb/LC_MESSAGES/geeqie.mo
+share/locale/nl/LC_MESSAGES/geeqie.mo
+share/locale/pl/LC_MESSAGES/geeqie.mo
+share/locale/pt_BR/LC_MESSAGES/geeqie.mo
+share/locale/ro/LC_MESSAGES/geeqie.mo
+share/locale/ru/LC_MESSAGES/geeqie.mo
+share/locale/sk/LC_MESSAGES/geeqie.mo
+share/locale/sl/LC_MESSAGES/geeqie.mo
+share/locale/sr/LC_MESSAGES/geeqie.mo
+share/locale/sr@latin/LC_MESSAGES/geeqie.mo
+share/locale/sv/LC_MESSAGES/geeqie.mo
+share/locale/th/LC_MESSAGES/geeqie.mo
+share/locale/tr/LC_MESSAGES/geeqie.mo
+share/locale/uk/LC_MESSAGES/geeqie.mo
+share/locale/vi/LC_MESSAGES/geeqie.mo
+share/locale/zh_CN.GB2312/LC_MESSAGES/geeqie.mo
+share/locale/zh_TW/LC_MESSAGES/geeqie.mo
+share/pixmaps/geeqie.png
+@dirrmtry share/locale/sr@latin/LC_MESSAGES
+@dirrmtry share/locale/sr@latin
+@dirrm %%DATADIR%%/applications
+@dirrm %%DATADIR%%
+@dirrmtry share/applications
+@dirrm lib/geeqie
+@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true
+@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true