Magellan Linux

Contents of /branches/R11-unstable/extras/libwmf/libwmf-0.2.8.4-r11.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32890 - (show annotations) (download)
Mon Apr 29 13:54:42 2019 UTC (5 years ago) by niro
File size: 3265 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="libwmf"
4 PVER="0.2.8.4"
5 PBUILD="r11"
6
7 PCAT="media-libs"
8
9 DESCRIPTION="Library for converting WMF files."
10 HOMEPAGE="http://wvware.sourceforge.net/"
11
12 DEPEND=">= x11-libs/libICE-1
13 >= x11-libs/libSM-1.2
14 >= x11-libs/libX11-1.6
15 >= x11-libs/gdk-pixbuf-2.36
16 >= dev-libs/libxml2-2.9
17 >= media-libs/freetype-2.6
18 >= sys-libs/zlib-1.2.8
19 >= media-libs/libpng-1.5
20 >= virtual/libjpeg
21 >= app-text/ghostscript-gpl-9"
22
23 SDEPEND=">= dev-util/pkgconfig-0.25
24 >= x11-libs/libXt-1.1
25 >= x11-libs/libXpm-3"
26
27 SRCFILE="${PNAME}-${PVER}.tar.gz"
28 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
29
30 sminclude mbuild
31
32 SRC_URI=(
33 sourceforge://wvware/${SRCFILE}
34 mirror://${PNAME}/${SRCFILE}
35 mirror://${PNAME}/${PNAME}-${PVER}-intoverflow.patch
36 mirror://${PNAME}/${PNAME}-${PVER}-build.patch
37 mirror://${PNAME}/${PNAME}-${PVER}-pngfix.patch
38 mirror://${PNAME}/${PNAME}-${PVER}-libpng-1.5.patch
39 mirror://${PNAME}/${PNAME}-${PVER}-gdk-pixbuf.patch
40 mirror://${PNAME}/${PNAME}-${PVER}-useafterfree-CVE-2009-1364.patch
41 mirror://${PNAME}/${PNAME}-${PVER}-CAN-2004-0941.patch
42 mirror://${PNAME}/${PNAME}-${PVER}-CVE-2007-0455.patch
43 mirror://${PNAME}/${PNAME}-${PVER}-CVE-2007-2756.patch
44 mirror://${PNAME}/${PNAME}-${PVER}-CVE-2007-3472.patch
45 mirror://${PNAME}/${PNAME}-${PVER}-CVE-2007-3473.patch
46 mirror://${PNAME}/${PNAME}-${PVER}-CVE-2007-3477.patch
47 mirror://${PNAME}/${PNAME}-${PVER}-CVE-2009-3546.patch
48 mirror://${PNAME}/${PNAME}-${PVER}-CVE-2015-0848+CVE-2015-4588.patch
49 mirror://${PNAME}/${PNAME}-${PVER}-CVE-2015-4695.patch
50 mirror://${PNAME}/${PNAME}-${PVER}-CVE-2015-4696.patch
51 mirror://${PNAME}/${PNAME}-${PVER}-CVE-2016-9011.patch
52 )
53
54 UP2DATE="updatecmd_sourceforge wvware ${PNAME} - ${PNAME}"
55
56 src_prepare()
57 {
58 munpack ${SRCFILE} || die
59 cd ${SRCDIR}
60
61 mpatch ${PNAME}-${PVER}-intoverflow.patch || die
62 mpatch ${PNAME}-${PVER}-build.patch || die
63 mpatch ${PNAME}-${PVER}-pngfix.patch || die
64 mpatch ${PNAME}-${PVER}-libpng-1.5.patch || die
65 mpatch ${PNAME}-${PVER}-gdk-pixbuf.patch || die
66 mpatch ${PNAME}-${PVER}-useafterfree-CVE-2009-1364.patch || die
67 mpatch ${PNAME}-${PVER}-CAN-2004-0941.patch || die
68 mpatch ${PNAME}-${PVER}-CVE-2007-0455.patch || die
69 mpatch ${PNAME}-${PVER}-CVE-2007-2756.patch || die
70 mpatch ${PNAME}-${PVER}-CVE-2007-3472.patch || die
71 mpatch ${PNAME}-${PVER}-CVE-2007-3473.patch || die
72 mpatch ${PNAME}-${PVER}-CVE-2007-3477.patch || die
73 mpatch ${PNAME}-${PVER}-CVE-2009-3546.patch || die
74 mpatch ${PNAME}-${PVER}-CVE-2015-0848+CVE-2015-4588.patch || die
75 mpatch ${PNAME}-${PVER}-CVE-2015-4695.patch || die
76 mpatch ${PNAME}-${PVER}-CVE-2015-4696.patch || die
77 mpatch ${PNAME}-${PVER}-CVE-2016-9011.patch || die
78
79 libtoolize --verbose --install --force || die
80 mautoreconf || die
81 }
82
83 src_compile()
84 {
85 cd ${SRCDIR}
86
87 mconfigure \
88 --with-gsfontdir=/usr/share/ghostscript/fonts \
89 --with-fontdir=/usr/share/libwmf/fonts/ \
90 --with-docdir=/usr/share/doc/${PNAME}-${PVER} \
91 --disable-gd \
92 --with-sys-gd \
93 --with-libxml2 \
94 || die
95
96 mmake || die
97 }
98
99 src_install()
100 {
101 cd ${SRCDIR}
102
103 mmake DESTDIR=${BINDIR} \
104 fontdir=/usr/share/libwmf/fonts \
105 wmfonedocdir=/usr/share/doc/${PNAME}-${PVER}/caolan \
106 wmfdocdir=/usr/share/doc/${PNAME}-${PVER} \
107 install || die
108
109 minstalldocs README AUTHORS COPYING CREDITS ChangeLog NEWS TODO || die
110 }