Contents of /smage/branches/alx-0_6_0/core/imlib/imlib-1.9.15-r2.smage2
Parent Directory | Revision Log
Revision 1911 -
(show annotations)
(download)
Tue May 3 16:42:34 2011 UTC (13 years, 4 months ago) by niro
File size: 2005 byte(s)
Tue May 3 16:42:34 2011 UTC (13 years, 4 months ago) by niro
File size: 2005 byte(s)
-added patch to fix build against libpng-1.5 and use automake-1.9 to fix automake issues
1 | # $Id$ |
2 | |
3 | PNAME="imlib" |
4 | PVER="1.9.15" |
5 | PBUILD="r2" |
6 | |
7 | PCATEGORIE="media-libs" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Image library for X11" |
11 | HOMEPAGE="http://ftp.gnome.org/pub/GNOME/sources/imlib/" |
12 | |
13 | DEPEND=">= media-libs/libtiff-3.9 |
14 | >= media-libs/giflib-4.1.6 |
15 | >= media-libs/libpng-1.5 |
16 | >= media-libs/libjpeg-8" |
17 | |
18 | SDEPEND=">= virtual/sed" |
19 | |
20 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
21 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
22 | |
23 | REMOVE_DEPRECATED_MAGE_TARGETS=1 |
24 | sminclude alx |
25 | |
26 | SRC_URI=( |
27 | http://ftp.gnome.org/pub/GNOME/sources/${PNAME}/${PVER:0:3}/${SRCFILE} |
28 | mirror://${PNAME}/${SRCFILE} |
29 | mirror://${PNAME}/${PNAME}-${PVER}-m4-underquoted.patch |
30 | mirror://${PNAME}/${PNAME}-${PVER}-asneeded.patch |
31 | mirror://${PNAME}/${PNAME}-${PVER}-conditional-gtk1.patch |
32 | mirror://${PNAME}/${PNAME}-${PVER}-fix-rendering.patch |
33 | mirror://${PNAME}/${PNAME}-${PVER}-libpng15.patch |
34 | ) |
35 | |
36 | # fake |
37 | UP2DATE="echo ${PVER}" |
38 | |
39 | src_prepare() |
40 | { |
41 | munpack ${SRCFILE} || die |
42 | cd ${SRCDIR} |
43 | |
44 | # fixes m4 warnings |
45 | mpatch ${PNAME}-${PVER}-m4-underquoted.patch || die |
46 | |
47 | # fix link issues with libtool22 |
48 | mpatch ${PNAME}-${PVER}-asneeded.patch || die |
49 | |
50 | # make gtk1 conditional |
51 | mpatch ${PNAME}-${PVER}-conditional-gtk1.patch || die |
52 | |
53 | # fix rendering issues with EXA enabled |
54 | mpatch ${PNAME}-${PVER}-fix-rendering.patch || die |
55 | |
56 | # fix build with libpng-1.5 |
57 | mpatch ${PNAME}-${PVER}-libpng15.patch || die |
58 | |
59 | # fix config script |
60 | sed -i -e "49,51D" -e "55,57D" imlib-config.in || die |
61 | |
62 | # the gtk1 patch provides the missing gtk1.m4, so be sure to include this one |
63 | export WANT_AUTOMAKE=1.9 |
64 | autoreconf --verbose --install --force --include=m4 || die |
65 | |
66 | # fix libtool issues |
67 | mlibtoolize || die |
68 | } |
69 | |
70 | src_compile() |
71 | { |
72 | cd ${SRCDIR} |
73 | |
74 | # no gdk support anymore, gtk1+ is deprecated for a long time |
75 | mconfigure --sysconfdir=/etc/imlib --disable-gdk --disable-gdktest || die |
76 | mmake || die |
77 | } |
78 | |
79 | src_install() |
80 | { |
81 | cd ${SRCDIR} |
82 | minstall \ |
83 | includedir=${BINDIR}/usr/include \ |
84 | sysconfdir=${BINDIR}/etc/imlib \ |
85 | || die |
86 | |
87 | minstalldocs ABOUT-NLS AUTHORS ChangeLog COPYING* NEWS README || die |
88 | } |