aboutsummaryrefslogtreecommitdiff
path: root/graphics/shotwell/files
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/shotwell/files')
-rw-r--r--graphics/shotwell/files/patch-Makefile140
-rw-r--r--graphics/shotwell/files/patch-src__main.vala14
2 files changed, 154 insertions, 0 deletions
diff --git a/graphics/shotwell/files/patch-Makefile b/graphics/shotwell/files/patch-Makefile
new file mode 100644
index 000000000000..8ed9d2c60f61
--- /dev/null
+++ b/graphics/shotwell/files/patch-Makefile
@@ -0,0 +1,140 @@
+--- Makefile.orig 2010-06-30 15:44:06.000000000 -0300
++++ Makefile 2010-09-07 10:51:40.000000000 -0300
+@@ -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
+@@ -115,10 +123,13 @@
+ PngSupport.vala \
+ PhotoExporter.vala
+
++# this should be ifndef LINUX && ifndef FreeBSD
+ ifndef LINUX
++ifndef FreeBSD
+ SRC_FILES += \
+ GConf.vala
+ endif
++endif
+
+ VAPI_FILES = \
+ libexif.vapi \
+@@ -223,6 +234,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 = \
+@@ -247,6 +270,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
+@@ -288,6 +323,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
+@@ -324,6 +363,11 @@
+ LIBRAW_CONFIG=./libraw-config
+ endif
+
++ifdef FreeBSD
++LIBRAW_CONFIG=./libraw-config
++endif
++
++
+ ifdef WINDOWS
+ LIBRAW_CONFIG=./libraw-config --windows
+ endif
+@@ -413,9 +457,21 @@
+ $(INSTALL_DATA) apport/shotwell.py $(DESTDIR)$(PREFIX)/share/apport/package-hooks
+ 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
++ 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)
+@@ -436,6 +492,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 000000000000..099b9e726b83
--- /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);