summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKang Kai <kai.kang@windriver.com>2011-05-03 16:50:40 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-05 12:26:42 +0100
commitca63a0158ae42010477080ad6bb776329f1230b0 (patch)
tree4b40e0aafe671df5e9ff21104ffce9a0e9f828a3
parent2ebb1fbb14b465924a6fa710fd2d73e5fca18a68 (diff)
downloadpoky-ca63a0158ae42010477080ad6bb776329f1230b0.tar.gz
ghostscript: added to pass LSB commands check
Add ghostscript to pass LSB commands check and Printing test, and ghostscript-native is added to help cross compilation. (From OE-Core rev: 2f375be2982f83dec154eeb0a9ac37144da1496a) Signed-off-by: Kang Kai <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.02-prevent_recompiling.patch95
-rw-r--r--meta/recipes-extended/ghostscript/ghostscript_9.02.bb67
2 files changed, 162 insertions, 0 deletions
diff --git a/meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.02-prevent_recompiling.patch b/meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.02-prevent_recompiling.patch
new file mode 100644
index 0000000000..def8596a32
--- /dev/null
+++ b/meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.02-prevent_recompiling.patch
@@ -0,0 +1,95 @@
1Just use commands provided by ghostscript-native, preventing recompile them when
2compile ghostscript.
3Way to enable cross compile.
4
5Upstream-status: Pending
6
7Signed-off-by: Kang Kai <kai.kang@windriver.com>
8
9--- a/base/unix-aux.mak.orig 2011-05-03 15:35:55.196887997 +0800
10+++ b/base/unix-aux.mak 2011-05-03 15:37:57.766888003 +0800
11@@ -57,45 +57,45 @@ $(GLOBJ)gp_sysv.$(OBJ): $(GLSRC)gp_sysv.
12
13 # -------------------------- Auxiliary programs --------------------------- #
14
15-$(ECHOGS_XE): $(GLSRC)echogs.c $(AK) $(stdpre_h)
16- $(CCAUX) $(I_)$(GLSRCDIR)$(_I) $(O_)$(ECHOGS_XE) $(GLSRC)echogs.c
17-
18-# On the RS/6000 (at least), compiling genarch.c with gcc with -O
19-# produces a buggy executable.
20-$(GENARCH_XE): $(GLSRC)genarch.c $(AK) $(GENARCH_DEPS)
21- $(CCAUX) $(I_)$(GLSRCDIR)$(_I) $(O_)$(GENARCH_XE) $(GLSRC)genarch.c
22-
23-$(GENCONF_XE): $(GLSRC)genconf.c $(AK) $(GENCONF_DEPS)
24- $(CCAUX) $(I_)$(GLSRCDIR)$(_I) $(O_)$(GENCONF_XE) $(GLSRC)genconf.c
25-
26-$(GENDEV_XE): $(GLSRC)gendev.c $(AK) $(GENDEV_DEPS)
27- $(CCAUX) $(I_)$(GLSRCDIR)$(_I) $(O_)$(GENDEV_XE) $(GLSRC)gendev.c
28-
29-$(GENHT_XE): $(GLSRC)genht.c $(AK) $(GENHT_DEPS)
30- $(CCAUX) $(GENHT_CFLAGS) $(O_)$(GENHT_XE) $(GLSRC)genht.c
31-
32-# To get GS to use the system zlib, you remove/hide the gs/zlib directory
33-# which means that the mkromfs build can't find the zlib source it needs.
34-# So it's split into two targets, one using the zlib source directly.....
35-MKROMFS_OBJS_0=$(MKROMFS_ZLIB_OBJS) $(GLOBJ)gscdefs.$(OBJ) $(GLOBJ)gsmisc.$(OBJ) \
36- $(GLOBJ)gpmisc.$(OBJ) $(GLOBJ)gslibctx.$(OBJ) $(GLOBJ)gp_getnv.$(OBJ) \
37- $(GLOBJ)gp_unix.$(OBJ) $(GLOBJ)gp_unifs.$(OBJ) $(GLOBJ)gp_unifn.$(OBJ) \
38- $(GLOBJ)gp_stdia.$(OBJ) $(GLOBJ)gsutil.$(OBJ)
39-
40-$(MKROMFS_XE)_0: $(GLSRC)mkromfs.c $(MKROMFS_COMMON_DEPS) $(MKROMFS_OBJS_0)
41- $(CCAUX) $(GENOPT) $(CFLAGS) $(I_)$(GLSRCDIR)$(_I) $(I_)$(GLOBJ)$(_I) $(I_)$(ZSRCDIR)$(_I) $(GLSRC)mkromfs.c $(O_)$(MKROMFS_XE)_0 $(MKROMFS_OBJS_0) -lm $(EXTRALIBS)
42-
43-# .... and one using the zlib library linked via the command line
44-MKROMFS_OBJS_1=$(GLOBJ)gscdefs.$(OBJ) $(GLOBJ)gsmisc.$(OBJ) \
45- $(GLOBJ)gpmisc.$(OBJ) $(GLOBJ)gslibctx.$(OBJ) $(GLOBJ)gp_getnv.$(OBJ) \
46- $(GLOBJ)gp_unix.$(OBJ) $(GLOBJ)gp_unifs.$(OBJ) $(GLOBJ)gp_unifn.$(OBJ) \
47- $(GLOBJ)gp_stdia.$(OBJ) $(GLOBJ)gsutil.$(OBJ)
48-
49-$(MKROMFS_XE)_1: $(GLSRC)mkromfs.c $(MKROMFS_COMMON_DEPS) $(MKROMFS_OBJS_1)
50- $(CCAUX) $(GENOPT) $(CFLAGS) $(I_)$(GLSRCDIR)$(_I) $(I_)$(GLOBJ)$(_I) $(I_)$(ZSRCDIR)$(_I) $(GLSRC)mkromfs.c $(O_)$(MKROMFS_XE)_1 $(MKROMFS_OBJS_1) -lm $(EXTRALIBS)
51-
52-$(MKROMFS_XE): $(MKROMFS_XE)_$(SHARE_ZLIB)
53- $(CP_) $(MKROMFS_XE)_$(SHARE_ZLIB) $(MKROMFS_XE)
54+#$(ECHOGS_XE): $(GLSRC)echogs.c $(AK) $(stdpre_h)
55+# $(CCAUX) $(I_)$(GLSRCDIR)$(_I) $(O_)$(ECHOGS_XE) $(GLSRC)echogs.c
56+#
57+## On the RS/6000 (at least), compiling genarch.c with gcc with -O
58+## produces a buggy executable.
59+#$(GENARCH_XE): $(GLSRC)genarch.c $(AK) $(GENARCH_DEPS)
60+# $(CCAUX) $(I_)$(GLSRCDIR)$(_I) $(O_)$(GENARCH_XE) $(GLSRC)genarch.c
61+#
62+#$(GENCONF_XE): $(GLSRC)genconf.c $(AK) $(GENCONF_DEPS)
63+# $(CCAUX) $(I_)$(GLSRCDIR)$(_I) $(O_)$(GENCONF_XE) $(GLSRC)genconf.c
64+#
65+#$(GENDEV_XE): $(GLSRC)gendev.c $(AK) $(GENDEV_DEPS)
66+# $(CCAUX) $(I_)$(GLSRCDIR)$(_I) $(O_)$(GENDEV_XE) $(GLSRC)gendev.c
67+#
68+#$(GENHT_XE): $(GLSRC)genht.c $(AK) $(GENHT_DEPS)
69+# $(CCAUX) $(GENHT_CFLAGS) $(O_)$(GENHT_XE) $(GLSRC)genht.c
70+#
71+## To get GS to use the system zlib, you remove/hide the gs/zlib directory
72+## which means that the mkromfs build can't find the zlib source it needs.
73+## So it's split into two targets, one using the zlib source directly.....
74+#MKROMFS_OBJS_0=$(MKROMFS_ZLIB_OBJS) $(GLOBJ)gscdefs.$(OBJ) $(GLOBJ)gsmisc.$(OBJ) \
75+# $(GLOBJ)gpmisc.$(OBJ) $(GLOBJ)gslibctx.$(OBJ) $(GLOBJ)gp_getnv.$(OBJ) \
76+# $(GLOBJ)gp_unix.$(OBJ) $(GLOBJ)gp_unifs.$(OBJ) $(GLOBJ)gp_unifn.$(OBJ) \
77+# $(GLOBJ)gp_stdia.$(OBJ) $(GLOBJ)gsutil.$(OBJ)
78+#
79+#$(MKROMFS_XE)_0: $(GLSRC)mkromfs.c $(MKROMFS_COMMON_DEPS) $(MKROMFS_OBJS_0)
80+# $(CCAUX) $(GENOPT) $(CFLAGS) $(I_)$(GLSRCDIR)$(_I) $(I_)$(GLOBJ)$(_I) $(I_)$(ZSRCDIR)$(_I) $(GLSRC)mkromfs.c $(O_)$(MKROMFS_XE)_0 $(MKROMFS_OBJS_0) -lm $(EXTRALIBS)
81+#
82+## .... and one using the zlib library linked via the command line
83+#MKROMFS_OBJS_1=$(GLOBJ)gscdefs.$(OBJ) $(GLOBJ)gsmisc.$(OBJ) \
84+# $(GLOBJ)gpmisc.$(OBJ) $(GLOBJ)gslibctx.$(OBJ) $(GLOBJ)gp_getnv.$(OBJ) \
85+# $(GLOBJ)gp_unix.$(OBJ) $(GLOBJ)gp_unifs.$(OBJ) $(GLOBJ)gp_unifn.$(OBJ) \
86+# $(GLOBJ)gp_stdia.$(OBJ) $(GLOBJ)gsutil.$(OBJ)
87+#
88+#$(MKROMFS_XE)_1: $(GLSRC)mkromfs.c $(MKROMFS_COMMON_DEPS) $(MKROMFS_OBJS_1)
89+# $(CCAUX) $(GENOPT) $(CFLAGS) $(I_)$(GLSRCDIR)$(_I) $(I_)$(GLOBJ)$(_I) $(I_)$(ZSRCDIR)$(_I) $(GLSRC)mkromfs.c $(O_)$(MKROMFS_XE)_1 $(MKROMFS_OBJS_1) -lm $(EXTRALIBS)
90+#
91+#$(MKROMFS_XE): $(MKROMFS_XE)_$(SHARE_ZLIB)
92+# $(CP_) $(MKROMFS_XE)_$(SHARE_ZLIB) $(MKROMFS_XE)
93
94 # Query the environment to construct gconfig_.h.
95 # The "else true;" is required because Ultrix's implementation of sh -e
diff --git a/meta/recipes-extended/ghostscript/ghostscript_9.02.bb b/meta/recipes-extended/ghostscript/ghostscript_9.02.bb
new file mode 100644
index 0000000000..dcdedade10
--- /dev/null
+++ b/meta/recipes-extended/ghostscript/ghostscript_9.02.bb
@@ -0,0 +1,67 @@
1SUMMARY = "The GPL Ghostscript PostScript/PDF interpreter"
2DESCRIPTION = "Ghostscript is used for PostScript/PDF preview and printing. Usually as \
3a back-end to a program such as ghostview, it can display PostScript and PDF \
4documents in an X11 environment. \
5\
6Furthermore, it can render PostScript and PDF files as graphics to be printed \
7on non-PostScript printers. Supported printers include common \
8dot-matrix, inkjet and laser models. \
9\
10Package gsfonts contains a set of standard fonts for Ghostscript. \
11"
12HOMEPAGE = "http://www.ghostscript.com"
13SECTION = "console/utils"
14
15LICENSE = "GPLv3"
16LIC_FILES_CHKSUM = "file://LICENSE;md5=d151214b3131251dfc9d858593acbd24"
17
18PR = "r0"
19
20DEPENDS = "tiff ${PN}-native"
21DEPENDS_virtclass-native = ""
22
23SRC_URI = "http://downloads.ghostscript.com/public/ghostscript-${PV}.tar.bz2 \
24 file://ghostscript-9.02-prevent_recompiling.patch \
25 "
26
27SRC_URI[md5sum] = "f67151444bd56a7904579fc75a083dd6"
28SRC_URI[sha256sum] = "03ea2cad13a36f8f9160912012b79619a826e7148fada6d3531feb25409ee05a"
29
30EXTRA_OECONF = "--with-system-libtiff --without-jbig2dec --without-jasper --x-includes=${STAGING_DIR_HOST}/usr/include/X11 --x-libraries=${STAGING_DIR_HOST}/usr/lib"
31
32inherit autotools
33
34do_configure () {
35 oe_runconf
36
37 # copy tools from the native ghostscript build
38 mkdir -p obj soobj
39 for i in genarch genconf mkromfs echogs gendev genht; do
40 cp ${STAGING_BINDIR_NATIVE}/ghostscript-${PV}/$i obj/$i
41 cp ${STAGING_BINDIR_NATIVE}/ghostscript-${PV}/$i soobj/$i
42 done
43}
44
45python do_patch_virtclass-native () {
46 pass
47}
48
49do_configure_virtclass-native () {
50 oe_runconf
51}
52
53do_compile_virtclass-native () {
54 mkdir -p obj
55 for i in genarch genconf mkromfs echogs gendev genht; do
56 oe_runmake obj/$i
57 done
58}
59
60do_install_virtclass-native () {
61 install -d ${D}${bindir}/ghostscript-${PV}
62 for i in genarch genconf mkromfs echogs gendev genht; do
63 install -m 755 obj/$i ${D}${bindir}/ghostscript-${PV}/$i
64 done
65}
66
67BBCLASSEXTEND = "native"