Magellan Linux

Contents of /trunk/deprecated/xpdf/xpdf-3.02-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2947 - (show annotations) (download)
Wed Jul 15 23:16:16 2009 UTC (14 years, 10 months ago) by niro
File size: 3094 byte(s)
-moved to 'deprecated'
1 # $Header: /magellan-cvs/smage/xpdf/xpdf-3.02-r2.smage2,v 1.1 2008/03/24 14:25:05 niro Exp $
2
3 PNAME="xpdf"
4 PVER="3.02"
5 PBUILD="r2"
6
7 PCATEGORIE="app-text"
8 STATE="unstable"
9
10 DESCRIPTION="Xpdf is an open source viewer for Portable Document Format (PDF) files."
11 HOMEPAGE="http://www.foolabs.com/xpdf/"
12
13 sminclude xorg
14
15 DEPEND=">= x11-libs/libX11-1
16 >= x11-libs/libXpm-3.5
17 >= media-libs/freetype-2
18 >= x11-libs/lesstif-0.95
19 >= app-text/ghostscript-esp-8.15
20 >= media-libs/t1lib-5.1.0"
21
22 SRCFILE="${PNAME}-${PVER}.tar.gz"
23 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
24
25 SRC_URI=(
26 ftp://ftp.foolabs.com/pub/${PNAME}/${SRCFILE}
27 mirror://${PNAME}/${SRCFILE}
28 mirror://${PNAME}/${PNAME}-3.00-gcc41.patch
29 mirror://${PNAME}/${PNAME}-3.01-crash.patch
30 mirror://${PNAME}/${PNAME}-3.01-pdftoppm.patch
31 mirror://${PNAME}/${PNAME}-${PVER}pl1.patch
32 mirror://${PNAME}/${PNAME}-${PVER}pl2.patch
33 )
34
35 src_prepare()
36 {
37 munpack ${SRCFILE} || die
38 cd ${SRCDIR}
39
40 mpatch ${PNAME}-3.00-gcc41.patch || die
41 mpatch ${PNAME}-3.01-crash.patch || die
42 mpatch ${PNAME}-3.01-pdftoppm.patch || die
43
44 # security fix - CVE-2007-3387
45 mpatch ${PNAME}-${PVER}pl1.patch || die
46 # more security fixes
47 mpatch ${PNAME}-${PVER}pl2.patch || die
48
49 # rebuild makefiles
50 autoconf || die
51 }
52
53 src_compile()
54 {
55 cd ${SRCDIR}
56 mconfigure \
57 --enable-freetype2 \
58 --with-freetype2-includes=/usr/include/freetype2 \
59 --enable-opi \
60 --enable-multithreaded \
61 --with-t1-library \
62 || die
63
64 mmake || die
65 }
66
67 src_install()
68 {
69 cd ${SRCDIR}
70
71 # needed directories
72 install -d ${BINDIR}/etc || die
73
74 make DESTDIR=${BINDIR} install || die
75 minstalldocs ANNOUNCE CHANGES COPYING README || die
76
77 cat > ${BINDIR}/etc/xpdfrc << "EOF"
78 displayFontT1 Times-Roman /usr/share/ghostscript/fonts/n021003l.pfb
79 displayFontT1 Times-Italic /usr/share/ghostscript/fonts/n021023l.pfb
80 displayFontT1 Times-Bold /usr/share/ghostscript/fonts/n021004l.pfb
81 displayFontT1 Times-BoldItalic /usr/share/ghostscript/fonts/n021024l.pfb
82 displayFontT1 Helvetica /usr/share/ghostscript/fonts/n019003l.pfb
83 displayFontT1 Helvetica-Oblique /usr/share/ghostscript/fonts/n019023l.pfb
84 displayFontT1 Helvetica-Bold /usr/share/ghostscript/fonts/n019004l.pfb
85 displayFontT1 Helvetica-BoldOblique /usr/share/ghostscript/fonts/n019024l.pfb
86 displayFontT1 Courier /usr/share/ghostscript/fonts/n022003l.pfb
87 displayFontT1 Courier-Oblique /usr/share/ghostscript/fonts/n022023l.pfb
88 displayFontT1 Courier-Bold /usr/share/ghostscript/fonts/n022004l.pfb
89 displayFontT1 Courier-BoldOblique /usr/share/ghostscript/fonts/n022024l.pfb
90 displayFontT1 Symbol /usr/share/ghostscript/fonts/s050000l.pfb
91 displayFontT1 ZapfDingbats /usr/share/ghostscript/fonts/d050000l.pfb
92
93 #fontDir /usr/share/fonts/TTF
94 #
95 #psFile "|lpr"
96 #psPaperSize letter
97 #textEOL unix
98 #
99 #enableT1lib no
100 #enableFreeType yes
101 #antialias yes
102 #
103 #urlCommand "links -g %s"
104 EOF
105 }

Properties

Name Value
svn:keywords Id