]> git.pld-linux.org Git - packages/ghostscript.git/blame - ghostscript-svga-shared.patch
- use system freetype
[packages/ghostscript.git] / ghostscript-svga-shared.patch
CommitLineData
4690f944
JB
1--- ghostscript-9.18/configure.ac.orig 2016-01-06 21:16:43.016302214 +0100
2+++ ghostscript-9.18/configure.ac 2016-01-06 21:35:06.882922225 +0100
3@@ -1811,6 +1811,7 @@
4 PS_DEVS='psdf psdcmyk psdrgb pdfwrite ps2write eps2write bbox txtwrite inkcov ink_cov psdcmykog fpng'
5 MISC_FDEVS='ccr cif inferno mag16 mag256 mgr4 mgr8 mgrgray2 mgrgray4 mgrgray8 mgrmono miff24 plan9bm sgirgb sunhmono bit bitrgb bitrgbtags bitcmyk devicen spotcmyk xcf plib plibg plibm plibc plibk gprf'
6 XPSDEV=$XPSWRITEDEVICE
e6b3a003
JB
7+SVGA_DEVS=
8
9 while test -n "$drivers"; do
10 if echo $drivers |grep "," >/dev/null; then
4690f944 11@@ -1950,6 +1951,9 @@
e6b3a003
JB
12 AC_MSG_WARN(Unable to include opvp/oprp driver due to missing or disabled prerequisites...)
13 fi
14 ;;
15+ svga)
16+ SVGA_DEVS="vgalib.dev lvga256.dev"
17+ ;;
18 *)
19 # It's a driver name (or a user messup)
20 P_DEVS0="$P_DEVS0 `echo $THIS |sed -e 's,\.dev$,,'`"
4690f944 21@@ -2047,6 +2051,7 @@
e6b3a003
JB
22 AC_SUBST(JBIG2_DEVS)
23 AC_SUBST(IJS_DEVS)
24 AC_SUBST(PNG_DEVS)
25+AC_SUBST(SVGA_DEVS)
26
27 # This now gets done after handling --enable-dynamic
28 # AC_SUBST(X11_DEVS)
4690f944 29@@ -2129,6 +2134,10 @@
e6b3a003
JB
30 else
31 DYNAMIC_DEVS=""
32 fi
33+ if test "x$SVGA_DEVS" != x; then
34+ DYNAMIC_DEVS="$DYNAMIC_DEVS \$(GLOBJDIR)/lvga256.so \$(GLOBJDIR)/vgalib.so"
35+ SVGA_DEVS=
36+ fi
37 DYNAMIC_FLAGS="-DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\\\"\$(gssharedir)\\\""
38 X11_DEVS=""
39 OPT_CFLAGS="$DYNAMIC_CFLAGS $OPT_CFLAGS"
4690f944
JB
40--- ghostscript-9.18/Makefile.in.orig 2016-01-06 21:16:43.029635544 +0100
41+++ ghostscript-9.18/Makefile.in 2016-01-06 21:36:00.216253925 +0100
42@@ -594,7 +594,7 @@
e6b3a003 43 DEVICE_DEVS7=@JBIG2_DEVS@
4690f944
JB
44 DEVICE_DEVS8=
45 DEVICE_DEVS9=@XPS_DEVS@
46-DEVICE_DEVS10=
47+DEVICE_DEVS10=@SVGA_DEVS@
e6b3a003
JB
48 DEVICE_DEVS11=
49 DEVICE_DEVS12=
4690f944
JB
50 DEVICE_DEVS13=
51--- ghostscript-9.18/devices/gdevl256.c.orig 2016-01-06 21:36:44.772918446 +0100
52+++ ghostscript-9.18/devices/gdevl256.c 2016-01-07 16:17:39.900096231 +0100
53@@ -169,8 +169,7 @@
54 gx_color_index
55 lvga256_map_rgb_color(gx_device * dev, const gx_color_value cv[])
56 {
57- gx_color_value r, g, b;
58- r = cv[0]; g = cv[1]; b = cv[2];
59+ gx_color_value r = cv[0], g = cv[1], b = cv[2];
60 #define cv_bits(v,n) (v >> (gx_color_value_bits - n))
61 ushort r5 = cv_bits(r, 5), g5 = cv_bits(g, 5), b5 = cv_bits(b, 5);
62 static const byte cube_bits[32] =
This page took 0.075738 seconds and 4 git commands to generate.