Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1534 - (hide annotations) (download)
Sun May 10 22:08:06 2009 UTC (15 years, 1 month ago) by niro
File size: 2260 byte(s)
fix build of ijs
1 niro 1531 # $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 niro 1534 autoreconf --install --force --verbose || die
57     cd ${SRCDIR}/ijs
58     autoreconf --install --force --verbose || die
59 niro 1531 }
60    
61     src_compile()
62     {
63     cd ${SRCDIR}
64    
65     mconfigure \
66     --with-ijs \
67     --with-jbig2dec \
68     --with-omni \
69     --without-gimp-print \
70     --with-x \
71     --enable-cups \
72     --enable-dynamic \
73     || die
74    
75     # does not like optimations
76     mmake -j1 || die
77    
78     # compile dynamic libs
79     mmake so -j1 || die
80    
81     # compile ijs
82     cd ${SRCDIR}/ijs
83     mconfigure || die
84     mmake -j1 || die
85     }
86    
87     src_install()
88     {
89     cd ${SRCDIR}
90    
91     # needed directories
92     minstalldir /usr/bin || die
93     minstalldir /usr/include || die
94     minstalldir /usr/$(mlibdir) || die
95    
96     mmake install_prefix=${BINDIR} install || die
97     mmake install_prefix=${BINDIR} soinstall || die
98    
99     # install extra_fonts
100     cp -a ${BUILDDIR}/fonts ${BINDIR}/usr/share/ghostscript || die
101    
102     # install ijs
103     cd ${SRCDIR}/ijs
104     mmake DESTDIR=${BINDIR} install || die
105    
106     # docs
107     cd ${SRCDIR}
108     minstalldocs CHANGES LICENSE README* || die
109     }

Properties

Name Value
svn:keywords Id