Magellan Linux

Contents of /trunk/core/libjpeg/libjpeg-7-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3388 - (show annotations) (download)
Tue Oct 20 21:15:21 2009 UTC (14 years, 6 months ago) by niro
File size: 1581 byte(s)
auto added: ver bump to 7-r1
1 # $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
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
49 # needed directories
50 minstalldir /usr/{include,bin,share/man/man1} || die
51 all-abis minstalldir /usr/'$(mlibdir)' || die
52
53 mmake \
54 prefix=${BINDIR}/usr \
55 libdir=${BINDIR}/usr/'$(mlibdir)' \
56 mandir=${BINDIR}/usr/share/man/man1 \
57 install || die
58
59 mmake -C extra \
60 prefix=${BINDIR}/usr \
61 libdir=${BINDIR}/usr/'$(mlibdir)' \
62 mandir=${BINDIR}/usr/share/man/man1 \
63 install || die
64
65 # missing header
66 minstallfile jpegint.h /usr/include || die
67
68 minstalldocs README change.log coderules.doc filelist.doc \
69 jconfig.doc structure.doc usage.doc wizard.doc || die
70 }

Properties

Name Value
svn:keywords Id