Magellan Linux

Annotation of /smage/trunk/extras/giflib/giflib-4.1.6-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1146 - (hide annotations) (download)
Thu Jan 27 21:39:15 2011 UTC (13 years, 3 months ago) by niro
File size: 1075 byte(s)
auto added: ver bump to 4.1.6-r1
1 niro 1146 # $Id: giflib-4.1.6-r3.smage2 3955 2009-11-14 13:16:07Z niro $
2    
3     PNAME="giflib"
4     PVER="4.1.6"
5     PBUILD="r1"
6    
7     PCATEGORIE="media-libs"
8     STATE="unstable"
9    
10     DESCRIPTION="giflib is a library for reading and writing gif images."
11     HOMEPAGE="http://sourceforge.net/projects/giflib"
12    
13     DEPEND=">= x11-libs/libXt-1
14     >= x11-libs/libX11-1
15     >= x11-libs/libICE-1
16     >= x11-libs/libSM-1"
17    
18     SRCFILE="${PNAME}-${PVER}.tar.bz2"
19     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
20    
21     sminclude mbuild
22    
23     SRC_URI=(
24     sourceforge://${PNAME}/${SRCFILE}
25     mirror://${PNAME}/${SRCFILE}
26     )
27    
28    
29     UP2DATE="updatecmd_sourceforge ${PNAME}"
30    
31     src_compile()
32     {
33     cd ${SRCDIR}
34     mconfigure --with-x || die
35     mmake || die
36     }
37    
38     preinstall()
39     {
40     if [[ ! -z $(magequery -n libungif) ]]
41     then
42     echo -e ${COLRED}
43     echo -e "Error: media-libs/libungif is installed!!"
44     echo -e "Work on libungif has been halted due to the expiration of the patent on LZW."
45     echo -e "Now all binaries of media-libs/giflib get installed and collide with libungif"
46     echo -e "Please uninstall media-libs/libungif first!"
47     echo -e ${COLDEFAULT}
48     die "libungif found!"
49     fi
50     }