Annotation of /branches/R11-stable/extras/libwmf/libwmf-0.2.8.4-r7.smage2
Parent Directory | Revision Log
Revision 15255 -
(hide annotations)
(download)
Wed Jan 2 11:02:19 2013 UTC (11 years, 5 months ago) by niro
File size: 1915 byte(s)
Wed Jan 2 11:02:19 2013 UTC (11 years, 5 months ago) by niro
File size: 1915 byte(s)
-release branches/R11-stable
1 | niro | 8261 | # $Id$ |
2 | |||
3 | PNAME="libwmf" | ||
4 | PVER="0.2.8.4" | ||
5 | PBUILD="r7" | ||
6 | |||
7 | niro | 10766 | PCAT="media-libs" |
8 | niro | 8261 | |
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/libxml2-2.7 | ||
17 | >= media-libs/freetype-2.4 | ||
18 | >= sys-libs/zlib-1.2.5 | ||
19 | >= media-libs/libpng-1.5 | ||
20 | >= media-libs/libjpeg-8 | ||
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 | ) | ||
41 | |||
42 | UP2DATE="updatecmd_sourceforge wvware ${PNAME} - ${PNAME}" | ||
43 | |||
44 | src_prepare() | ||
45 | { | ||
46 | munpack ${SRCFILE} || die | ||
47 | cd ${SRCDIR} | ||
48 | |||
49 | mpatch ${PNAME}-${PVER}-intoverflow.patch || die | ||
50 | mpatch ${PNAME}-${PVER}-build.patch || die | ||
51 | mpatch ${PNAME}-${PVER}-pngfix.patch || die | ||
52 | mpatch ${PNAME}-${PVER}-libpng-1.5.patch || die | ||
53 | mpatch ${PNAME}-${PVER}-gdk-pixbuf.patch || die | ||
54 | niro | 8263 | |
55 | libtoolize --verbose --install --force || die | ||
56 | mautoreconf || die | ||
57 | niro | 8261 | } |
58 | |||
59 | src_compile() | ||
60 | { | ||
61 | cd ${SRCDIR} | ||
62 | |||
63 | mconfigure \ | ||
64 | --with-gsfontdir=/usr/share/ghostscript/fonts \ | ||
65 | --with-fontdir=/usr/share/libwmf/fonts/ \ | ||
66 | --with-docdir=/usr/share/doc/${PNAME}-${PVER} \ | ||
67 | --disable-gd \ | ||
68 | --with-sys-gd \ | ||
69 | --with-libxml2 \ | ||
70 | || die | ||
71 | |||
72 | mmake || die | ||
73 | } | ||
74 | |||
75 | src_install() | ||
76 | { | ||
77 | cd ${SRCDIR} | ||
78 | |||
79 | mmake DESTDIR=${BINDIR} \ | ||
80 | fontdir=/usr/share/libwmf/fonts \ | ||
81 | wmfonedocdir=/usr/share/doc/${PNAME}-${PVER}/caolan \ | ||
82 | wmfdocdir=/usr/share/doc/${PNAME}-${PVER} \ | ||
83 | install || die | ||
84 | |||
85 | minstalldocs README AUTHORS COPYING CREDITS ChangeLog NEWS TODO || die | ||
86 | } |