Magellan Linux

Annotation of /smage/trunk/extras/libjpeg/libjpeg-7-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 539 - (hide annotations) (download)
Sat May 8 01:58:45 2010 UTC (14 years ago) by niro
File size: 1258 byte(s)
auto added: ver bump to 7-r1
1 niro 539 # $Id$
2    
3     PNAME="libjpeg"
4     PVER="7"
5     PBUILD="r1"
6    
7     PCATEGORIE="media-libs"
8     STATE="unstable"
9    
10     DESCRIPTION="jpeg picture compression library."
11     HOMEPAGE="http://www.ijg.org/"
12    
13     DEPEND=">= virtual/glibc"
14    
15     SRCFILE="${PNAME/lib}src.v${PVER}.tar.gz"
16     SRCDIR="${BUILDDIR}/${PNAME/lib}-${PVER}"
17    
18     sminclude gnuconfig multilib mtools mcore-split
19    
20     SRC_URI=(
21     http://www.ijg.org/files/${SRCFILE}
22     mirror://${PNAME}/${SRCFILE}
23     mirror://${PNAME}/${PNAME}-6b-jpeglib.h-c++.patch
24     mirror://${PNAME}/${PNAME}-6b-debian-extras.patch
25     )
26    
27     UP2DATE="updatecmd --nolist http://www.ijg.org/files/ | grep ${PNAME/lib}src.v | sed 's/.*v\(.*\).tar.*/\1/'"
28    
29     src_prepare()
30     {
31     munpack ${SRCFILE} || die
32    
33     # fix serveral build issues (multlib, more arches etc)
34     mpatch ${PNAME}-6b-jpeglib.h-c++.patch || die
35     # creates new files, -Np1 is neccessary
36     mpatch -Np1 ${PNAME}-6b-debian-extras.patch || die
37     }
38    
39     src_compile()
40     {
41     mconfigure --enable-static --enable-shared --enable-maxmem=1024 || die
42     mmake -j1 || die
43     mmake -j1 -C extra || die
44     }
45    
46     mcore_generic_src_install()
47     {
48     mmake DESTDIR=${BINDIR} install || die
49    
50     mmake -C extra \
51     prefix=${BINDIR}/usr \
52     libdir=${BINDIR}/usr/'$(mlibdir)' \
53     mandir=${BINDIR}/usr/share/man/man1 \
54     install || die
55    
56     minstalldocs README change.log *.txt || die
57     }

Properties

Name Value
svn:keywords Id