summaryrefslogtreecommitdiff
path: root/cad/ngspice_rework/files/patch-configure.ac
diff options
context:
space:
mode:
authorFernando ApesteguĂ­a <fernape@FreeBSD.org>2020-06-25 06:12:16 +0000
committerFernando ApesteguĂ­a <fernape@FreeBSD.org>2020-06-25 06:12:16 +0000
commit59d6ceb78918c7023c0e286dc69ab26028caf270 (patch)
treee36aabe977b2e4fccc6787489c502363307297f8 /cad/ngspice_rework/files/patch-configure.ac
parentprint/lilypond-devel: update to 2.21.2 (diff)
cad/ngspice_rework: Update to 32
ChangeLog: https://sourceforge.net/projects/ngspice/files/ng-spice-rework/32/ReleaseNotes.txt/download PR: 246455 Submitted by: kevinz5000@gmail.com(maintainer)
Diffstat (limited to 'cad/ngspice_rework/files/patch-configure.ac')
-rw-r--r--cad/ngspice_rework/files/patch-configure.ac34
1 files changed, 34 insertions, 0 deletions
diff --git a/cad/ngspice_rework/files/patch-configure.ac b/cad/ngspice_rework/files/patch-configure.ac
new file mode 100644
index 000000000000..4dfd008d057f
--- /dev/null
+++ b/cad/ngspice_rework/files/patch-configure.ac
@@ -0,0 +1,34 @@
+--- configure.ac.orig 2020-05-06 06:11:56 UTC
++++ configure.ac
+@@ -707,7 +707,6 @@ fi
+ # Xft is optional, allows text rotation in plots
+
+ if test "x$no_x" != xyes ; then
+- X_CFLAGS="$X_CFLAGS -I/usr/include/freetype2"
+ AC_CHECK_LIB([Xaw], [main], [X_LIBS="$X_LIBS -lXaw"],
+ [AC_MSG_ERROR([Couldn't find Xaw library])], [$X_LIBS $X_EXTRA_LIBS])
+ AC_CHECK_LIB([Xmu], [main], [X_LIBS="$X_LIBS -lXmu"],
+@@ -716,21 +715,8 @@ if test "x$no_x" != xyes ; then
+ AC_CHECK_LIB([Xext], [XShmAttach], [X_LIBS="$X_LIBS -lXext"],
+ [AC_MSG_ERROR([Couldn't find Xext library])], [$X_LIBS $X_EXTRA_LIBS])
+ X_LIBS="$X_LIBS -lX11"
+- AC_CHECK_LIB([Xft], [main],
+- [AC_DEFINE([HAVE_LIBXFT], [1], [Have xft routines in libxft])]
+- X_LIBS="$X_LIBS -lXft -lfontconfig -lXrender -lfreetype"
+- has_xft=yes,
+- [has_xft=no], [$X_LIBS $X_EXTRA_LIBS])
+-
+- if test "x$has_xft" = xyes ; then
+- AC_CHECK_LIB([fontconfig], [main], [],
+- [AC_MSG_ERROR([Couldn't find fontconfig library])], [$X_LIBS $X_EXTRA_LIBS])
+-# AC_CHECK_LIB([Xrender], [main], [],
+-# [AC_MSG_ERROR([Couldn't find Xrender library])], [$X_LIBS $X_EXTRA_LIBS])
+- AC_CHECK_LIB([freetype], [main], [],
+- [AC_MSG_ERROR([Couldn't find freetype library])], [$X_LIBS $X_EXTRA_LIBS])
+- fi
+-
++ PKG_CHECK_MODULES([XFT], [xft], [X_CFLAGS="$X_CFLAGS $XFT_CFLAGS"; X_LIBS="$X_LIBS $XFT_LIBS"],
++ [AC_MSG_ERROR([Couldn't find freetype library])])
+ has_no_x=false
+ else
+ AC_DEFINE([X_DISPLAY_MISSING])