Magellan Linux

Contents of /trunk/core/ghostscript-esp/ghostscript-esp-8.15.4-r5.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1531 - (show annotations) (download)
Sun May 10 19:22:36 2009 UTC (14 years, 11 months ago) by niro
File size: 2167 byte(s)
-rebuild
1 # $Id$
2
3 PNAME="ghostscript-esp"
4 PVER="8.15.4"
5 PBUILD="r5"
6
7 PCATEGORIE="app-text"
8 STATE="unstable"
9
10 DESCRIPTION="ESP Ghostscript is an up-to-date GNU Ghostscript distribution with additional support for CUPS."
11 HOMEPAGE="http://www.cups.org/ghostscript.php"
12
13 DEPEND=">= virtual/glibc
14 >= media-libs/libjpeg-6b
15 >= media-libs/libpng-1.2
16 >= media-libs/libtiff-3.8
17 >= sys-libs/zlib-1.2
18 >= x11-libs/gtk2+-2.16
19 >= x11-libs/libXt-1
20 >= x11-libs/libXext-1
21 >= media-libs/fontconfig-2"
22
23 SDEPEND=">= net-print/cups-1.3"
24
25 SRCFILE="espgs-${PVER}-source.tar.bz2"
26 EXTRA_SRCFILE="ghostscript-fonts-std-8.11.tar.gz"
27
28 SRCDIR="${BUILDDIR}/espgs-${PVER}"
29
30 sminclude mtools
31
32 SRC_URI=(
33 http://ftp.easysw.com/pub/${PNAME/-esp/}/${PVER}/${SRCFILE}
34 mirror://${PNAME}/${SRCFILE}
35 mirror://${PNAME}/${EXTRA_SRCFILE}
36 mirror://${PNAME}/${PNAME}-8.15.1-fpic.patch
37 )
38
39 src_prepare()
40 {
41 munpack ${SRCFILE} || die
42 munpack ${EXTRA_SRCFILE} || die
43 cd ${SRCDIR}
44
45 # fix fpic issues
46 mpatch ${PNAME}-8.15.1-fpic.patch || die
47
48 # search path fix
49 sed -i "s:\$\(gsdatadir\)/lib:/usr/share/ghostscript/${PVER:0:4}/lib:" Makefile.in || die
50 sed -i 's:$(gsdir)/fonts:/usr/share/ghostscript/fonts:' Makefile.in || die
51
52 # change default gs output from bbox to x11 (screen) driver
53 sed -i "s/bbox.dev$/x11.dev/" Makefile.in || die
54
55 # regen makefiles
56 autoreconf || die
57 }
58
59 src_compile()
60 {
61 cd ${SRCDIR}
62
63 mconfigure \
64 --with-ijs \
65 --with-jbig2dec \
66 --with-omni \
67 --without-gimp-print \
68 --with-x \
69 --enable-cups \
70 --enable-dynamic \
71 || die
72
73 # does not like optimations
74 mmake -j1 || die
75
76 # compile dynamic libs
77 mmake so -j1 || die
78
79 # compile ijs
80 cd ${SRCDIR}/ijs
81 mconfigure || die
82 mmake -j1 || die
83 }
84
85 src_install()
86 {
87 cd ${SRCDIR}
88
89 # needed directories
90 minstalldir /usr/bin || die
91 minstalldir /usr/include || die
92 minstalldir /usr/$(mlibdir) || die
93
94 mmake install_prefix=${BINDIR} install || die
95 mmake install_prefix=${BINDIR} soinstall || die
96
97 # install extra_fonts
98 cp -a ${BUILDDIR}/fonts ${BINDIR}/usr/share/ghostscript || die
99
100 # install ijs
101 cd ${SRCDIR}/ijs
102 mmake DESTDIR=${BINDIR} install || die
103
104 # docs
105 cd ${SRCDIR}
106 minstalldocs CHANGES LICENSE README* || die
107 }

Properties

Name Value
svn:keywords Id