summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2012-04-11 11:48:30 +0000
committerdrochner <drochner@pkgsrc.org>2012-04-11 11:48:30 +0000
commit8d6ff875ad19d2e15ee1bf458ae612347545bb65 (patch)
treeab3a2be79e87f465a77f16af983af2526bb3cbb4
parentcb4037877173d1bf1860e00c2cdc2bea9fdd1717 (diff)
downloadpkgsrc-8d6ff875ad19d2e15ee1bf458ae612347545bb65.tar.gz
add shotwell-0.12.1, the new major branch, based on gtk3
-rw-r--r--graphics/shotwell-gtk3/DESCR3
-rw-r--r--graphics/shotwell-gtk3/Makefile51
-rw-r--r--graphics/shotwell-gtk3/PLIST232
-rw-r--r--graphics/shotwell-gtk3/distinfo7
-rw-r--r--graphics/shotwell-gtk3/patches/patch-aa67
-rw-r--r--graphics/shotwell-gtk3/patches/patch-ab116
6 files changed, 476 insertions, 0 deletions
diff --git a/graphics/shotwell-gtk3/DESCR b/graphics/shotwell-gtk3/DESCR
new file mode 100644
index 00000000000..b676d622a88
--- /dev/null
+++ b/graphics/shotwell-gtk3/DESCR
@@ -0,0 +1,3 @@
+Shotwell is a photo organizer for the GNOME desktop. It lets you import photos
+from disk or camera, organize them in various ways, view them in full-window or
+fullscreen mode, and export them to share with others.
diff --git a/graphics/shotwell-gtk3/Makefile b/graphics/shotwell-gtk3/Makefile
new file mode 100644
index 00000000000..f0b33ee3a42
--- /dev/null
+++ b/graphics/shotwell-gtk3/Makefile
@@ -0,0 +1,51 @@
+# $NetBSD: Makefile,v 1.1.1.1 2012/04/11 11:48:30 drochner Exp $
+#
+
+DISTNAME= shotwell-0.12.1
+CATEGORIES= graphics
+MASTER_SITES= http://yorba.org/download/shotwell/0.12/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= pkgrsc-users@NetBSD.org
+HOMEPAGE= http://yorba.org/shotwell/
+COMMENT= Shotwell is a photo organizer for the GNOME desktop
+LICENSE= gnu-lgpl-v2.1
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+HAS_CONFIGURE= yes
+USE_TOOLS+= gmake bash pkg-config msgfmt
+
+CONFIG_SHELL= bash
+CONFIGURE_ARGS+= --prefix=${PREFIX}
+CONFIGURE_ARGS+= --assume-pkgs
+CONFIGURE_ENV+= --define=NO_CAMERA
+MAKE_ENV+= VALAC=${VALAC}
+
+REPLACE_SH+= configure
+
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../devel/glib2/schemas.mk"
+.include "../../devel/libgee/buildlink3.mk"
+.include "../../devel/libgphoto2/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../graphics/libexif/buildlink3.mk"
+BUILDLINK_API_DEPENDS.libgexiv2+= libgexiv2>=0.4.1
+.include "../../graphics/libgexiv2/buildlink3.mk"
+# 0.13.2 added shared libs
+BUILDLINK_ABI_DEPENDS.libraw+= libraw>=0.13.2
+.include "../../graphics/libraw/buildlink3.mk"
+# Required for dealing with .svg icons. Spotted on a clean box
+.include "../../graphics/librsvg/buildlink3.mk"
+BUILDLINK_DEPMETHOD.vala= build
+.include "../../lang/vala016/buildlink3.mk"
+.include "../../net/libsoup24/buildlink3.mk"
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
+.include "../../sysutils/dbus-glib/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../textproc/json-glib/buildlink3.mk"
+.include "../../www/webkit-gtk3/buildlink3.mk"
+.include "../../www/librest07/buildlink3.mk"
+.include "../../x11/gtk3/buildlink3.mk"
+.include "../../x11/libunique3/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/shotwell-gtk3/PLIST b/graphics/shotwell-gtk3/PLIST
new file mode 100644
index 00000000000..65440c2cc5a
--- /dev/null
+++ b/graphics/shotwell-gtk3/PLIST
@@ -0,0 +1,232 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2012/04/11 11:48:30 drochner Exp $
+bin/shotwell
+bin/shotwell-video-thumbnailer
+lib/shotwell/plugins/builtin/f-spot-24.png
+lib/shotwell/plugins/builtin/facebook.png
+lib/shotwell/plugins/builtin/flickr.png
+lib/shotwell/plugins/builtin/picasa.png
+lib/shotwell/plugins/builtin/piwigo.png
+lib/shotwell/plugins/builtin/piwigo_authentication_pane.glade
+lib/shotwell/plugins/builtin/piwigo_publishing_options_pane.glade
+lib/shotwell/plugins/builtin/shotwell-data-imports.so
+lib/shotwell/plugins/builtin/shotwell-publishing-extras.so
+lib/shotwell/plugins/builtin/shotwell-publishing.so
+lib/shotwell/plugins/builtin/shotwell-transitions.so
+lib/shotwell/plugins/builtin/slideshow-plugin.png
+lib/shotwell/plugins/builtin/yandex_publish_model.glade
+lib/shotwell/plugins/builtin/youtube.png
+share/applications/shotwell-viewer.desktop
+share/applications/shotwell.desktop
+share/glib-2.0/schemas/org.yorba.shotwell-extras.gschema.xml
+share/glib-2.0/schemas/org.yorba.shotwell.gschema.xml
+share/gnome/help/shotwell/C/edit-adjustments.page
+share/gnome/help/shotwell/C/edit-crop.page
+share/gnome/help/shotwell/C/edit-enhance.page
+share/gnome/help/shotwell/C/edit-external.page
+share/gnome/help/shotwell/C/edit-nondestructive.page
+share/gnome/help/shotwell/C/edit-redeye.page
+share/gnome/help/shotwell/C/edit-rotate.page
+share/gnome/help/shotwell/C/edit-time-date.page
+share/gnome/help/shotwell/C/edit-undo.page
+share/gnome/help/shotwell/C/figures/crop_thirds.jpg
+share/gnome/help/shotwell/C/figures/edit_toolbar.png
+share/gnome/help/shotwell/C/figures/editing_overview.png
+share/gnome/help/shotwell/C/figures/shotwell_logo.png
+share/gnome/help/shotwell/C/figures/trash_process.png
+share/gnome/help/shotwell/C/formats.page
+share/gnome/help/shotwell/C/import-camera.page
+share/gnome/help/shotwell/C/import-f-spot.page
+share/gnome/help/shotwell/C/import-file.page
+share/gnome/help/shotwell/C/import-memorycard.page
+share/gnome/help/shotwell/C/index.page
+share/gnome/help/shotwell/C/organize-event.page
+share/gnome/help/shotwell/C/organize-flag.page
+share/gnome/help/shotwell/C/organize-rating.page
+share/gnome/help/shotwell/C/organize-remove.page
+share/gnome/help/shotwell/C/organize-search.page
+share/gnome/help/shotwell/C/organize-tag.page
+share/gnome/help/shotwell/C/organize-title.page
+share/gnome/help/shotwell/C/other-files.page
+share/gnome/help/shotwell/C/other-missing.page
+share/gnome/help/shotwell/C/other-multiple.page
+share/gnome/help/shotwell/C/running.page
+share/gnome/help/shotwell/C/share-background.page
+share/gnome/help/shotwell/C/share-export.page
+share/gnome/help/shotwell/C/share-print.page
+share/gnome/help/shotwell/C/share-send.page
+share/gnome/help/shotwell/C/share-slideshow.page
+share/gnome/help/shotwell/C/share-upload.page
+share/gnome/help/shotwell/C/view-displaying.page
+share/gnome/help/shotwell/C/view-information.page
+share/gnome/help/shotwell/C/view-sidebar.page
+share/icons/hicolor/16x16/apps/shotwell.svg
+share/icons/hicolor/24x24/apps/shotwell.svg
+share/icons/hicolor/scalable/apps/shotwell.svg
+share/locale/ar/LC_MESSAGES/shotwell-extras.mo
+share/locale/ar/LC_MESSAGES/shotwell.mo
+share/locale/ast/LC_MESSAGES/shotwell-extras.mo
+share/locale/ast/LC_MESSAGES/shotwell.mo
+share/locale/bg/LC_MESSAGES/shotwell-extras.mo
+share/locale/bg/LC_MESSAGES/shotwell.mo
+share/locale/bn/LC_MESSAGES/shotwell-extras.mo
+share/locale/bn/LC_MESSAGES/shotwell.mo
+share/locale/ca/LC_MESSAGES/shotwell-extras.mo
+share/locale/ca/LC_MESSAGES/shotwell.mo
+share/locale/cs/LC_MESSAGES/shotwell-extras.mo
+share/locale/cs/LC_MESSAGES/shotwell.mo
+share/locale/da/LC_MESSAGES/shotwell-extras.mo
+share/locale/da/LC_MESSAGES/shotwell.mo
+share/locale/de/LC_MESSAGES/shotwell-extras.mo
+share/locale/de/LC_MESSAGES/shotwell.mo
+share/locale/el/LC_MESSAGES/shotwell-extras.mo
+share/locale/el/LC_MESSAGES/shotwell.mo
+share/locale/en_GB/LC_MESSAGES/shotwell-extras.mo
+share/locale/en_GB/LC_MESSAGES/shotwell.mo
+share/locale/es/LC_MESSAGES/shotwell-extras.mo
+share/locale/es/LC_MESSAGES/shotwell.mo
+share/locale/et/LC_MESSAGES/shotwell-extras.mo
+share/locale/et/LC_MESSAGES/shotwell.mo
+share/locale/eu/LC_MESSAGES/shotwell-extras.mo
+share/locale/eu/LC_MESSAGES/shotwell.mo
+share/locale/fi/LC_MESSAGES/shotwell-extras.mo
+share/locale/fi/LC_MESSAGES/shotwell.mo
+share/locale/fr/LC_MESSAGES/shotwell-extras.mo
+share/locale/fr/LC_MESSAGES/shotwell.mo
+share/locale/gl/LC_MESSAGES/shotwell-extras.mo
+share/locale/gl/LC_MESSAGES/shotwell.mo
+share/locale/he/LC_MESSAGES/shotwell-extras.mo
+share/locale/he/LC_MESSAGES/shotwell.mo
+share/locale/hi/LC_MESSAGES/shotwell.mo
+share/locale/hr/LC_MESSAGES/shotwell-extras.mo
+share/locale/hr/LC_MESSAGES/shotwell.mo
+share/locale/hu/LC_MESSAGES/shotwell-extras.mo
+share/locale/hu/LC_MESSAGES/shotwell.mo
+share/locale/ia/LC_MESSAGES/shotwell.mo
+share/locale/id/LC_MESSAGES/shotwell-extras.mo
+share/locale/id/LC_MESSAGES/shotwell.mo
+share/locale/it/LC_MESSAGES/shotwell-extras.mo
+share/locale/it/LC_MESSAGES/shotwell.mo
+share/locale/ja/LC_MESSAGES/shotwell-extras.mo
+share/locale/ja/LC_MESSAGES/shotwell.mo
+share/locale/kk/LC_MESSAGES/shotwell-extras.mo
+share/locale/kk/LC_MESSAGES/shotwell.mo
+share/locale/ko/LC_MESSAGES/shotwell-extras.mo
+share/locale/ko/LC_MESSAGES/shotwell.mo
+share/locale/lt/LC_MESSAGES/shotwell-extras.mo
+share/locale/lt/LC_MESSAGES/shotwell.mo
+share/locale/lv/LC_MESSAGES/shotwell-extras.mo
+share/locale/lv/LC_MESSAGES/shotwell.mo
+share/locale/mk/LC_MESSAGES/shotwell-extras.mo
+share/locale/mk/LC_MESSAGES/shotwell.mo
+share/locale/nb/LC_MESSAGES/shotwell-extras.mo
+share/locale/nb/LC_MESSAGES/shotwell.mo
+share/locale/nl/LC_MESSAGES/shotwell-extras.mo
+share/locale/nl/LC_MESSAGES/shotwell.mo
+share/locale/pa/LC_MESSAGES/shotwell-extras.mo
+share/locale/pa/LC_MESSAGES/shotwell.mo
+share/locale/pl/LC_MESSAGES/shotwell-extras.mo
+share/locale/pl/LC_MESSAGES/shotwell.mo
+share/locale/pt/LC_MESSAGES/shotwell-extras.mo
+share/locale/pt/LC_MESSAGES/shotwell.mo
+share/locale/pt_BR/LC_MESSAGES/shotwell-extras.mo
+share/locale/pt_BR/LC_MESSAGES/shotwell.mo
+share/locale/ro/LC_MESSAGES/shotwell-extras.mo
+share/locale/ro/LC_MESSAGES/shotwell.mo
+share/locale/ru/LC_MESSAGES/shotwell-extras.mo
+share/locale/ru/LC_MESSAGES/shotwell.mo
+share/locale/sk/LC_MESSAGES/shotwell-extras.mo
+share/locale/sk/LC_MESSAGES/shotwell.mo
+share/locale/sl/LC_MESSAGES/shotwell-extras.mo
+share/locale/sl/LC_MESSAGES/shotwell.mo
+share/locale/sr/LC_MESSAGES/shotwell-extras.mo
+share/locale/sr/LC_MESSAGES/shotwell.mo
+share/locale/sv/LC_MESSAGES/shotwell-extras.mo
+share/locale/sv/LC_MESSAGES/shotwell.mo
+share/locale/ta/LC_MESSAGES/shotwell-extras.mo
+share/locale/ta/LC_MESSAGES/shotwell.mo
+share/locale/ta_IN/LC_MESSAGES/shotwell.mo
+share/locale/te/LC_MESSAGES/shotwell-extras.mo
+share/locale/te/LC_MESSAGES/shotwell.mo
+share/locale/te_IN/LC_MESSAGES/shotwell.mo
+share/locale/th/LC_MESSAGES/shotwell-extras.mo
+share/locale/th/LC_MESSAGES/shotwell.mo
+share/locale/tr/LC_MESSAGES/shotwell-extras.mo
+share/locale/tr/LC_MESSAGES/shotwell.mo
+share/locale/uk/LC_MESSAGES/shotwell-extras.mo
+share/locale/uk/LC_MESSAGES/shotwell.mo
+share/locale/vi/LC_MESSAGES/shotwell-extras.mo
+share/locale/vi/LC_MESSAGES/shotwell.mo
+share/locale/zh_CN/LC_MESSAGES/shotwell-extras.mo
+share/locale/zh_CN/LC_MESSAGES/shotwell.mo
+share/locale/zh_TW/LC_MESSAGES/shotwell-extras.mo
+share/locale/zh_TW/LC_MESSAGES/shotwell.mo
+share/shotwell/icons/all-rejected.png
+share/shotwell/icons/crop-pivot-reticle.png
+share/shotwell/icons/crop.svg
+share/shotwell/icons/drag_nub.png
+share/shotwell/icons/enhance.png
+share/shotwell/icons/filter-flagged.png
+share/shotwell/icons/filter-photos.png
+share/shotwell/icons/filter-raw.png
+share/shotwell/icons/filter-videos.png
+share/shotwell/icons/five-star-filter.svg
+share/shotwell/icons/five-stars.svg
+share/shotwell/icons/flag-page.png
+share/shotwell/icons/flag-trinket.png
+share/shotwell/icons/four-star-filter-plus.svg
+share/shotwell/icons/four-stars.svg
+share/shotwell/icons/generic-plugin.png
+share/shotwell/icons/image-adjust.svg
+share/shotwell/icons/import-all.png
+share/shotwell/icons/import.svg
+share/shotwell/icons/make-primary.svg
+share/shotwell/icons/merge.svg
+share/shotwell/icons/multiple-events.png
+share/shotwell/icons/multiple-tags.png
+share/shotwell/icons/noninterpretable-video.png
+share/shotwell/icons/one-event.png
+share/shotwell/icons/one-star-filter-plus.svg
+share/shotwell/icons/one-star.svg
+share/shotwell/icons/one-tag.png
+share/shotwell/icons/pin-toolbar.svg
+share/shotwell/icons/publish.png
+share/shotwell/icons/redeye.png
+share/shotwell/icons/rejected.svg
+share/shotwell/icons/shotwell-16.svg
+share/shotwell/icons/shotwell-24.svg
+share/shotwell/icons/shotwell-street.jpg
+share/shotwell/icons/shotwell.ico
+share/shotwell/icons/shotwell.svg
+share/shotwell/icons/slideshow-extension-point.png
+share/shotwell/icons/sprocket.png
+share/shotwell/icons/straighten.svg
+share/shotwell/icons/three-star-filter-plus.svg
+share/shotwell/icons/three-stars.svg
+share/shotwell/icons/two-star-filter-plus.svg
+share/shotwell/icons/two-stars.svg
+share/shotwell/icons/videos-page.png
+share/shotwell/icons/zoom-in.png
+share/shotwell/icons/zoom-out.png
+share/shotwell/ui/collection.ui
+share/shotwell/ui/direct.ui
+share/shotwell/ui/direct_context.ui
+share/shotwell/ui/event.ui
+share/shotwell/ui/events_directory.ui
+share/shotwell/ui/fullscreen.ui
+share/shotwell/ui/import.ui
+share/shotwell/ui/import_queue.ui
+share/shotwell/ui/media.ui
+share/shotwell/ui/offline.ui
+share/shotwell/ui/photo.ui
+share/shotwell/ui/photo_context.ui
+share/shotwell/ui/savedsearch.ui
+share/shotwell/ui/search_bar.ui
+share/shotwell/ui/search_sidebar_context.ui
+share/shotwell/ui/set_background_dialog.glade
+share/shotwell/ui/shotwell.glade
+share/shotwell/ui/shotwell.xml
+share/shotwell/ui/sidebar_default_context.ui
+share/shotwell/ui/tag_sidebar_context.ui
+share/shotwell/ui/tags.ui
+share/shotwell/ui/top.ui
+share/shotwell/ui/trash.ui
diff --git a/graphics/shotwell-gtk3/distinfo b/graphics/shotwell-gtk3/distinfo
new file mode 100644
index 00000000000..1fd15f6660b
--- /dev/null
+++ b/graphics/shotwell-gtk3/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2012/04/11 11:48:30 drochner Exp $
+
+SHA1 (shotwell-0.12.1.tar.bz2) = 46182e51d0e478b028aecab47958bb2d50a68fd3
+RMD160 (shotwell-0.12.1.tar.bz2) = 059b27009d260982140d8240360a23171c06b5f3
+Size (shotwell-0.12.1.tar.bz2) = 1625242 bytes
+SHA1 (patch-aa) = 91759c3ac9541e22e48d21e20bf906acf526c5ce
+SHA1 (patch-ab) = e4951475348523f407fe4960fcee861e8cbc29ed
diff --git a/graphics/shotwell-gtk3/patches/patch-aa b/graphics/shotwell-gtk3/patches/patch-aa
new file mode 100644
index 00000000000..8eda524ff3b
--- /dev/null
+++ b/graphics/shotwell-gtk3/patches/patch-aa
@@ -0,0 +1,67 @@
+$NetBSD: patch-aa,v 1.1.1.1 2012/04/11 11:48:30 drochner Exp $
+
+--- Makefile.orig 2012-03-28 22:35:57.000000000 +0000
++++ Makefile
+@@ -280,7 +280,6 @@ EXT_PKGS = \
+ gstreamer-base-0.10 \
+ gstreamer-pbutils-0.10 \
+ gtk+-3.0 \
+- gudev-1.0 \
+ libexif \
+ libgphoto2 \
+ libsoup-2.4 \
+@@ -316,7 +315,6 @@ EXT_PKG_VERSIONS = \
+ gstreamer-plugins-base-0.10 >= 0.10.32 \
+ gstreamer-pbutils-0.10 >= 0.10.32 \
+ gtk+-3.0 >= 3.0.11 \
+- gudev-1.0 >= 145 \
+ libexif >= 0.6.16 \
+ libgphoto2 >= 2.4.2 \
+ libsoup-2.4 >= 2.26.0 \
+@@ -440,7 +438,7 @@ CFLAGS += -DG_UDEV_API_IS_SUBJECT_TO_CHA
+ # if not available.
+ LIBRAW_CONFIG=./libraw-config
+
+-define check_valac_version
++define xcheck_valac_version
+ @ ./chkver min $(VALAC_VERSION) $(MIN_VALAC_VERSION) || ( echo 'Shotwell requires Vala compiler $(MIN_VALAC_VERSION) or greater. You are running' $(VALAC_VERSION) '\b.'; exit 1 )
+ $(if $(MAX_VALAC_VERSION),\
+ @ ./chkver max $(VALAC_VERSION) $(MAX_VALAC_VERSION) || ( echo 'Shotwell cannot be built by Vala compiler $(MAX_VALAC_VERSION) or greater. You are running' $(VALAC_VERSION) '\b.'; exit 1 ),)
+@@ -666,7 +664,6 @@ $(UNITIZE_INITS) $(UNITIZE_ENTRIES): $(U
+
+ # EXPANDED_SRC_FILES includes UNITIZE_INITS and UNITIZE_ENTRY
+ $(VALA_STAMP): $(EXPANDED_SRC_FILES) $(EXPANDED_VAPI_FILES) $(EXPANDED_SRC_HEADER_FILES)
+- $(call check_valac_version)
+ @echo Compiling Vala code...
+ @mkdir -p $(BUILD_DIR)
+ @$(VALAC) --ccode --directory=$(BUILD_DIR) --basedir=src \
+@@ -683,10 +680,10 @@ $(EXPANDED_C_FILES): $(VALA_STAMP)
+ @
+
+ $(EXPANDED_OBJ_FILES): %.o: %.c $(CONFIG_IN) Makefile
+- $(CC) -c $(VALA_CFLAGS) `$(LIBRAW_CONFIG) --cflags` $(CFLAGS) -o $@ $<
++ $(CC) -c $(VALA_CFLAGS) $(CFLAGS) `pkg-config --cflags libraw` -o $@ $<
+
+ $(PROGRAM): $(EXPANDED_OBJ_FILES) $(RESOURCES) $(LANG_STAMP) $(THUMBNAILER_BIN)
+- $(CC) $(EXPANDED_OBJ_FILES) $(CFLAGS) $(LDFLAGS) $(RESOURCES) $(VALA_LDFLAGS) `$(LIBRAW_CONFIG) --libs` $(EXPORT_FLAGS) -o $@
++ $(CC) $(EXPANDED_OBJ_FILES) $(CFLAGS) $(RESOURCES) $(VALA_LDFLAGS) `pkg-config --libs libraw` $(EXPORT_FLAGS) -o $@
+ glib-compile-schemas misc
+
+ $(THUMBNAILER_BIN): $(EXPANDED_THUMBNAILER_SRC_FILES)
+@@ -697,7 +694,6 @@ $(PLUGINS_SO) $(EXTRA_PLUGINS_SO): $(PLU
+
+ .PHONY: $(PLUGINS_DIR)
+ $(PLUGINS_DIR): $(PLUGIN_VAPI) $(PLUGIN_HEADER) $(PLUGIN_DEPS)
+- $(call check_valac_version)
+ @$(MAKE) --directory=$@ PLUGINS_VERSION="$(VERSION)" USER_VALAFLAGS="$(USER_VALAFLAGS)" \
+ PLUGIN_CFLAGS="$(PLUGIN_CFLAGS)"
+
+@@ -715,7 +711,7 @@ docs:
+ glade: lib$(PROGRAM).so
+
+ lib$(PROGRAM).so: $(EXPANDED_OBJ_FILES) $(RESOURCES) $(LANG_STAMP)
+- $(CC) $(EXPANDED_OBJ_FILES) $(CFLAGS) $(LDFLAGS) $(RESOURCES) $(VALA_LDFLAGS) `$(LIBRAW_CONFIG) --libs` $(EXPORT_FLAGS) -shared -o $@
++ $(CC) $(EXPANDED_OBJ_FILES) $(CFLAGS) $(RESOURCES) $(VALA_LDFLAGS) $(LDFLAGS) `pkg-config --libs libraw` $(EXPORT_FLAGS) -shared -o $@
+
+ .PHONY: pkgcheck
+ pkgcheck:
diff --git a/graphics/shotwell-gtk3/patches/patch-ab b/graphics/shotwell-gtk3/patches/patch-ab
new file mode 100644
index 00000000000..b9fb10dfb0b
--- /dev/null
+++ b/graphics/shotwell-gtk3/patches/patch-ab
@@ -0,0 +1,116 @@
+$NetBSD: patch-ab,v 1.1.1.1 2012/04/11 11:48:30 drochner Exp $
+
+--- src/camera/CameraTable.vala.orig 2012-03-28 22:35:57.000000000 +0000
++++ src/camera/CameraTable.vala
+@@ -26,7 +26,6 @@ public class CameraTable {
+
+ private static CameraTable instance = null;
+
+- private GUdev.Client client = new GUdev.Client(SUBSYSTEMS);
+ private OneShotScheduler camera_update_scheduler = null;
+ private GPhoto.Context null_context = new GPhoto.Context();
+ private GPhoto.CameraAbilitiesList abilities_list;
+@@ -44,7 +43,6 @@ public class CameraTable {
+ on_update_cameras);
+
+ // listen for interesting events on the specified subsystems
+- client.uevent.connect(on_udev_event);
+ volume_monitor = VolumeMonitor.get();
+ volume_monitor.volume_changed.connect(on_volume_changed);
+ volume_monitor.volume_added.connect(on_volume_changed);
+@@ -105,31 +103,6 @@ public class CameraTable {
+ private string[] get_all_usb_cameras() {
+ string[] cameras = new string[0];
+
+- GLib.List<GUdev.Device> device_list = client.query_by_subsystem(null);
+- foreach (GUdev.Device device in device_list) {
+- string device_file = device.get_device_file();
+- if(
+- // only keep devices that have a non-null device file and that
+- // have both the ID_GPHOTO2 and GPHOTO2_DRIVER properties set
+- (device_file != null) &&
+- (device.has_property("ID_GPHOTO2")) &&
+- (device.has_property("GPHOTO2_DRIVER"))
+- ) {
+- int camera_bus, camera_device;
+- // extract the bus and device IDs from the device file string
+- // TODO: is it safe to parse the absolute path or should we be
+- // smarter and use a regex to only pick up the end of the path?
+- if (device_file.scanf("/dev/bus/usb/%d/%d", out camera_bus, out camera_device) < 2) {
+- critical("get_all_usb_cameras: Failed to scanf device file %s", device_file);
+-
+- continue;
+- }
+- string camera = "usb:%.3d,%.3d".printf(camera_bus, camera_device);
+- debug("USB camera detected at %s", camera);
+- cameras += camera;
+- }
+- }
+-
+ return cameras;
+ }
+
+@@ -206,24 +179,6 @@ public class CameraTable {
+ "/dev/bus/usb/%s".printf(port.substring(4).replace(",", "/")) : null;
+ }
+
+- private string? get_name_for_uuid(string uuid) {
+- foreach (Volume volume in volume_monitor.get_volumes()) {
+- if (volume.get_identifier(VolumeIdentifier.UUID) == uuid) {
+- return volume.get_name();
+- }
+- }
+- return null;
+- }
+-
+- private GLib.Icon? get_icon_for_uuid(string uuid) {
+- foreach (Volume volume in volume_monitor.get_volumes()) {
+- if (volume.get_identifier(VolumeIdentifier.UUID) == uuid) {
+- return volume.get_icon();
+- }
+- }
+- return null;
+- }
+-
+ private void update_camera_table() throws GPhotoError {
+ // need to do this because virtual ports come and go in the USB world (and probably others)
+ GPhoto.PortInfoList port_info_list;
+@@ -313,23 +268,6 @@ public class CameraTable {
+ continue;
+ }
+
+- // Get display name for camera.
+- string path = get_port_path(port);
+- if (null != path) {
+- GUdev.Device device = client.query_by_device_file(path);
+- string serial = device.get_property("ID_SERIAL_SHORT");
+- if (null != serial) {
+- // Try to get the name and icon.
+- display_name = get_name_for_uuid(serial);
+- icon = get_icon_for_uuid(serial);
+- }
+- if (null == display_name) {
+- display_name = device.get_sysfs_attr("product");
+- }
+- if (null == display_name) {
+- display_name = device.get_property("ID_MODEL");
+- }
+- }
+ if (null == display_name) {
+ // Default to GPhoto detected name.
+ display_name = name;
+@@ -367,14 +305,6 @@ public class CameraTable {
+ }
+ }
+
+- private void on_udev_event(string action, GUdev.Device device) {
+- debug("udev event: %s on %s", action, device.get_name());
+-
+- // Device add/removes often arrive in pairs; this allows for a single
+- // update to occur when they come in all at once
+- camera_update_scheduler.after_timeout(UPDATE_DELAY_MSEC, true);
+- }
+-
+ public void on_volume_changed(Volume volume) {
+ camera_update_scheduler.after_timeout(UPDATE_DELAY_MSEC, true);
+ }