Magellan Linux

Contents of /branches/R11-unstable/extras/libjpeg/libjpeg-8d-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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