Annotation of /branches/magellan-next/extras/libwmf/libwmf-0.2.8.4-r7.smage2
Parent Directory | Revision Log
Revision 8261 -
(hide annotations)
(download)
Wed Jul 13 15:51:33 2011 UTC (12 years, 10 months ago) by niro
File size: 1890 byte(s)
Wed Jul 13 15:51:33 2011 UTC (12 years, 10 months ago) by niro
File size: 1890 byte(s)
auto added: ver bump to 0.2.8.4-r7
1 | niro | 8261 | # $Id$ |
2 | |||
3 | PNAME="libwmf" | ||
4 | PVER="0.2.8.4" | ||
5 | PBUILD="r7" | ||
6 | |||
7 | PCATEGORIE="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 | ||
14 | >= x11-libs/libX11-1 | ||
15 | >= x11-libs/gdk-pixbuf-2.22 | ||
16 | >= dev-libs/expat-2 | ||
17 | >= dev-libs/libxml2-2.7 | ||
18 | >= media-libs/freetype-2.4 | ||
19 | >= sys-libs/zlib-1.2.5 | ||
20 | >= media-libs/libpng-1.5 | ||
21 | >= media-libs/libjpeg-8 | ||
22 | >= app-text/ghostscript-gpl-9" | ||
23 | |||
24 | SDEPEND=">= dev-util/pkgconfig-0.25 | ||
25 | >= x11-libs/libXt-1.1 | ||
26 | >= x11-libs/libXpm-3" | ||
27 | |||
28 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
29 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
30 | |||
31 | sminclude mbuild | ||
32 | |||
33 | SRC_URI=( | ||
34 | sourceforge://wvware/${SRCFILE} | ||
35 | mirror://${PNAME}/${SRCFILE} | ||
36 | mirror://${PNAME}/${PNAME}-${PVER}-intoverflow.patch | ||
37 | mirror://${PNAME}/${PNAME}-${PVER}-build.patch | ||
38 | mirror://${PNAME}/${PNAME}-${PVER}-pngfix.patch | ||
39 | mirror://${PNAME}/${PNAME}-${PVER}-libpng-1.5.patch | ||
40 | mirror://${PNAME}/${PNAME}-${PVER}-gdk-pixbuf.patch | ||
41 | ) | ||
42 | |||
43 | UP2DATE="updatecmd_sourceforge wvware ${PNAME} - ${PNAME}" | ||
44 | |||
45 | src_prepare() | ||
46 | { | ||
47 | munpack ${SRCFILE} || die | ||
48 | cd ${SRCDIR} | ||
49 | |||
50 | mpatch ${PNAME}-${PVER}-intoverflow.patch || die | ||
51 | mpatch ${PNAME}-${PVER}-build.patch || die | ||
52 | mpatch ${PNAME}-${PVER}-pngfix.patch || die | ||
53 | mpatch ${PNAME}-${PVER}-libpng-1.5.patch || die | ||
54 | mpatch ${PNAME}-${PVER}-gdk-pixbuf.patch || die | ||
55 | } | ||
56 | |||
57 | src_compile() | ||
58 | { | ||
59 | cd ${SRCDIR} | ||
60 | |||
61 | mconfigure \ | ||
62 | --with-gsfontdir=/usr/share/ghostscript/fonts \ | ||
63 | --with-fontdir=/usr/share/libwmf/fonts/ \ | ||
64 | --with-docdir=/usr/share/doc/${PNAME}-${PVER} \ | ||
65 | --disable-gd \ | ||
66 | --with-sys-gd \ | ||
67 | --with-expat \ | ||
68 | --with-libxml2 \ | ||
69 | || die | ||
70 | |||
71 | mmake || die | ||
72 | } | ||
73 | |||
74 | src_install() | ||
75 | { | ||
76 | cd ${SRCDIR} | ||
77 | |||
78 | mmake DESTDIR=${BINDIR} \ | ||
79 | fontdir=/usr/share/libwmf/fonts \ | ||
80 | wmfonedocdir=/usr/share/doc/${PNAME}-${PVER}/caolan \ | ||
81 | wmfdocdir=/usr/share/doc/${PNAME}-${PVER} \ | ||
82 | install || die | ||
83 | |||
84 | minstalldocs README AUTHORS COPYING CREDITS ChangeLog NEWS TODO || die | ||
85 | } |