summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-03-27 20:44:34 +0000
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-03-27 20:44:34 +0000
commit4c36e9fba93a662c30b7f337c71ec25594c56b35 (patch)
tree9d20f06d44dfae83fa3fb09e7ca4f976037265bc
parente8178a642f8fb5d9ef633dbdc2957ce9b1bd9ccf (diff)
downloadmidipix_build-4c36e9fba93a662c30b7f337c71ec25594c56b35.tar.bz2
midipix_build-4c36e9fba93a662c30b7f337c71ec25594c56b35.tar.xz
patches/w3m-0.5.3+git20190105.local.patch: forcibly configure w/ imlib2 and X11 (via duvallj.)
-rw-r--r--patches/w3m-0.5.3+git20190105.local.patch229
1 files changed, 227 insertions, 2 deletions
diff --git a/patches/w3m-0.5.3+git20190105.local.patch b/patches/w3m-0.5.3+git20190105.local.patch
index 4f742283..14284624 100644
--- a/patches/w3m-0.5.3+git20190105.local.patch
+++ b/patches/w3m-0.5.3+git20190105.local.patch
@@ -1,6 +1,231 @@
--- w3m-0.5.3-git20190105/configure.orig 2019-01-05 08:41:27.000000000 +0000
-+++ w3m-0.5.3-git20190105/configure 2020-03-27 20:13:55.976911257 +0000
-@@ -7361,24 +7361,6 @@
++++ w3m-0.5.3-git20190105/configure 2020-03-27 20:42:51.539079131 +0000
+@@ -6798,215 +6798,20 @@
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_imagelib" >&5
+ $as_echo "$with_imagelib" >&6; }
+ with_imlib=no
+- with_imlib2=no
++ with_imlib2=yes
+ with_gdkpixbuf=no
+ with_gtk2=no
+- for imagelib in $with_imagelib
+- do
+- case "$imagelib" in
+- imlib)
+- with_imlib="yes"
+- if test x"$IMLIB_CONFIG" = x; then
+- IMLIB_CONFIG=imlib-config
+- fi;;
+- imlib2)
+- with_imlib2="yes"
+- if test x"$PKG_CONFIG" = x; then
+- PKG_CONFIG=pkg-config
+- fi
+- if test x"$IMLIB2_CONFIG" = x; then
+- IMLIB2_CONFIG=imlib2-config
+- fi;;
+- gdk-pixbuf)
+- with_gdkpixbuf="yes"
+- if test x"$GDKPIXBUF_CONFIG" = x; then
+- GDKPIXBUF_CONFIG=gdk-pixbuf-config
+- fi;;
+- gtk2)
+- with_gtk2="yes"
+- if test x"$PKG_CONFIG" = x; then
+- PKG_CONFIG=pkg-config
+- fi;;
+- esac
+- done
++
++ have_imlib2="yes"
+ IMGTARGETS=""
+ IMGLINK='$(CC)'
+- if test x"$with_gtk2" = xyes; then
+- version="`$PKG_CONFIG --modversion gdk-pixbuf-2.0 2>/dev/null`"
+- if test x"$version" != x; then
+- { $as_echo "$as_me:${as_lineno-$LINENO}: checking GdkPixbuf version" >&5
+-$as_echo_n "checking GdkPixbuf version... " >&6; }
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version" >&5
+-$as_echo "$version" >&6; }
+- set -- `echo "$version" | sed 's/[^0-9]/ /g'`
+- if test "$1" -ne "2" -o "$2" -lt "0" || test "$2" -eq "0" -a "$3" -lt "0"; then
+- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GdkPixbuf is too old. Install GdkPixbuf (version >= 2.0.0)" >&5
+-$as_echo "$as_me: WARNING: GdkPixbuf is too old. Install GdkPixbuf (version >= 2.0.0)" >&2;}
+- have_gdkpixbuf="no"; have_gtk2="no"
+- else
+- have_gdkpixbuf="yes"; have_gtk2="yes"
+- fi
+- else
+- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GdkPixbuf is not installed. Install GdkPixbuf (version >= 2.0.0)" >&5
+-$as_echo "$as_me: WARNING: GdkPixbuf is not installed. Install GdkPixbuf (version >= 2.0.0)" >&2;}
+- have_gdkpixbuf="no"; have_gtk2="no"
+- fi
+- fi
+- if test x"$with_gdkpixbuf" = xyes; then
+- if test x"$have_gdkpixbuf" != xyes; then
+- version="`$GDKPIXBUF_CONFIG --version 2>/dev/null`"
+- if test x"$version" != x; then
+- { $as_echo "$as_me:${as_lineno-$LINENO}: checking GdkPixbuf version" >&5
+-$as_echo_n "checking GdkPixbuf version... " >&6; }
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version" >&5
+-$as_echo "$version" >&6; }
+- set -- `echo "$version" | sed 's/[^0-9]/ /g'`
+- if test "$1" -ne "0" -o "$2" -lt "16" || test "$2" -eq "16" -a "$3" -lt "0"; then
+- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GdkPixbuf is too old. Install GdkPixbuf (version >= 0.16.0)" >&5
+-$as_echo "$as_me: WARNING: GdkPixbuf is too old. Install GdkPixbuf (version >= 0.16.0)" >&2;}
+- have_gdkpixbuf="no"
+- else
+- have_gdkpixbuf="yes"
+- fi
+- else
+- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GdkPixbuf is not installed. Install GdkPixbuf (version >= 0.16.0)" >&5
+-$as_echo "$as_me: WARNING: GdkPixbuf is not installed. Install GdkPixbuf (version >= 0.16.0)" >&2;}
+- have_gdkpixbuf="no"
+- fi
+- fi
+- fi
+- if test x"$with_imlib" = xyes; then
+- version="`$IMLIB_CONFIG --version 2>/dev/null`"
+- if test x"$version" != x; then
+- { $as_echo "$as_me:${as_lineno-$LINENO}: checking Imlib version" >&5
+-$as_echo_n "checking Imlib version... " >&6; }
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version" >&5
+-$as_echo "$version" >&6; }
+- set -- `echo "$version" | sed 's/[^0-9]/ /g'`
+- if test "$1" -ne "1" -o "$2" -lt "9" || test "$2" -eq "9" -a "$3" -lt "8"; then
+- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Imlib is too old. Install Imlib (version >= 1.9.8)" >&5
+-$as_echo "$as_me: WARNING: Imlib is too old. Install Imlib (version >= 1.9.8)" >&2;}
+- have_imlib="no"
+- else
+- have_imlib="yes"
+- fi
+- else
+- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Imlib is not installed. Install Imlib (version >= 1.9.8)" >&5
+-$as_echo "$as_me: WARNING: Imlib is not installed. Install Imlib (version >= 1.9.8)" >&2;}
+- have_imlib="no"
+- fi
+- fi
+- if test x"$with_imlib2" = xyes; then
+- version="`$IMLIB2_CONFIG --version 2>/dev/null`"
+- if test x"$version" != x; then
+- { $as_echo "$as_me:${as_lineno-$LINENO}: checking Imlib2 version" >&5
+-$as_echo_n "checking Imlib2 version... " >&6; }
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version" >&5
+-$as_echo "$version" >&6; }
+- set -- `echo "$version" | sed 's/[^0-9]/ /g'`
+- if test "$1" -ne "1" -o "$2" -lt "0" || test "$2" -eq "0" -a "$3" -lt "5"; then
+- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Imlib2 is too old. Install Imlib2 (version >= 1.0.5)" >&5
+-$as_echo "$as_me: WARNING: Imlib2 is too old. Install Imlib2 (version >= 1.0.5)" >&2;}
+- have_imlib2="no"
+- else
+- have_imlib2="yes"
+- fi
+- else
+- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Imlib2 is not installed. Install Imlib2 (version >= 1.0.5)" >&5
+-$as_echo "$as_me: WARNING: Imlib2 is not installed. Install Imlib2 (version >= 1.0.5)" >&2;}
+- have_imlib2="no"
+- fi
+- fi
+- if test x"$x11" = xyes; then
+- if test x"$have_gtk2" = xyes; then
+- $as_echo "#define USE_W3MIMG_X11 1" >>confdefs.h
+-
+- IMGOBJS="$IMGOBJS x11/x11_w3mimg.o"
+- IMGTARGETS="x11"
+- $as_echo "#define USE_GDKPIXBUF 1" >>confdefs.h
+-
+- $as_echo "#define USE_GTK2 1" >>confdefs.h
+-
+- IMGX11CFLAGS="`${PKG_CONFIG} --cflags gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0`"
+- IMGX11LDFLAGS="-lX11 `${PKG_CONFIG} --libs gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0`"
+- elif test x"$have_gdkpixbuf" = xyes; then
+- $as_echo "#define USE_W3MIMG_X11 1" >>confdefs.h
+-
+- IMGOBJS="$IMGOBJS x11/x11_w3mimg.o"
+- IMGTARGETS="x11"
+- $as_echo "#define USE_GDKPIXBUF 1" >>confdefs.h
+-
+- IMGX11CFLAGS="`${GDKPIXBUF_CONFIG} --cflags`"
+- IMGX11LDFLAGS="`${GDKPIXBUF_CONFIG} --libs` -lgdk_pixbuf_xlib"
+- elif test x"$have_imlib" = xyes; then
+- $as_echo "#define USE_W3MIMG_X11 1" >>confdefs.h
+-
+- IMGOBJS="$IMGOBJS x11/x11_w3mimg.o"
+- IMGTARGETS="x11"
+- $as_echo "#define USE_IMLIB 1" >>confdefs.h
+-
+- IMGX11CFLAGS="`${IMLIB_CONFIG} --cflags`"
+- IMGX11LDFLAGS="`${IMLIB_CONFIG} --libs`"
+- IMGTARGETS="x11"
+- elif test x"$have_imlib2" = xyes; then
+- $as_echo "#define USE_W3MIMG_X11 1" >>confdefs.h
+-
+- IMGOBJS="$IMGOBJS x11/x11_w3mimg.o"
+- IMGTARGETS="x11"
+- $as_echo "#define USE_IMLIB2 1" >>confdefs.h
+-
+- IMGX11CFLAGS="`${IMLIB2_CONFIG} --cflags`"
+- IMGX11LDFLAGS="-lX11 `${PKG_CONFIG} --libs imlib2`"
+- else
+- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to build w3mimgdisplay with X11 support" >&5
+-$as_echo "$as_me: WARNING: unable to build w3mimgdisplay with X11 support" >&2;}
+- fi
+- fi
+- if test x"$fb" = xyes; then
+- if test x"$have_gtk2" = xyes; then
+- $as_echo "#define USE_W3MIMG_FB 1" >>confdefs.h
+-
+- IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o"
+- IMGTARGETS="${IMGTARGETS} fb"
+- $as_echo "#define USE_GDKPIXBUF 1" >>confdefs.h
+-
+- $as_echo "#define USE_GTK2 1" >>confdefs.h
+-
+- IMGFBCFLAGS="`${PKG_CONFIG} --cflags gdk-pixbuf-2.0`"
+- IMGFBLDFLAGS="`${PKG_CONFIG} --libs gdk-pixbuf-2.0`"
+- elif test x"$have_gdkpixbuf" = xyes; then
+- $as_echo "#define USE_W3MIMG_FB 1" >>confdefs.h
+-
+- IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o"
+- IMGTARGETS="${IMGTARGETS} fb"
+- $as_echo "#define USE_GDKPIXBUF 1" >>confdefs.h
+-
+- IMGFBCFLAGS="`${GDKPIXBUF_CONFIG} --cflags`"
+- IMGFBLDFLAGS="`${GDKPIXBUF_CONFIG} --libs`"
+- elif test x"$have_imlib2" = xyes; then
+- $as_echo "#define USE_W3MIMG_FB 1" >>confdefs.h
+-
+- IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o"
+- IMGTARGETS="${IMGTARGETS} fb"
+- $as_echo "#define USE_IMLIB2 1" >>confdefs.h
+-
+- IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o"
+- IMGFBCFLAGS="`${IMLIB2_CONFIG} --cflags`"
+- IMGFBLDFLAGS="`${PKG_CONFIG} --libs imlib2`"
+- else
+- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to build w3mimgdisplay with FB support" >&5
+-$as_echo "$as_me: WARNING: unable to build w3mimgdisplay with FB support" >&2;}
+- fi
+- fi
+- if test x"$win" = xyes; then
+- $as_echo "#define USE_W3MIMG_WIN 1" >>confdefs.h
++ $as_echo "#define USE_W3MIMG_X11 1" >>confdefs.h
++ IMGOBJS="$IMGOBJS x11/x11_w3mimg.o"
++ IMGTARGETS="x11"
++ $as_echo "#define USE_IMLIB2 1" >>confdefs.h
++ IMGX11CFLAGS=""
++ IMGX11LDFLAGS="-lX11 -lImlib2"
+
+- IMGOBJS="$IMGOBJS win/win_w3mimg.o"
+- IMGTARGETS="${IMGTARGETS} win"
+- IMGWINCFLAGS="-I/usr/include/w32api"
+- IMGWINLDFLAGS="-lgdiplus -lgdi32 -luser32"
+- IMGLINK='$(CXX)'
+- fi
+ $as_echo "#define IMGTARGETS \"\$IMGTARGETS\"" >>confdefs.h
+
+ $as_echo "#define IMGOBJS \"\$IMGOBJS\"" >>confdefs.h
+@@ -7361,24 +7166,6 @@
_ACEOF