Contents of /smage/trunk/extras/libjpeg/libjpeg-8b-r1.smage2
Parent Directory | Revision Log
Revision 997 -
(show annotations)
(download)
Thu Dec 16 21:30:04 2010 UTC (13 years, 9 months ago) by niro
File size: 1371 byte(s)
Thu Dec 16 21:30:04 2010 UTC (13 years, 9 months ago) by niro
File size: 1371 byte(s)
auto added: ver bump to 8b-r1
1 | # $Id: libjpeg-7-r1.smage2 540 2010-05-08 02:01:46Z 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 | MCORE_ONLY_KEEP="usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.*" |
19 | sminclude gnuconfig multilib mtools mcore-split |
20 | |
21 | SRC_URI=( |
22 | http://www.ijg.org/files/${SRCFILE} |
23 | mirror://${PNAME}/${SRCFILE} |
24 | mirror://${PNAME}/${PNAME}-6b-jpeglib.h-c++.patch |
25 | mirror://${PNAME}/${PNAME}-6b-debian-extras.patch |
26 | ) |
27 | |
28 | UP2DATE="updatecmd --nolist http://www.ijg.org/files/ | grep ${PNAME/lib}src.v | sed 's/.*v\(.*\).tar.*/\1/'" |
29 | |
30 | src_prepare() |
31 | { |
32 | munpack ${SRCFILE} || die |
33 | |
34 | # fix serveral build issues (multlib, more arches etc) |
35 | mpatch ${PNAME}-6b-jpeglib.h-c++.patch || die |
36 | # creates new files, -Np1 is neccessary |
37 | mpatch -Np1 ${PNAME}-6b-debian-extras.patch || die |
38 | } |
39 | |
40 | src_compile() |
41 | { |
42 | mconfigure --enable-static --enable-shared --enable-maxmem=1024 || die |
43 | mmake -j1 || die |
44 | mmake -j1 -C extra || die |
45 | } |
46 | |
47 | mcore_generic_src_install() |
48 | { |
49 | mmake DESTDIR=${BINDIR} install || die |
50 | |
51 | mmake -C extra \ |
52 | prefix=${BINDIR}/usr \ |
53 | libdir=${BINDIR}/usr/'$(mlibdir)' \ |
54 | mandir=${BINDIR}/usr/share/man/man1 \ |
55 | install || die |
56 | |
57 | minstalldocs README change.log *.txt || die |
58 | } |