| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | $NetBSD: patch-ah,v 1.5 2014/07/18 08:56:37 ryoon Exp $ | | 1 | $NetBSD: patch-ah,v 1.6 2015/02/24 08:21:07 markd Exp $ |
2 | | | 2 | |
3 | (1) First chunk to fix the X11_TYPE=native problem, which | | 3 | (1) First chunk to fix the X11_TYPE=native problem, which |
4 | freetype2 in /usr/X11R7/ is way old, and work around to | | 4 | freetype2 in /usr/X11R7/ is way old, and work around to |
5 | use ghostscript-provided freetype2. | | 5 | use ghostscript-provided freetype2. |
6 | This part is not necessary for NetBSD 6.0, 6.1. | | 6 | This part is not necessary for NetBSD 6.0, 6.1. |
7 | | | 7 | |
8 | (2) Second chunk for X11_TYPE=native, will have following problem without | | 8 | (2) Second chunk for X11_TYPE=native, will have following problem without |
9 | this patch: | | 9 | this patch: |
10 | | Shared object "libpaper.so.1" not found | | 10 | | Shared object "libpaper.so.1" not found |
11 | | | 11 | |
12 | (3) SCO_SV chunk for SCO OpenServer 5.0.7/3.2's linker. | | 12 | (3) SCO_SV chunk for SCO OpenServer 5.0.7/3.2's linker. |
13 | | | 13 | |
14 | --- configure.orig 2012-08-08 08:04:57.000000000 +0000 | | 14 | --- configure.orig 2012-08-08 08:04:57.000000000 +0000 |
| @@ -47,22 +47,24 @@ $NetBSD: patch-ah,v 1.5 2014/07/18 08:56 | | | @@ -47,22 +47,24 @@ $NetBSD: patch-ah,v 1.5 2014/07/18 08:56 |
47 | + ;; | | 47 | + ;; |
48 | esac | | 48 | esac |
49 | | | 49 | |
50 | | | 50 | |
51 | @@ -5331,7 +5334,7 @@ fi | | 51 | @@ -5331,7 +5334,7 @@ fi |
52 | fi | | 52 | fi |
53 | | | 53 | |
54 | if test x$with_libpaper != xno; then | | 54 | if test x$with_libpaper != xno; then |
55 | - LIBS="$LIBS -lpaper" | | 55 | - LIBS="$LIBS -lpaper" |
56 | + LIBS="$LIBS -L${LPLIBDIR} -Wl,-R${LPLIBDIR} -lpaper" | | 56 | + LIBS="$LIBS -L${LPLIBDIR} -Wl,-R${LPLIBDIR} -lpaper" |
57 | | | 57 | |
58 | $as_echo "#define USE_LIBPAPER 1" >>confdefs.h | | 58 | $as_echo "#define USE_LIBPAPER 1" >>confdefs.h |
59 | | | 59 | |
60 | @@ -6474,7 +6477,7 @@ done | | 60 | @@ -6474,7 +6477,9 @@ done |
61 | LCUPSINCLUDE="include \$(GLSRCDIR)/lcups.mak" | | 61 | LCUPSINCLUDE="include \$(GLSRCDIR)/lcups.mak" |
62 | LCUPSIINCLUDE="include \$(GLSRCDIR)/lcupsi.mak" | | 62 | LCUPSIINCLUDE="include \$(GLSRCDIR)/lcupsi.mak" |
63 | if ( test x$with_pdftoraster != xno ); then | | 63 | if ( test x$with_pdftoraster != xno ); then |
64 | - if test "$CUPSVERSION" ">" "1.2"; then | | 64 | - if test "$CUPSVERSION" ">" "1.2"; then |
65 | + if echo "$CUPSVERSION" | grep -q '^1\.[2-9]'; then | | 65 | + if echo "$CUPSVERSION" | grep -q '^1\.[2-9]'; then |
| | | 66 | + CUPSPDFTORASTER="1" |
| | | 67 | + elif echo "$CUPSVERSION" | grep -q '^[2-9]\.[0-9]'; then |
66 | CUPSPDFTORASTER="1" | | 68 | CUPSPDFTORASTER="1" |
67 | fi | | 69 | fi |
68 | fi | | 70 | fi |