pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/w3m * For w3m-img, imagelib is not optional, but r...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d33f48007e5e
branches:  trunk
changeset: 551337:d33f48007e5e
user:      obache <obache%pkgsrc.org@localhost>
date:      Sat Dec 13 08:52:13 2008 +0000

description:
* For w3m-img, imagelib is not optional, but required.
* Add support of gtk2 image lib.
* Allow to enable imagelib support for www/w3m.

diffstat:

 www/w3m/distinfo         |   4 +++-
 www/w3m/options.mk       |  21 ++++++++++++++-------
 www/w3m/patches/patch-aa |  15 +++++++++++++++
 www/w3m/patches/patch-ak |  15 +++++++++++++++
 4 files changed, 47 insertions(+), 8 deletions(-)

diffs (100 lines):

diff -r f3f5a5bd487e -r d33f48007e5e www/w3m/distinfo
--- a/www/w3m/distinfo  Sat Dec 13 08:24:55 2008 +0000
+++ b/www/w3m/distinfo  Sat Dec 13 08:52:13 2008 +0000
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.19 2008/12/13 08:24:55 obache Exp $
+$NetBSD: distinfo,v 1.20 2008/12/13 08:52:13 obache Exp $
 
 SHA1 (w3m-0.5.2.tar.gz) = 484522547ae6dbb342d3858a2a53a65451e273f9
 RMD160 (w3m-0.5.2.tar.gz) = 09ce72d8ef5e621a2e49496b63e22f2773edbe79
 Size (w3m-0.5.2.tar.gz) = 1906812 bytes
+SHA1 (patch-aa) = 2de78a6db9bd483416895b393935ccadab879932
 SHA1 (patch-ab) = 2d60d7a2946f13a185591c0b927cf0f8b5ea351b
+SHA1 (patch-ak) = ac0ee99d5ab49c431cfa496d0d2d509efd6b06fa
diff -r f3f5a5bd487e -r d33f48007e5e www/w3m/options.mk
--- a/www/w3m/options.mk        Sat Dec 13 08:24:55 2008 +0000
+++ b/www/w3m/options.mk        Sat Dec 13 08:52:13 2008 +0000
@@ -1,15 +1,17 @@
-# $NetBSD: options.mk,v 1.8 2008/12/13 04:21:28 obache Exp $
+# $NetBSD: options.mk,v 1.9 2008/12/13 08:52:13 obache Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.w3m
 PKG_SUPPORTED_OPTIONS= inet6 w3m-lynx-key w3m-m17n w3m-unicode
 PKG_SUGGESTED_OPTIONS= w3m-m17n
 
 .if ${_W3M_USE_IMAGE} == "YES"
-PKG_OPTIONS_OPTIONAL_GROUPS=   imagelib
+PKG_OPTIONS_REQUIRED_GROUPS+=  imagelib
+PKG_SUGGESTED_OPTIONS+=                w3m-image-gdk-pixbuf
+.else
+PKG_OPTIONS_OPTIONAL_GROUPS+=  imagelib
+.endif
 PKG_OPTIONS_GROUP.imagelib=    w3m-image-gdk-pixbuf w3m-image-imlib    \
-                               w3m-image-imlib2
-PKG_SUGGESTED_OPTIONS+=                w3m-image-gdk-pixbuf
-.endif
+                               w3m-image-imlib2 w3m-image-gtk2
 
 # Memo about W3m configuration:
 #
@@ -54,7 +56,7 @@
 .endif
 
 PLIST_VARS+=           image
-.if ${_W3M_USE_IMAGE} == "YES"
+.if !empty(PKG_OPTIONS:Mw3m-image-*)
 .  for _imagelib in ${PKG_OPTIONS_GROUP.imagelib}
 .    if !empty(PKG_OPTIONS:M${_imagelib})
 _W3M_IMAGELIB=         ${_imagelib:C|^w3m-image-||}
@@ -65,7 +67,12 @@
 PLIST.image=           yes
 BUILDLINK_DEPMETHOD.libXt?=    build
 .  include "../../x11/libXt/buildlink3.mk"
-.  include "../../graphics/${_W3M_IMAGELIB}/buildlink3.mk"
+.  if empty(_W3M_IMAGELIB:Mgtk2)
+.    include "../../graphics/${_W3M_IMAGELIB}/buildlink3.mk"
+.  else
+USE_TOOLS+=    pkg-config
+.    include "../../x11/${_W3M_IMAGELIB}/buildlink3.mk"
+.  endif
 .else
 CONFIGURE_ARGS+=       --disable-image
 .endif
diff -r f3f5a5bd487e -r d33f48007e5e www/w3m/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/w3m/patches/patch-aa  Sat Dec 13 08:52:13 2008 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-aa,v 1.13 2008/12/13 08:53:27 obache Exp $
+
+PKG_CONFIG points right location in pkgsrc.
+
+--- configure.orig     2007-05-31 12:17:05.000000000 +0000
++++ configure
+@@ -5602,8 +5602,6 @@ echo "${ECHO_T}$with_imagelib" >&6; }
+      with_gtk2="yes"
+      if test x"$PKG_CONFIG" = x; then
+        PKG_CONFIG=pkg-config
+-     else
+-       PKG_CONFIG=:
+      fi;;
+    esac
+   done
diff -r f3f5a5bd487e -r d33f48007e5e www/w3m/patches/patch-ak
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/w3m/patches/patch-ak  Sat Dec 13 08:52:13 2008 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-ak,v 1.1 2008/12/13 08:52:13 obache Exp $
+
+PKG_CONFIG points right location in pkgsrc.
+
+--- acinclude.m4.orig  2006-04-07 13:21:11.000000000 +0000
++++ acinclude.m4
+@@ -652,8 +652,6 @@ AC_DEFUN([AC_W3M_IMAGE],
+      with_gtk2="yes"
+      if test x"$PKG_CONFIG" = x; then
+        PKG_CONFIG=pkg-config
+-     else
+-       PKG_CONFIG=:
+      fi;;
+    esac
+   done



Home | Main Index | Thread Index | Old Index