eog stable port information

Package: eog
Version: 2.28.2
Revision: 2

Depends: <<
atk1-shlibs (>= 1.28.0-1),
cairo-shlibs (>= 1.8.8-3),
dbus (>= 1.2.1-1),
dbus-glib1.2-shlibs,
dbus1.3-shlibs,
dpkg-base-files,
fontconfig2-shlibs (>= 2.8.0-4),
freetype219-shlibs (>= 2.3.12-1),
gconf2 (>= 2.28.0-1),
gconf2-shlibs (>= 2.28.0-1),
glib2-shlibs (>= 2.22.0-1),
gnome-desktop2.11-shlibs (>= 2.28.0-1),
gnome-icon-theme (>= 2.28.0-1),
gtk+2 (>= 2.18.0-1),
gtk+2-shlibs (>= 2.18.0-1),
lcms-shlibs,
libexif12-shlibs,
libgettext8-shlibs,
libiconv,
libjpeg8-shlibs,
librsvg2-gtk (>= 2.26.0-2),
libxml2-shlibs (>= 2.6.30-1),
pango1-xft2-ft219-shlibs (>= 1.24.5-4),
rarian-compat,
shared-mime-info (>= 0.51-1),
startup-notification-shlibs,
x11-shlibs
<<
BuildDepends: <<
atk1 (>= 1.28.0-1),
autoconf2.6,
automake1.11,
cairo (>= 1.8.8-3),
dbus-glib1.2-dev,
dbus1.3-dev,
fink (>= 0.24.12-1),
fink-package-precedence,
fontconfig2-dev (>= 2.8.0-4),
freetype219 (>= 2.3.12-1),
gconf2-dev (>= 2.28.0-1),
gettext-bin,
gettext-tools (>= 0.17),
glib2-dev (>= 2.22.0-1),
glitz,
gnome-desktop2.11-dev (>= 2.28.0-1),
gnome-doc-utils (>= 0.18.1-1),
gtk+2-dev (>= 2.18.0-1),
gtk-doc (>= 1.13-5),
intltool40,
lcms,
libexif12 (>= 0.6.16-1),
libgettext8-dev,
libiconv-dev,
libjpeg8,
librsvg2 (>= 2.26.0-2),
libtool2,
libxml2 (>= 2.6.30-1),
pango1-xft2-ft219-dev (>= 1.24.5-4),
pixman (>= 0.16.0-1),
pkgconfig (>= 0.23),
startup-notification-dev,
x11-dev
<<
Source: mirror:gnome:sources/%n/2.28/%n-%v.tar.bz2
Source-MD5: ee5fd7f3cdd37467cb86052a858757c3
PatchFile: %n.patch
PatchFile-MD5: 3624b70a5f35b2cb8b2d05857d60b755
PatchScript: <<
%{default_script}
<<
SetCPPFLAGS: -I%p/lib/fontconfig2/include
SetLDFLAGS: -L%p/lib/fontconfig2/lib
SetCFLAGS: -Os -pipe
ConfigureParams: --libexecdir=%p/lib/X%n --mandir=%p/share/man --enable-dependency-tracking --disable-scrollkeeper --disable-schemas-install PKG_CONFIG_PATH="%p/lib/glib-2.0/pkgconfig-strict:%p/lib/fontconfig2/lib/pkgconfig:$PKG_CONFIG_PATH" --without-xmp --disable-python --disable-static --disable-silent-rules
CompileScript: <<
autoreconf -f -i
./configure %c
make
fink-package-precedence .
<<
InstallScript: <<
make -j1 install DESTDIR="%d"
# mkdir -p %i/lib/eog/plugins
<<
PostInstScript: <<
if [ configure = "$1" ]; then
scrollkeeper-update -q
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-install-rule %p/etc/gconf/schemas/eog.schemas >/dev/null
fi
gtk-update-icon-cache -f -t %p/share/icons/hicolor || :
<<
PostRmScript: <<
if [ upgrade != "$1" ]; then
scrollkeeper-update -q
fi
gtk-update-icon-cache -f -t %p/share/icons/hicolor || :
<<
ConfFiles: %p/etc/gconf/schemas/eog.schemas
DocFiles: AUTHORS COPYING ChangeLog po/ChangeLog:ChangeLog.po HACKING MAINTAINERS NEWS README THANKS TODO
Description: Eye Of Gnome image viewer
DescDetail: <<
This is the Eye of Gnome, an image viewer program. It is meant to be
a fast and functional image viewer as well as an image cataloging
program.
<<
DescPort: <<
Added librsvg2-gtk as Depends to be able to open svg files

Make sure local -I come first by passing via correct automake
variable.

Recent glib doesn't publish -lintl, so pass it directly.

Also direct libgthread use (formerly inherited via .la?).
See: https://bugzilla.gnome.org/show_bug.cgi?id=609184

Fix x11 detection/linking. See:
https://bugzilla.gnome.org/show_bug.cgi?id=609184#c7
(ajusted for *_CPPFLAGS rather than *_CFLAGS)
<<
DescPackaging: <<
Disable xmp because we don't have its support available

Disable python bindings. If someone wants them, would roll a
separate -pyXX package set.

# Create plugins dir so that third-party pkgs can use it easily.
We have plugins now, so dir is created automatically
<<
License: GPL
Maintainer: The Gnome Core Team
Homepage: http://www.gnome.org/

eog stable port .patch

diff -Nurd -x'*~' eog-2.28.2.orig/bindings/python/Makefile.am eog-2.28.2/bindings/python/Makefile.am
--- eog-2.28.2.orig/bindings/python/Makefile.am 2009-11-10 13:10:59.000000000 -0500
+++ eog-2.28.2/bindings/python/Makefile.am 2010-03-02 00:48:40.000000000 -0500
@@ -13,7 +13,7 @@
$(PYTHON_EXTRA_LIBS) \
$(PYGTK_LIBS)

-eog_la_CFLAGS = \
+eog_la_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_builddir) \
-I$(top_srcdir)/src \
diff -Nurd -x'*~' eog-2.28.2.orig/configure.ac eog-2.28.2/configure.ac
--- eog-2.28.2.orig/configure.ac 2009-12-16 15:53:29.000000000 -0500
+++ eog-2.28.2/configure.ac 2010-03-02 01:18:40.000000000 -0500
@@ -96,6 +96,7 @@
EOG_MODULES="gtk+-2.0 >= $GTK_REQUIRED \
glib-2.0 >= $GLIB_REQUIRED \
gio-2.0 >= $GLIB_REQUIRED \
+ gthread-2.0 >= $GLIB_REQUIRED \
gnome-desktop-2.0 >= $GNOME_DESKTOP_REQUIRED \
gdk-pixbuf-2.0 >= $GDKPIXBUF_REQUIRED \
gconf-2.0 >= $GCONF_REQUIRED \
@@ -153,6 +154,7 @@
EOG_MODULES="$EOG_MODULES lcms"
fi

+AM_CONDITIONAL([HAVE_LCMS], [test "x$have_lcms" = "xyes"])

# *********************
# Exempi (optional)
@@ -261,9 +263,33 @@
# ****************

PKG_CHECK_MODULES(EOG, $EOG_MODULES)
+EOG_LIBS="$EOG_LIBS $INTLLIBS"
AC_SUBST(EOG_CFLAGS)
AC_SUBST(EOG_LIBS)

+# *******************************************************
+# libX11 (required for TotemScrSaver and Color Profiling)
+# *******************************************************
+
+# Check GDK rendering target
+gdk_target=`$PKG_CONFIG --variable=target gdk-2.0`
+
+if test "x$have_lcms" = "xyes" || test "$gdk_target" = "x11"; then
+ PKG_CHECK_MODULES(X11, [x11], have_x11=yes, have_x11=no)
+
+ if test "x$have_x11" != "xyes"; then
+ # Fallback for X11 releases without .pc-files
+ AC_PATH_XTRA
+ if test x$no_x = xyes ; then
+ AC_MSG_ERROR([X development libraries (libX11) not found])
+ else
+ X11_LIBS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
+ AC_SUBST(X11_LIBS)
+ have_x11=yes
+ fi
+ fi
+fi
+
# *****
# GConf
# *****
diff -Nurd -x'*~' eog-2.28.2.orig/cut-n-paste/totem-screensaver/Makefile.am eog-2.28.2/cut-n-paste/totem-screensaver/Makefile.am
--- eog-2.28.2.orig/cut-n-paste/totem-screensaver/Makefile.am 2009-08-11 06:49:55.000000000 -0400
+++ eog-2.28.2/cut-n-paste/totem-screensaver/Makefile.am 2010-03-02 00:57:29.000000000 -0500
@@ -4,9 +4,12 @@
totem-scrsaver.h \
totem-scrsaver.c

-libtotemscrsaver_la_CFLAGS = \
+libtotemscrsaver_la_LIBADD = $(X11_LIBS)
+
+libtotemscrsaver_la_CPPFLAGS = \
-I$(top_srcdir)/src \
$(EOG_CFLAGS) \
+ $(X11_CFLAGS) \
$(WARN_CFLAGS)

-include $(top_srcdir)/git.mk
diff -Nurd -x'*~' eog-2.28.2.orig/src/Makefile.am eog-2.28.2/src/Makefile.am
--- eog-2.28.2.orig/src/Makefile.am 2009-12-16 15:53:29.000000000 -0500
+++ eog-2.28.2/src/Makefile.am 2010-03-02 01:20:12.000000000 -0500
@@ -142,7 +142,7 @@
eog-exif-details.c
endif HAVE_EXEMPI

-libeog_la_CFLAGS = \
+libeog_la_CPPFLAGS = \
-I$(top_srcdir)/jpegutils \
-I$(top_srcdir)/cut-n-paste/toolbar-editor \
-I$(top_srcdir)/cut-n-paste/totem-screensaver \
@@ -158,8 +158,16 @@
libeog_la_LIBADD = \
$(EOG_LIBS)

+if HAVE_LCMS
+libeog_la_CPPFLAGS += \
+ $(X11_CFLAGS)
+
+libeog_la_LIBADD += \
+ $(X11_LIBS)
+endif
+
if ENABLE_PYTHON
-libeog_la_CFLAGS += \
+libeog_la_CPPFLAGS += \
$(NO_STRICT_ALIASING_CFLAGS) \
$(PYGTK_CFLAGS) \
$(PYTHON_CFLAGS) \
@@ -173,7 +181,7 @@

eog_SOURCES = main.c

-eog_CFLAGS = \
+eog_CPPFLAGS = \
-I$(top_srcdir)/cut-n-paste/toolbar-editor \
-I$(top_srcdir)/cut-n-paste/totem-screensaver \
$(EOG_CFLAGS) \
@@ -183,7 +191,6 @@
eog_LDADD = \
libeog.la \
$(EOG_LIBS) \
- $(X_LIBS) \
$(LIBJPEG) \
$(toolbar_LIB) \
$(screensaver_LIB) \

eog _unstable_ port .patch