Annotation of /smage/trunk/core/libjpeg/libjpeg-8d-r4.smage2
Parent Directory | Revision Log
Revision 6570 -
(hide annotations)
(download)
Tue Jul 14 09:48:48 2015 UTC (9 years, 2 months ago) by niro
File size: 1239 byte(s)
Tue Jul 14 09:48:48 2015 UTC (9 years, 2 months ago) by niro
File size: 1239 byte(s)
auto added: ver bump to 8d-r4
1 | niro | 6570 | # $Id$ |
2 | |||
3 | PNAME="libjpeg" | ||
4 | PVER="8d" | ||
5 | PBUILD="r4" | ||
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 | ALX_PKG_KEEP="usr/$(mlibdir)/*.so.*" | ||
18 | sminclude gnuconfig multilib mtools alx-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 -n 's/.*v\(.*\).tar.*/\1/;$ p'" | ||
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-shared || die | ||
42 | mmake -j1 || die | ||
43 | mmake -j1 -C extra || die | ||
44 | } | ||
45 | |||
46 | alx_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 | } |