summaryrefslogtreecommitdiffstats
path: root/graphics/shotwell
diff options
context:
space:
mode:
authorkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2011-03-07 07:12:47 +0800
committerkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2011-03-07 07:12:47 +0800
commitc02b03a2057196912df7e5b8a6494f2557b74297 (patch)
tree9d4df288f77dfc31f41e21863356f23ad1ad87e9 /graphics/shotwell
parenta1ba0b10c15818d7c9cf2829be4cc54b9c56e27f (diff)
downloadmarcuscom-ports-c02b03a2057196912df7e5b8a6494f2557b74297.tar
marcuscom-ports-c02b03a2057196912df7e5b8a6494f2557b74297.tar.gz
marcuscom-ports-c02b03a2057196912df7e5b8a6494f2557b74297.tar.bz2
marcuscom-ports-c02b03a2057196912df7e5b8a6494f2557b74297.tar.lz
marcuscom-ports-c02b03a2057196912df7e5b8a6494f2557b74297.tar.xz
marcuscom-ports-c02b03a2057196912df7e5b8a6494f2557b74297.tar.zst
marcuscom-ports-c02b03a2057196912df7e5b8a6494f2557b74297.zip
Chase webkit-gtk2 shlib name change libwebkit-1.0.so.13 -> libwebkitgtk-1.0.so.0
Bump portrevision except broken ports. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@15365 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'graphics/shotwell')
-rw-r--r--graphics/shotwell/Makefile75
-rw-r--r--graphics/shotwell/distinfo4
-rw-r--r--graphics/shotwell/files/patch-Makefile139
-rw-r--r--graphics/shotwell/files/patch-src__main.vala14
-rw-r--r--graphics/shotwell/pkg-descr6
-rw-r--r--graphics/shotwell/pkg-plist102
6 files changed, 340 insertions, 0 deletions
diff --git a/graphics/shotwell/Makefile b/graphics/shotwell/Makefile
new file mode 100644
index 000000000..461c15cbf
--- /dev/null
+++ b/graphics/shotwell/Makefile
@@ -0,0 +1,75 @@
+# New ports collection makefile for: shotwell
+# Date created: Tue Sep 7 02:00:03 UTC 2010
+# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> et al.
+#
+# $FreeBSD: ports/graphics/shotwell/Makefile,v 1.8 2011/03/04 02:15:09 wen Exp $
+#
+
+PORTNAME= shotwell
+PORTVERSION= 0.7.2
+PORTREVISION= 1
+CATEGORIES= graphics gnome
+MASTER_SITES= http://www.yorba.org/download/shotwell/${PORTVERSION:R}/
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= Open source photo manager for GNOME
+
+BUILD_DEPENDS= ${LOCALBASE}/lib/libraw.a:${PORTSDIR}/graphics/libraw \
+ vala>=0.10.0:${PORTSDIR}/lang/vala
+LIB_DEPENDS= sqlite3:${PORTSDIR}/databases/sqlite3 \
+ dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib \
+ gee.2:${PORTSDIR}/devel/libgee \
+ soup-2.4.1:${PORTSDIR}/devel/libsoup \
+ gexiv2.0:${PORTSDIR}/graphics/gexiv2 \
+ exif.12:${PORTSDIR}/graphics/libexif \
+ gphoto2.2:${PORTSDIR}/graphics/libgphoto2 \
+ webkitgtk-1.0:${PORTSDIR}/www/webkit-gtk2 \
+ unique-1.0.2:${PORTSDIR}/x11-toolkits/unique
+
+BROKEN= does not build
+
+USE_BZIP2= yes
+USE_GETTEXT= yes
+USE_GNOME= gnomehier gconf2 gtk20 desktopfileutils librsvg2
+USE_GMAKE= yes
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS= --prefix=${PREFIX} \
+ --disable-icon-update \
+ --with-gconf-schema-file-dir=${PREFIX}/etc/gconf/schemas
+INSTALLS_ICONS= yes
+
+GCONF_SCHEMAS= shotwell.schemas
+
+post-patch:
+ @${REINPLACE_CMD} -E \
+ -e 's|/bin/bash|${SH}|g ; s|/usr/bin/env.*bash|${SH}|g' \
+ ${WRKSRC}/${CONFIGURE_SCRIPT} \
+ ${WRKSRC}/libraw-config \
+ ${WRKSRC}/minver
+
+post-configure:
+ @${REINPLACE_CMD} -E \
+ -e 's|share/shotwell|${DATADIR_REL}|g ; \
+ s|%%GCONF_CONFIG_SOURCE%%|${GCONF_CONFIG_SOURCE}|g' \
+ ${WRKSRC}/${MAKEFILE}
+# attempt at a DATADIR safe port
+ @${REINPLACE_CMD} -E \
+ -e 's|\.get_child\("share")\.get_child\("shotwell")|${SHOTWELL_DATADIR}|' \
+ ${WRKSRC}/src/AppDirs.vala
+
+post-install:
+ @-update-desktop-database
+
+.include <bsd.port.pre.mk>
+
+# graphics/libraw
+.if exists(${LOCALBASE}/lib/libraw.so.0)
+LIB_DEPENDS+= raw.0:${PORTSDIR}/graphics/libraw
+.endif
+
+# attempt at a DATADIR safe port
+.for dir in ${DATADIR:S,^${PREFIX}/,,:S,/, ,g}
+SHOTWELL_DATADIR+=.get_child("${dir}")
+.endfor
+
+.include <bsd.port.post.mk>
diff --git a/graphics/shotwell/distinfo b/graphics/shotwell/distinfo
new file mode 100644
index 000000000..ebb0689a4
--- /dev/null
+++ b/graphics/shotwell/distinfo
@@ -0,0 +1,4 @@
+MD5 (shotwell-0.7.2.tar.bz2) = 075b04f9723bddfffc96810384b9524a
+SHA256 (shotwell-0.7.2.tar.bz2) = 8b4139407d59badcbe13e23db070e0a0709ecc0f9ad806335888382eebf5dfa3
+SIZE (shotwell-0.7.2.tar.bz2) = 1064127
+
diff --git a/graphics/shotwell/files/patch-Makefile b/graphics/shotwell/files/patch-Makefile
new file mode 100644
index 000000000..3c54b9c27
--- /dev/null
+++ b/graphics/shotwell/files/patch-Makefile
@@ -0,0 +1,139 @@
+--- Makefile.orig 2010-09-10 17:55:54.000000000 -0500
++++ Makefile 2010-12-28 16:15:44.000000000 -0600
+@@ -21,6 +21,10 @@
+ LINUX = 1
+ endif
+
++ifeq "$(SYSTEM)" "FreeBSD"
++ FreeBSD = 1
++endif
++
+ ifeq "$(SYSTEM)" "MinGW"
+ WINDOWS = 1
+ endif
+@@ -41,6 +45,10 @@
+ EXPORT_FLAGS = -export-dynamic
+ endif
+
++ifdef FreeBSD
++ EXPORT_FLAGS = -export-dynamic
++endif
++
+ ifdef WINDOWS
+ EXPORT_FLAGS = -export-all-symbols
+ endif
+@@ -124,10 +132,13 @@
+ FSpotDatabaseDriver.vala \
+ FSpotDatabaseTables.vala
+
++# this should be ifndef LINUX && ifndef FreeBSD
+ ifndef LINUX
++ifndef FreeBSD
+ SRC_FILES += \
+ GConf.vala
+ endif
++endif
+
+ VAPI_FILES = \
+ libexif.vapi \
+@@ -288,6 +299,18 @@
+ gdk-x11-2.0
+ endif
+
++ifdef FreeBSD
++EXT_PKGS += \
++ gconf-2.0 \
++ libgphoto2 \
++ libsoup-2.4 \
++ libxml-2.0 \
++ unique-1.0 \
++ webkit-1.0 \
++ dbus-glib-1 \
++ gdk-x11-2.0
++endif
++
+ # libraw is handled separately (see note below); when libraw-config is no longer needed, the version
+ # should be added to this list
+ EXT_PKG_VERSIONS = \
+@@ -313,6 +336,18 @@
+ dbus-glib-1 >= 0.80
+ endif
+
++ifdef LINUX
++EXT_PKG_VERSIONS += \
++ gconf-2.0 >= 2.22.0 \
++ libgphoto2 >= 2.4.2 \
++ libsoup-2.4 >= 2.26.0 \
++ libxml-2.0 >= 2.6.32 \
++ unique-1.0 >= 1.0.0 \
++ webkit-1.0 >= 1.1.5 \
++ dbus-glib-1 >= 0.80
++endif
++
++
+ PKGS = $(EXT_PKGS) $(LOCAL_PKGS) $(LIBRAW_PKG)
+
+ ifndef BUILD_DIR
+@@ -357,6 +392,10 @@
+
+ VALA_LDFLAGS = `pkg-config --libs $(EXT_PKGS) gthread-2.0`
+
++ifdef FreeBSD
++ VALA_DEFINES = -D NO_CAMERA
++endif
++
+ ifdef WINDOWS
+ VALA_DEFINES = -D WINDOWS -D NO_CAMERA -D NO_PRINTING -D NO_PUBLISHING -D NO_LIBUNIQUE -D NO_EXTENDED_POSIX -D NO_SET_BACKGROUND
+ EXPANDED_OBJ_FILES += src/windows.o
+@@ -393,6 +432,11 @@
+ LIBRAW_CONFIG=./libraw-config
+ endif
+
++ifdef FreeBSD
++LIBRAW_CONFIG=./libraw-config
++endif
++
++
+ ifdef WINDOWS
+ LIBRAW_CONFIG=./libraw-config --windows
+ endif
+@@ -488,9 +532,20 @@
+ $(INSTALL_DATA) $(EXPANDED_HELP_IMAGES) $(DESTDIR)$(PREFIX)/share/gnome/help/shotwell/C/figures
+ endif
+ endif
++ifdef FreeBSD
++ifndef DISABLE_SCHEMAS_INSTALL
++ GCONF_CONFIG_SOURCE=%%GCONF_CONFIG_SOURCE%% gconftool-2 --makefile-install-rule misc/shotwell.schemas
++ mkdir -p $(DESTDIR)$(SCHEMA_FILE_DIR)
++ $(INSTALL_DATA) misc/shotwell.schemas $(DESTDIR)$(SCHEMA_FILE_DIR)
++endif
++ifdef ENABLE_APPORT_HOOK_INSTALL
++ mkdir -p $(DESTDIR)$(PREFIX)/share/apport/package-hooks
++ $(INSTALL_DATA) apport/shotwell.py $(DESTDIR)$(PREFIX)/share/apport/package-hooks
++endif
++endif
+ -$(foreach lang,$(SUPPORTED_LANGUAGES),`mkdir -p $(SYSTEM_LANG_DIR)/$(lang)/LC_MESSAGES ; \
+- $(INSTALL_DATA) $(LOCAL_LANG_DIR)/$(lang)/LC_MESSAGES/shotwell.mo \
+- $(SYSTEM_LANG_DIR)/$(lang)/LC_MESSAGES/shotwell.mo`)
++ $(INSTALL_DATA) $(LOCAL_LANG_DIR)/$(lang)/LC_MESSAGES/shotwell.mo \
++ $(SYSTEM_LANG_DIR)/$(lang)/LC_MESSAGES/shotwell.mo`)
+
+ uninstall:
+ rm -f $(DESTDIR)$(PREFIX)/bin/$(PROGRAM)
+@@ -514,6 +569,16 @@
+ rm -f $(DESTDIR)$(PREFIX)/share/apport/package-hooks/shotwell.py
+ endif
+ endif
++ifdef FreeBSD
++ifndef DISABLE_SCHEMAS_INSTALL
++ GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-install-rule misc/shotwell.schemas
++else
++ rm -f $(DESTDIR)$(SCHEMA_FILE_DIR)/shotwell.schemas
++endif
++ifdef ENABLE_APPORT_HOOK_INSTALL
++ rm -f $(DESTDIR)$(PREFIX)/share/apport/package-hooks/shotwell.py
++endif
++endif
+ $(foreach lang,$(SUPPORTED_LANGUAGES),`rm -f $(SYSTEM_LANG_DIR)/$(lang)/LC_MESSAGES/shotwell.mo`)
+
+ $(VALA_STAMP): $(EXPANDED_SRC_FILES) $(EXPANDED_VAPI_FILES) $(EXPANDED_SRC_HEADER_FILES) Makefile \
diff --git a/graphics/shotwell/files/patch-src__main.vala b/graphics/shotwell/files/patch-src__main.vala
new file mode 100644
index 000000000..099b9e726
--- /dev/null
+++ b/graphics/shotwell/files/patch-src__main.vala
@@ -0,0 +1,14 @@
+--- src/main.vala.orig 2010-09-07 10:48:53.000000000 -0300
++++ src/main.vala 2010-09-07 10:49:28.000000000 -0300
+@@ -16,9 +16,11 @@
+ Unique.Response response = Unique.Response.OK;
+
+ switch (command) {
++#if !NO_CAMERA
+ case ShotwellCommand.MOUNTED_CAMERA:
+ LibraryWindow.get_app().mounted_camera_shell_notification(data.get_text(), false);
+ break;
++#endif
+
+ case Unique.Command.ACTIVATE:
+ LibraryWindow.get_app().present_with_time(timestamp);
diff --git a/graphics/shotwell/pkg-descr b/graphics/shotwell/pkg-descr
new file mode 100644
index 000000000..bd0ef9979
--- /dev/null
+++ b/graphics/shotwell/pkg-descr
@@ -0,0 +1,6 @@
+[ excerpt from developer's web site with modifications ]
+
+A digital photo organizer that runs on Unix and (with limited
+features) on Windows.
+
+WWW: http://www.yorba.org/shotwell/
diff --git a/graphics/shotwell/pkg-plist b/graphics/shotwell/pkg-plist
new file mode 100644
index 000000000..177898802
--- /dev/null
+++ b/graphics/shotwell/pkg-plist
@@ -0,0 +1,102 @@
+bin/shotwell
+share/applications/shotwell-viewer.desktop
+share/applications/shotwell.desktop
+share/icons/hicolor/scalable/apps/shotwell.svg
+share/locale/ar/LC_MESSAGES/shotwell.mo
+share/locale/ast/LC_MESSAGES/shotwell.mo
+share/locale/bg/LC_MESSAGES/shotwell.mo
+share/locale/bn/LC_MESSAGES/shotwell.mo
+share/locale/ca/LC_MESSAGES/shotwell.mo
+share/locale/cs/LC_MESSAGES/shotwell.mo
+share/locale/da/LC_MESSAGES/shotwell.mo
+share/locale/de/LC_MESSAGES/shotwell.mo
+share/locale/el/LC_MESSAGES/shotwell.mo
+share/locale/en_GB/LC_MESSAGES/shotwell.mo
+share/locale/es/LC_MESSAGES/shotwell.mo
+share/locale/et/LC_MESSAGES/shotwell.mo
+share/locale/fi/LC_MESSAGES/shotwell.mo
+share/locale/fr/LC_MESSAGES/shotwell.mo
+share/locale/gl/LC_MESSAGES/shotwell.mo
+share/locale/hr/LC_MESSAGES/shotwell.mo
+share/locale/hu/LC_MESSAGES/shotwell.mo
+share/locale/id/LC_MESSAGES/shotwell.mo
+share/locale/it/LC_MESSAGES/shotwell.mo
+share/locale/ja/LC_MESSAGES/shotwell.mo
+share/locale/kk/LC_MESSAGES/shotwell.mo
+share/locale/ko/LC_MESSAGES/shotwell.mo
+share/locale/lt/LC_MESSAGES/shotwell.mo
+share/locale/lv/LC_MESSAGES/shotwell.mo
+share/locale/nb/LC_MESSAGES/shotwell.mo
+share/locale/nl/LC_MESSAGES/shotwell.mo
+share/locale/pa/LC_MESSAGES/shotwell.mo
+share/locale/pl/LC_MESSAGES/shotwell.mo
+share/locale/pt/LC_MESSAGES/shotwell.mo
+share/locale/ro/LC_MESSAGES/shotwell.mo
+share/locale/ru/LC_MESSAGES/shotwell.mo
+share/locale/sk/LC_MESSAGES/shotwell.mo
+share/locale/sl/LC_MESSAGES/shotwell.mo
+share/locale/sr/LC_MESSAGES/shotwell.mo
+share/locale/sv/LC_MESSAGES/shotwell.mo
+share/locale/th/LC_MESSAGES/shotwell.mo
+share/locale/tr/LC_MESSAGES/shotwell.mo
+share/locale/uk/LC_MESSAGES/shotwell.mo
+share/locale/zh_CN/LC_MESSAGES/shotwell.mo
+share/locale/zh_TW/LC_MESSAGES/shotwell.mo
+%%DATADIR%%/icons/all-rejected.png
+%%DATADIR%%/icons/crop-pivot-reticle.png
+%%DATADIR%%/icons/crop.svg
+%%DATADIR%%/icons/drag_nub.png
+%%DATADIR%%/icons/enhance.png
+%%DATADIR%%/icons/five-star-filter.svg
+%%DATADIR%%/icons/five-stars.svg
+%%DATADIR%%/icons/four-star-filter-plus.svg
+%%DATADIR%%/icons/four-stars.svg
+%%DATADIR%%/icons/image-adjust.svg
+%%DATADIR%%/icons/import-all.png
+%%DATADIR%%/icons/import.svg
+%%DATADIR%%/icons/last-import-roll.png
+%%DATADIR%%/icons/make-primary.svg
+%%DATADIR%%/icons/merge.svg
+%%DATADIR%%/icons/multiple-events.png
+%%DATADIR%%/icons/multiple-tags.png
+%%DATADIR%%/icons/one-event.png
+%%DATADIR%%/icons/one-star-filter-plus.svg
+%%DATADIR%%/icons/one-star.svg
+%%DATADIR%%/icons/one-tag.png
+%%DATADIR%%/icons/pin-toolbar.svg
+%%DATADIR%%/icons/publish.png
+%%DATADIR%%/icons/redeye.png
+%%DATADIR%%/icons/rejected.svg
+%%DATADIR%%/icons/shotwell-16.svg
+%%DATADIR%%/icons/shotwell-24.svg
+%%DATADIR%%/icons/shotwell-street.jpg
+%%DATADIR%%/icons/shotwell.ico
+%%DATADIR%%/icons/shotwell.svg
+%%DATADIR%%/icons/three-star-filter-plus.svg
+%%DATADIR%%/icons/three-stars.svg
+%%DATADIR%%/icons/two-star-filter-plus.svg
+%%DATADIR%%/icons/two-stars.svg
+%%DATADIR%%/icons/zoom-in.png
+%%DATADIR%%/icons/zoom-out.png
+%%DATADIR%%/ui/collection.ui
+%%DATADIR%%/ui/direct.ui
+%%DATADIR%%/ui/event.ui
+%%DATADIR%%/ui/events_directory.ui
+%%DATADIR%%/ui/fullscreen.ui
+%%DATADIR%%/ui/import.ui
+%%DATADIR%%/ui/import_queue.ui
+%%DATADIR%%/ui/offline.ui
+%%DATADIR%%/ui/photo.ui
+%%DATADIR%%/ui/shotwell.glade
+%%DATADIR%%/ui/tags.ui
+%%DATADIR%%/ui/trash.ui
+@dirrm %%DATADIR%%/ui
+@dirrm %%DATADIR%%/icons
+@dirrm %%DATADIR%%
+@dirrmtry share/locale/kk/LC_MESSAGES
+@dirrmtry share/locale/kk
+@dirrmtry share/locale/ast/LC_MESSAGES
+@dirrmtry share/locale/ast
+@dirrmtry share/applications
+@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true
+@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true