Mercurial > mxe-octave
changeset 3814:a6140fcf5631
pstoedit: enable wmf/emf for windows
* src/pstoedit-4-winlibemf.patch: new file
* dist-files.mk: add pstoedit-4-winlibemf.patch
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sat, 28 Feb 2015 14:27:27 -0500 |
parents | ea3cab4018c5 |
children | deed2268e330 |
files | dist-files.mk src/pstoedit-4-winlibemf.patch |
diffstat | 2 files changed, 40 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dist-files.mk Fri Feb 27 15:29:26 2015 -0500 +++ b/dist-files.mk Sat Feb 28 14:27:27 2015 -0500 @@ -522,6 +522,7 @@ pstoedit-1-fixes.patch \ pstoedit-2-gs.patch \ pstoedit-3-nosecapi.patch \ + pstoedit-4-winlibemf.patch \ pstoedit.mk \ pthread-stubs.mk \ pthreads-test.c \
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pstoedit-4-winlibemf.patch Sat Feb 28 14:27:27 2015 -0500 @@ -0,0 +1,39 @@ +diff -ur pstoedit-3.62/configure.ac pstoedit-3.62.new/configure.ac +--- pstoedit-3.62/configure.ac 2013-03-10 14:45:43.000000000 -0400 ++++ pstoedit-3.62.new/configure.ac 2015-02-28 14:17:10.000000000 -0500 +@@ -324,6 +324,16 @@ + OLD_CPPFLAGS= + OLD_LIBS= + ++dnl if windows we can just enable emf/wmf support ++AC_MSG_CHECKING(for windows.h) ++AC_CHECK_HEADER(windows.h, ++ [have_windows_h=yes]) ++ ++if test "${have_windows_h}" = "yes"; then ++ AC_MSG_RESULT([yes]) ++else ++ AC_MSG_RESULT([yes]) ++fi + + AC_ARG_WITH(libemf-src, + [ --with-libemf-src=DIR look for libEMF src in dir (e.g. /usr/local/lib)], +@@ -382,8 +392,14 @@ + if test -n "${LIBEMF_LDFLAGS}" && test -n "${LIBEMF_CFLAGS}"; then + HAVE_LIBEMF=yes + else +- LIBEMF_CFLAGS= +- LIBEMF_LDFLAGS= ++ if test "${have_windows_h}" = "yes"; then ++ HAVE_LIBEMF=yes ++ LIBEMF_CFLAGS= ++ LIBEMF_LDFLAGS=-lgdi32 ++ else ++ LIBEMF_CFLAGS= ++ LIBEMF_LDFLAGS= ++ fi + fi + + AC_SUBST(LIBEMF_LDFLAGS) +Only in pstoedit-3.62.new: configure.orig +Only in pstoedit-3.62.new: tmp