Contents of /trunk/extras/ghostscript-gpl/ghostscript-gpl-9.10-r1.smage2
Parent Directory
|
Revision Log
Revision 20615 -
(show annotations)
(download)
Fri Jan 31 14:38:53 2014 UTC (10 years, 4 months ago) by niro
File size: 4084 byte(s)
Fri Jan 31 14:38:53 2014 UTC (10 years, 4 months ago) by niro
File size: 4084 byte(s)
auto added: ver bump to 9.10-r1
1 | # $Id$ |
2 | |
3 | PNAME="ghostscript-gpl" |
4 | PVER="9.10" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="app-text" |
8 | |
9 | DESCRIPTION="GPL Ghostscript - the most current Ghostscript, AFPL, relicensed." |
10 | HOMEPAGE="http://ghostscript.com/" |
11 | |
12 | DEPEND=">= media-libs/libjpeg-8 |
13 | >= media-libs/libpng-1.5 |
14 | >= media-libs/libtiff-4 |
15 | >= net-print/libcups-1.6 |
16 | >= sys-libs/zlib-1.2 |
17 | >= x11-libs/gtk2+-2.24 |
18 | >= x11-libs/libXt-1 |
19 | >= x11-libs/libXext-1 |
20 | >= media-libs/fontconfig-2.10 |
21 | >= media-libs/freetype-2.5 |
22 | >= media-libs/libjasper-1.900 |
23 | >= app-text/libpaper-1.1.24 |
24 | >= x11-libs/cairo-1.12 |
25 | >= sys-libs/libstdc++-4.8" |
26 | |
27 | SDEPEND=">= net-print/cups-1.4 |
28 | >= dev-util/pkgconfig-0.25" |
29 | |
30 | SRCFILE="${PNAME/-gpl/}-${PVER}.tar.gz" |
31 | EXTRA_SRCFILE="ghostscript-fonts-std-8.11.tar.gz" |
32 | |
33 | SRCDIR="${BUILDDIR}/${PNAME/-gpl/}-${PVER}" |
34 | |
35 | sminclude mtools multilib |
36 | |
37 | SRC_URI=( |
38 | http://downloads.ghostscript.com/public/${SRCFILE} |
39 | http://ghostscript.com/releases/${SRCFILE} |
40 | mirror://${PNAME}/${SRCFILE} |
41 | mirror://${PNAME}/${EXTRA_SRCFILE} |
42 | mirror://${PNAME}/${PNAME}-8.70-multilib.patch |
43 | mirror://${PNAME}/${PNAME}-9.04-scripts.patch |
44 | mirror://${PNAME}/${PNAME}-8.70-noopt.patch |
45 | mirror://${PNAME}/${PNAME}-9.04-runlibfileifexists.patch |
46 | mirror://${PNAME}/${PNAME}-8.70-pksmraw.patch |
47 | mirror://${PNAME}/${PNAME}-9.05-cups-filters.patch |
48 | ) |
49 | |
50 | UP2DATE="updatecmd_sourceforge ${PNAME/-gpl/} 'GPL Ghostscript' - ${PNAME/-gpl/}" |
51 | |
52 | src_prepare() |
53 | { |
54 | munpack ${SRCFILE} || die |
55 | oldmunpack ${EXTRA_SRCFILE} || die |
56 | |
57 | # remove internal copies of libaries to enforce use of system-libs |
58 | all-abis rm -r ${SRCDIR}-$(mabi)/expat || die |
59 | all-abis rm -r ${SRCDIR}-$(mabi)/jasper || die |
60 | all-abis rm -r ${SRCDIR}-$(mabi)/jpeg || die |
61 | all-abis rm -r ${SRCDIR}-$(mabi)/libpng || die |
62 | all-abis rm -r ${SRCDIR}-$(mabi)/zlib || die |
63 | all-abis rm -r ${SRCDIR}-$(mabi)/tiff || die |
64 | all-abis rm -r ${SRCDIR}-$(mabi)/lcms || die |
65 | all-abis rm -r ${SRCDIR}-$(mabi)/lcms2 || die |
66 | all-abis rm -r ${SRCDIR}-$(mabi)/freetype || die |
67 | all-abis rm -r ${SRCDIR}-$(mabi)/cups/libs || die |
68 | # remove internal urw-fonts |
69 | all-abis rm -r ${SRCDIR}-$(mabi)/Resource/Font || die |
70 | |
71 | # apply several fedora patches |
72 | mpatch ${PNAME}-8.70-multilib.patch || die |
73 | mpatch ${PNAME}-9.04-scripts.patch || die |
74 | mpatch ${PNAME}-8.70-noopt.patch || die |
75 | mpatch ${PNAME}-9.04-runlibfileifexists.patch || die |
76 | mpatch ${PNAME}-8.70-pksmraw.patch || die |
77 | mpatch ${PNAME}-9.05-cups-filters.patch || die |
78 | |
79 | # search path fix |
80 | all-abis 'sed -i "s:\$\(gsdatadir\)/lib:/usr/share/ghostscript/${PVER%.*}/$(mlibdir):" base/Makefile.in base/*.mak || die' |
81 | |
82 | # fix doc pathes |
83 | all-abis 'sed -i -e "s:exdir=.*:exdir=/usr/share/doc/${PNAME}-${PVER}/examples:" |
84 | -e "s:docdir=.*:docdir=/usr/share/doc/${PNAME}-${PVER}/html:" |
85 | -e "s:GS_DOCDIR=.*:GS_DOCDIR=/usr/share/doc/${PNAME}-${PVER}/html:" |
86 | base/Makefile.in base/*.mak || die' |
87 | |
88 | # fix libtool issues |
89 | mlibtoolize || die |
90 | # regen makefiles |
91 | export WANT_AUTOMAKE=1.12 |
92 | mautoreconf || die |
93 | |
94 | # same for ijs dir too |
95 | SRCSUBDIR="ijs" mlibtoolize || die |
96 | SRCSUBDIR="ijs" mautoreconf || die |
97 | } |
98 | |
99 | src_compile() |
100 | { |
101 | mconfigure \ |
102 | --with-ijs \ |
103 | --with-jbig2dec \ |
104 | --with-omni \ |
105 | --without-gimp-print \ |
106 | --with-x \ |
107 | --with-drivers=ALL \ |
108 | --with-libpaper \ |
109 | --enable-fontconfig \ |
110 | --enable-freetype \ |
111 | --enable-cups \ |
112 | --enable-openjpeg \ |
113 | --enable-dynamic \ |
114 | --enable-gtk \ |
115 | --enable-cairo \ |
116 | --with-jasper \ |
117 | --with-system-libtiff \ |
118 | --disable-compile-inits \ |
119 | --with-fontpath=/usr/share/fonts/Type1:/usr/share/fonts \ |
120 | || die |
121 | |
122 | |
123 | # does not like optimations |
124 | mmake -j1 so all || die |
125 | |
126 | # compile ijs |
127 | SRCSUBDIR="ijs" mconfigure --enable-shared || die |
128 | SRCSUBDIR="ijs" mmake -j1 || die |
129 | } |
130 | |
131 | src_install() |
132 | { |
133 | # needed directories |
134 | minstalldir /usr/bin || die |
135 | minstalldir /usr/include || die |
136 | minstalldir /usr/$(mlibdir) || die |
137 | |
138 | mmake -j1 DESTDIR=${BINDIR} install || die |
139 | mmake -j1 DESTDIR=${BINDIR} soinstall || die |
140 | |
141 | # install extra_fonts |
142 | minstalldir /usr/share/ghostscript || die |
143 | cp -a ${BUILDDIR}/fonts ${BINDIR}/usr/share/ghostscript || die |
144 | |
145 | # install ijs |
146 | SRCSUBDIR="ijs" mmake DESTDIR=${BINDIR} install || die |
147 | |
148 | # docs |
149 | minstalldocs LICENSE doc/{AUTHORS,COPYING,README} || die |
150 | } |