Contents of /smage/trunk/deprecated/libjpeg/libjpeg-8d-r5.smage2
Parent Directory | Revision Log
Revision 10243 -
(show annotations)
(download)
Thu Aug 17 08:42:01 2017 UTC (7 years, 1 month ago) by niro
Original Path: smage/trunk/core/libjpeg/libjpeg-8d-r5.smage2
File size: 1239 byte(s)
Thu Aug 17 08:42:01 2017 UTC (7 years, 1 month ago) by niro
Original Path: smage/trunk/core/libjpeg/libjpeg-8d-r5.smage2
File size: 1239 byte(s)
auto added: ver bump to 8d-r5
1 | # $Id$ |
2 | |
3 | PNAME="libjpeg" |
4 | PVER="8d" |
5 | PBUILD="r5" |
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 | } |