Magellan Linux

Contents of /trunk/core/ghostscript-gpl/ghostscript-gpl-8.70-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3596 - (show annotations) (download)
Mon Oct 26 19:03:00 2009 UTC (14 years, 6 months ago) by niro
File size: 3938 byte(s)
-fixed libtool issues
1 # $Id$
2
3 PNAME="ghostscript-gpl"
4 PVER="8.70"
5 PBUILD="r1"
6
7 PCATEGORIE="app-text"
8 STATE="unstable"
9
10 DESCRIPTION="GPL Ghostscript - the most current Ghostscript, AFPL, relicensed."
11 HOMEPAGE="http://ghostscript.com/"
12
13 DEPEND=">= media-libs/libjpeg-7
14 >= media-libs/libpng-1.2
15 >= media-libs/libtiff-3.9
16 >= sys-libs/zlib-1.2
17 >= x11-libs/gtk2+-2.18
18 >= x11-libs/libXt-1
19 >= x11-libs/libXext-1
20 >= media-libs/fontconfig-2
21 >= app-text/libpaper-1.1.23
22 >= x11-libs/cairo-1.8"
23
24 SDEPEND=">= net-print/cups-1.4
25 >= dev-util/pkgconfig-0.23"
26
27 SRCFILE="${PNAME/-gpl/}-${PVER}.tar.bz2"
28 EXTRA_SRCFILE="ghostscript-fonts-std-8.11.tar.gz"
29
30 SRCDIR="${BUILDDIR}/${PNAME/-gpl/}-${PVER}"
31
32 sminclude mtools
33
34 SRC_URI=(
35 sourceforge://${PNAME/-gpl/}/${SRCFILE}
36 mirror://${PNAME}/${SRCFILE}
37 mirror://${PNAME}/${EXTRA_SRCFILE}
38 mirror://${PNAME}/${PNAME}-${PVER}-multilib.patch
39 mirror://${PNAME}/${PNAME}-${PVER}-scripts.patch
40 mirror://${PNAME}/${PNAME}-${PVER}-noopt.patch
41 mirror://${PNAME}/${PNAME}-${PVER}-fpic.patch
42 mirror://${PNAME}/${PNAME}-${PVER}-runlibfileifexists.patch
43 mirror://${PNAME}/${PNAME}-${PVER}-system-jasper.patch
44 mirror://${PNAME}/${PNAME}-${PVER}-pksmraw.patch
45 mirror://${PNAME}/${PNAME}-${PVER}-jbig2dec-nullderef.patch
46 mirror://${PNAME}/${PNAME}-${PVER}-respect-gsc-ldflags.patch
47 )
48
49 UP2DATE="updatecmd_sourceforge ${PNAME/-gpl/}"
50
51 src_prepare()
52 {
53 munpack ${SRCFILE} || die
54 munpack ${EXTRA_SRCFILE} || die
55 cd ${SRCDIR}
56
57 # remove internal copies of expat, jasper, jpeg, libpng and zlib
58 rm -r expat || die
59 rm -r jasper || die
60 rm -r jpeg || die
61 rm -r libpng || die
62 rm -r zlib || die
63 # remove internal urw-fonts
64 rm -r Resource/Font || die
65
66 # apply several fedora patches
67 mpatch ${PNAME}-${PVER}-multilib.patch || die
68 mpatch ${PNAME}-${PVER}-scripts.patch || die
69 mpatch ${PNAME}-${PVER}-noopt.patch || die
70 mpatch ${PNAME}-${PVER}-fpic.patch || die
71 mpatch ${PNAME}-${PVER}-runlibfileifexists.patch || die
72 mpatch ${PNAME}-${PVER}-system-jasper.patch || die
73 mpatch ${PNAME}-${PVER}-pksmraw.patch || die
74 mpatch ${PNAME}-${PVER}-jbig2dec-nullderef.patch || die
75 # respect LDFLAGS patch from gentoo
76 mpatch ${PNAME}-${PVER}-respect-gsc-ldflags.patch || die
77
78 # search path fix
79 sed -i -e "s:\$\(gsdatadir\)/lib:/usr/share/ghostscript/${PVER:0:4}/$(mlibdir):" \
80 -e 's:$(gsdir)/fonts:/usr/share/ghostscript/fonts:' \
81 base/Makefile.in base/*.mak || die
82
83 # fix doc pathes
84 sed -i -e "s:exdir=.*:exdir=/usr/share/doc/${PNAME}-${PVER}/examples:" \
85 -e "s:docdir=.*:docdir=/usr/share/doc/${PNAME}-${PVER}/html:" \
86 -e "s:GS_DOCDIR=.*:GS_DOCDIR=/usr/share/doc/${PNAME}-${PVER}/html:" \
87 base/Makefile.in base/*.mak || die
88
89 # fix libtool issues
90 mlibtoolize || die
91
92 # regen makefiles
93 autoreconf --install --force --verbose || die
94 cd ${SRCDIR}/ijs
95 autoreconf --install --force --verbose || die
96 }
97
98 src_compile()
99 {
100 cd ${SRCDIR}
101
102 mconfigure \
103 --with-ijs \
104 --with-jbig2dec \
105 --with-omni \
106 --without-gimp-print \
107 --with-x \
108 --with-drivers=ALL \
109 --with-libpaper \
110 --enable-fontconfig \
111 --enable-cups \
112 --enable-dynamic \
113 --enable-gtk \
114 --enable-cairo \
115 --disable-jasper \
116 --disable-compile-inits \
117 || die
118
119
120 # does not like optimations
121 mmake -j1 so all || die
122
123 # compile ijs
124 cd ${SRCDIR}/ijs
125 mconfigure || die
126 mmake -j1 || die
127 }
128
129 src_install()
130 {
131 cd ${SRCDIR}
132
133 # needed directories
134 minstalldir /usr/bin || die
135 minstalldir /usr/include || die
136 minstalldir /usr/$(mlibdir) || die
137
138 mmake install_prefix=${BINDIR} install || die
139 mmake install_prefix=${BINDIR} soinstall || die
140
141 # install extra_fonts
142 cp -a ${BUILDDIR}/fonts ${BINDIR}/usr/share/ghostscript || die
143
144 # install ijs
145 cd ${SRCDIR}/ijs
146 mmake DESTDIR=${BINDIR} install || die
147
148 # docs
149 cd ${SRCDIR}
150 minstalldocs CHANGES LICENSE README* || die
151
152 # cleanup
153 rm -r ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/html/README || die
154 rm -r ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/html/PUBLIC || die
155 minstalldoc doc/README || die
156 }

Properties

Name Value
svn:keywords Id