aboutsummaryrefslogtreecommitdiffstats
path: root/testing/motif/14-fix_ac_find_xft.patch
diff options
context:
space:
mode:
authorIsaac Dunham <ibid.ag@gmail.com>2014-06-21 14:40:57 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-06-23 06:41:47 +0000
commit96d9a81946ebca7dcaa1a8ae9712ee477a156606 (patch)
tree88ef61a0abbd1c78ae5f5314997e1420e23cefe8 /testing/motif/14-fix_ac_find_xft.patch
parentd28d72a16f7697a518150bf27feb26ac317bce28 (diff)
downloadaports-96d9a81946ebca7dcaa1a8ae9712ee477a156606.tar.bz2
aports-96d9a81946ebca7dcaa1a8ae9712ee477a156606.tar.xz
Add motif
Manually sending, since git send-email is being recalcitrant. This will allow me to package nedit and a number of other things. From 3077415e704bee5da76d1000e66bb8e25c0248cf Mon Sep 17 00:00:00 2001 From: Isaac Dunham <ibid.ag@gmail.com> Date: Thu, 19 Jun 2014 05:41:45 +0000 Subject: [PATCH] Add Motif. Motif is an X intrinsics based toolkit which was once widely used. This version is built with Xft support, but not PNG, JPEG, or Xprint. The patches are snarfed from Debian; not all are needed.
Diffstat (limited to 'testing/motif/14-fix_ac_find_xft.patch')
-rw-r--r--testing/motif/14-fix_ac_find_xft.patch91
1 files changed, 91 insertions, 0 deletions
diff --git a/testing/motif/14-fix_ac_find_xft.patch b/testing/motif/14-fix_ac_find_xft.patch
new file mode 100644
index 0000000000..76c23183e8
--- /dev/null
+++ b/testing/motif/14-fix_ac_find_xft.patch
@@ -0,0 +1,91 @@
+Description: Fix ac_find_xft.m4
+ ac_find_xft.m4 fails tests required to enable building with Xft anti-aliased fonts.
+ We also need to add -lfontconfig to LIBS to prevent underlinking of libXm.
+ .
+ This patch fixes these. Build-depends on libfontconfig1-dev, libfreetype6-dev and
+ libxrender-dev can be dropped as they are all dependencies of libxft-dev.
+Author: Graham Inggs <graham@nerve.org.za>
+Forwarded: http://bugs.motifzone.net/show_bug.cgi?id=1591
+Last-Update: 2013-03-13
+--- a/ac_find_xft.m4
++++ b/ac_find_xft.m4
+@@ -54,28 +54,28 @@
+
+ case "$freetype_lib" in
+ no)
+- freetype_lib=""
++ FREETYPE_LIBS=""
+ ;;
+ yes)
+ case "$ft_config" in
+ no)
+- freetype_lib=""
++ FREETYPE_LIBS="-lfreetype"
+ ;;
+ *)
+- freetype_lib="`$ft_config --libs`"
++ FREETYPE_LIBS="`$ft_config --libs`"
+ ;;
+ esac
+ ;;
+ *)
+- freetype_lib="-L$freetype_lib -lfreetype"
++ FREETYPE_LIBS="-L$freetype_lib -lfreetype"
+ ;;
+ esac
+
+ saved_LIBS="$LIBS"
+-LIBS="$LIBS $freetype_lib"
++LIBS="$LIBS $FREETYPE_LIBS"
+ saved_CPPFLAGS="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
+-AC_CHECK_HEADERS(freetype/freetype.h)
++AC_CHECK_HEADERS(freetype/freetype.h,,,[#include <ft2build.h>])
+
+ FINDXFT_HAVE_FREETYPE="no"
+ case "$ac_cv_header_freetype_freetype_h" in
+@@ -94,6 +94,7 @@
+ FINDXFT_HAVE_FREETYPE="yes"
+ AC_DEFINE(HAVE_FREETYPE, 1, Means we have discovered the FreeType library)
+ AC_SUBST(FREETYPE_CFLAGS)
++ AC_SUBST(FREETYPE_LIBS)
+ ;;
+ esac
+ ;;
+@@ -134,8 +135,19 @@
+ FINDXFT_HAVE_XRENDER="no"
+ case "$have_x" in
+ yes)
+- XRENDER_CFLAGS="-I$x_includes"
+- XRENDER_LIBS="-L$x_libraries -lXft -lXrender"
++ if test x$x_includes = x
++ then
++ XRENDER_CFLAGS=""
++ else
++ XRENDER_CFLAGS="-I$x_includes"
++ fi
++
++ if test x$x_libraries = x
++ then
++ XRENDER_LIBS="-lXft -lXrender"
++ else
++ XRENDER_LIBS="-I$x_libraries -lXft -lXrender"
++ fi
+
+ saved_LIBS="$LIBS"
+ LIBS="$LIBS $XRENDER_LIBS"
+@@ -203,12 +215,12 @@
+
+ case "$fontconfig_lib" in
+ no)
+- fontconfig_lib=""
++ FONTCONFIG_LIBS=""
+ ;;
+ yes)
+ case "$fc_config" in
+ no)
+- fontconfig_lib=""
++ FONTCONFIG_LIBS="-lfontconfig"
+ ;;
+ *)
+ FONTCONFIG_LIBS="`$fc_config --libs`"