mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
New port shotwell version 0.6.1: Open source photo manager for
GNOME. Reviewed by: kwm Thanks to: kwm for "files/patch-Makefile"
This commit is contained in:
parent
be3d64912f
commit
42c4288c3d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=260709
@ -879,6 +879,7 @@
|
||||
SUBDIR += separate
|
||||
SUBDIR += sharpconstruct
|
||||
SUBDIR += shim
|
||||
SUBDIR += shotwell
|
||||
SUBDIR += show
|
||||
SUBDIR += showimg
|
||||
SUBDIR += silgraphite
|
||||
|
71
graphics/shotwell/Makefile
Normal file
71
graphics/shotwell/Makefile
Normal file
@ -0,0 +1,71 @@
|
||||
# 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$
|
||||
#
|
||||
|
||||
PORTNAME= shotwell
|
||||
PORTVERSION= 0.6.1
|
||||
CATEGORIES= graphics gnome
|
||||
MASTER_SITES= http://www.yorba.org/download/shotwell/${PORTVERSION:R}/
|
||||
|
||||
MAINTAINER= lioux@FreeBSD.org
|
||||
COMMENT= Open source photo manager for GNOME
|
||||
|
||||
BUILD_DEPENDS= ${LOCALBASE}/lib/libraw.a:${PORTSDIR}/graphics/libraw \
|
||||
vala>=0.8.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 \
|
||||
xml2.5:${PORTSDIR}/textproc/libxml2 \
|
||||
webkit:${PORTSDIR}/www/webkit-gtk2 \
|
||||
unique-1.0.2:${PORTSDIR}/x11-toolkits/unique
|
||||
|
||||
USE_BZIP2= yes
|
||||
USE_GETTEXT= yes
|
||||
USE_GNOME= gconf2 gtk20 desktopfileutils
|
||||
USE_GMAKE= yes
|
||||
HAS_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --prefix=${PREFIX} \
|
||||
--disable-icon-update \
|
||||
--with-gconf-schema-file-dir=${PREFIX}/etc/gconf/schemas \
|
||||
--disable-schemas-install
|
||||
INSTALLS_ICONS= yes
|
||||
|
||||
GCONF_SCHEMAS= shotwell.schemas
|
||||
PORTDATA= *
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -E \
|
||||
-e 's|/bin/bash|${SH}|' \
|
||||
${WRKSRC}/${CONFIGURE_SCRIPT} \
|
||||
${WRKSRC}/libraw-config \
|
||||
${WRKSRC}/minver
|
||||
|
||||
post-configure:
|
||||
@${REINPLACE_CMD} -E \
|
||||
-e 's|share/shotwell|${DATADIR_REL}|' \
|
||||
${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
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
# graphics/libraw
|
||||
.if exists(${LOCALBASE}/lib/libraw.so.0)
|
||||
LIB_DEPENDS+= libraw.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>
|
3
graphics/shotwell/distinfo
Normal file
3
graphics/shotwell/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (shotwell-0.6.1.tar.bz2) = 440436e8f1479a5da2599065705b0ca4
|
||||
SHA256 (shotwell-0.6.1.tar.bz2) = 01314373d35f05bcdc223eb06a0f21e76ae3e3e1d6628822816a147db1d534dc
|
||||
SIZE (shotwell-0.6.1.tar.bz2) = 681013
|
140
graphics/shotwell/files/patch-Makefile
Normal file
140
graphics/shotwell/files/patch-Makefile
Normal file
@ -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 \
|
14
graphics/shotwell/files/patch-src__main.vala
Normal file
14
graphics/shotwell/files/patch-src__main.vala
Normal file
@ -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);
|
6
graphics/shotwell/pkg-descr
Normal file
6
graphics/shotwell/pkg-descr
Normal file
@ -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/
|
41
graphics/shotwell/pkg-plist
Normal file
41
graphics/shotwell/pkg-plist
Normal file
@ -0,0 +1,41 @@
|
||||
bin/shotwell
|
||||
share/locale/ar/LC_MESSAGES/shotwell.mo
|
||||
share/locale/bg/LC_MESSAGES/shotwell.mo
|
||||
share/locale/bn/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/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/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/uk/LC_MESSAGES/shotwell.mo
|
||||
share/locale/zh_CN/LC_MESSAGES/shotwell.mo
|
||||
share/locale/zh_TW/LC_MESSAGES/shotwell.mo
|
||||
share/locale/ast/LC_MESSAGES/shotwell.mo
|
||||
share/icons/hicolor/scalable/apps/shotwell.svg
|
||||
share/applications/shotwell.desktop
|
||||
share/applications/shotwell-viewer.desktop
|
||||
@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true
|
||||
@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true
|
Loading…
Reference in New Issue
Block a user