Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 25589 - (show annotations) (download)
Tue Nov 25 03:59:38 2014 UTC (9 years, 5 months ago) by niro
File size: 1919 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="libwmf"
4 PVER="0.2.8.4"
5 PBUILD="r8"
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.40
16 >= dev-libs/libxml2-2.9
17 >= media-libs/freetype-2.5
18 >= sys-libs/zlib-1.2.8
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
55 libtoolize --verbose --install --force || die
56 mautoreconf || die
57 }
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 }