Magellan Linux

Contents of /branches/magellan-next/core/libjpeg/libjpeg-8b-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6357 - (show annotations) (download)
Sun Aug 22 20:41:14 2010 UTC (13 years, 9 months ago) by niro
File size: 1286 byte(s)
auto added: ver bump to 8b-r1
1 # $Id: libjpeg-7-r1.smage2 3389 2009-10-20 21:19:00Z niro $
2
3 PNAME="libjpeg"
4 PVER="8b"
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
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 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 }