Magellan Linux

Contents of /smage/trunk/core/giflib/giflib-4.1.6-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1494 - (show annotations) (download)
Thu Mar 3 14:22:05 2011 UTC (13 years, 1 month ago) by niro
File size: 1147 byte(s)
-rev bump for mass rebuild
1 # $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="r2"
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 MCORE_ONLY_KEEP="usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.*"
22 sminclude mbuild mcore-split
23
24 SRC_URI=(
25 sourceforge://${PNAME}/${SRCFILE}
26 mirror://${PNAME}/${SRCFILE}
27 )
28
29
30 UP2DATE="updatecmd_sourceforge ${PNAME}"
31
32 src_compile()
33 {
34 cd ${SRCDIR}
35 mconfigure --with-x || die
36 mmake || die
37 }
38
39 preinstall()
40 {
41 if [[ ! -z $(magequery -n libungif) ]]
42 then
43 echo -e ${COLRED}
44 echo -e "Error: media-libs/libungif is installed!!"
45 echo -e "Work on libungif has been halted due to the expiration of the patent on LZW."
46 echo -e "Now all binaries of media-libs/giflib get installed and collide with libungif"
47 echo -e "Please uninstall media-libs/libungif first!"
48 echo -e ${COLDEFAULT}
49 die "libungif found!"
50 fi
51 }