Magellan Linux

Contents of /branches/magellan-next/core/giflib/giflib-4.1.6-r5.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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