sylpheed: bump version, fix build
authorPeter Korsgaard <jacmet@sunsite.dk>
Fri, 25 Feb 2011 10:55:53 +0000 (11:55 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 25 Feb 2011 10:55:53 +0000 (11:55 +0100)
The old sylpheed version no longer built with our libgtk2 version, so
move to the latest stable release. At the same time add optional openssl
support.

The sylpheed build system adds -I$includedir to the CFLAGS, so ensure
it points at our staging rather than the host headers.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/sylpheed/sylpheed-2.4.8-makefile.patch [deleted file]
package/sylpheed/sylpheed.mk

diff --git a/package/sylpheed/sylpheed-2.4.8-makefile.patch b/package/sylpheed/sylpheed-2.4.8-makefile.patch
deleted file mode 100644 (file)
index 0710207..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
---- a/libsylph/Makefile.in     2007-12-20 23:48:26.000000000 -0500
-+++ b/libsylph/Makefile.in     2008-02-14 16:34:17.000000000 -0500
-@@ -143,7 +143,7 @@ manualdir = @manualdir@
- AM_CPPFLAGS =         -DG_LOG_DOMAIN=\"LibSylph\"     -DSYSCONFDIR=\""$(sysconfdir)"\"
--INCLUDES = $(GLIB_CFLAGS) -I$(top_srcdir) -I$(includedir)
-+INCLUDES = $(GLIB_CFLAGS) -I$(top_srcdir) 
- #lib_LTLIBRARIES = libsylph.la
- noinst_LTLIBRARIES = libsylph.la
-
---- a/src/Makefile.in  2007-12-20 23:48:26.000000000 -0500
-+++ b/src/Makefile.in  2008-02-14 16:47:46.000000000 -0500
-@@ -153,7 +153,7 @@ BUILT_SOURCES =    quote_fmt_lex.c         quote
- EXTRA_DIST =          quote_fmt_parse.h       sylpheed-marshal.list   version.h.in    sylpheed.rc.in
--INCLUDES =    -DG_LOG_DOMAIN=\"Sylpheed\"     $(GTK_CFLAGS)   $(GDK_PIXBUF_CFLAGS)    $(GPGME_CFLAGS)         -I$(includedir)         -I$(top_srcdir)/libsylph
-+INCLUDES =    -DG_LOG_DOMAIN=\"Sylpheed\"     $(GTK_CFLAGS)   $(GDK_PIXBUF_CFLAGS)    $(GPGME_CFLAGS)         -I$(top_srcdir)/libsylph
- @HAVE_WINDRES_TRUE@SYLPHEED_RES = sylpheed.res
- @HAVE_WINDRES_FALSE@SYLPHEED_RES = 
index f1e4fa410e4dd5a0e82d1ac582bb525cb82e0cda..dbd2408f182e11cc1d906ef803bde26d17123c7d 100644 (file)
@@ -3,16 +3,22 @@
 # sylpheed
 #
 #############################################################
-SYLPHEED_VERSION = 2.4.8
+SYLPHEED_VERSION_MAJOR = 3.1
+SYLPHEED_VERSION_MINOR = 0
+SYLPHEED_VERSION = $(SYLPHEED_VERSION_MAJOR).$(SYLPHEED_VERSION_MINOR)
 SYLPHEED_SOURCE = sylpheed-$(SYLPHEED_VERSION).tar.bz2
-SYLPHEED_SITE = http://sylpheed.sraoss.jp/sylpheed/v2.4
-SYLPHEED_AUTORECONF = NO
-SYLPHEED_INSTALL_STAGING = NO
-SYLPHEED_INSTALL_TARGET = YES
+SYLPHEED_SITE = http://sylpheed.sraoss.jp/sylpheed/v$(SYLPHEED_VERSION_MAJOR)
 
-SYLPHEED_CONF_OPT = --disable-gtkspell --program-prefix=""
+SYLPHEED_CONF_OPT = --disable-gtkspell --program-prefix="" \
+                    --includedir=$(STAGING_DIR)/usr/include
 
 SYLPHEED_DEPENDENCIES = host-pkg-config libgtk2
 
-$(eval $(call AUTOTARGETS,package,sylpheed))
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+SYLPHEED_DEPENDENCIES += openssl
+SYLPHEED_CONF_OPT += --enable-ssl
+else
+SYLPHEED_CONF_OPT += --disable-ssl
+endif
 
+$(eval $(call AUTOTARGETS,package,sylpheed))