Contents of /smage/branches/alx-0_6_0/core/libjpeg/libjpeg-8c-r1.smage2
Parent Directory | Revision Log
Revision 2059 -
(show annotations)
(download)
Wed May 11 20:58:47 2011 UTC (13 years, 1 month ago) by niro
File size: 1336 byte(s)
Wed May 11 20:58:47 2011 UTC (13 years, 1 month ago) by niro
File size: 1336 byte(s)
-remove old targets
1 | # $Id$ |
2 | |
3 | PNAME="libjpeg" |
4 | PVER="8c" |
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 | REMOVE_DEPRECATED_MAGE_TARGETS=1 |
19 | ALX_ONLY_KEEP="usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.*" |
20 | sminclude multilib mtools alx-split |
21 | |
22 | SRC_URI=( |
23 | http://www.ijg.org/files/${SRCFILE} |
24 | mirror://${PNAME}/${SRCFILE} |
25 | mirror://${PNAME}/${PNAME}-6b-jpeglib.h-c++.patch |
26 | mirror://${PNAME}/${PNAME}-6b-debian-extras.patch |
27 | ) |
28 | |
29 | UP2DATE="updatecmd --nolist http://www.ijg.org/files/ | grep ${PNAME/lib}src.v | sed 's/.*v\(.*\).tar.*/\1/'" |
30 | |
31 | src_prepare() |
32 | { |
33 | munpack ${SRCFILE} || die |
34 | |
35 | # fix serveral build issues (multlib, more arches etc) |
36 | mpatch ${PNAME}-6b-jpeglib.h-c++.patch || die |
37 | # creates new files, -Np1 is neccessary |
38 | mpatch -Np1 ${PNAME}-6b-debian-extras.patch || die |
39 | } |
40 | |
41 | src_compile() |
42 | { |
43 | mconfigure --enable-static --enable-shared --enable-maxmem=1024 || die |
44 | mmake -j1 || die |
45 | mmake -j1 -C extra || die |
46 | } |
47 | |
48 | alx_generic_src_install() |
49 | { |
50 | mmake DESTDIR=${BINDIR} install || die |
51 | |
52 | mmake -C extra \ |
53 | prefix=${BINDIR}/usr \ |
54 | libdir=${BINDIR}/usr/'$(mlibdir)' \ |
55 | mandir=${BINDIR}/usr/share/man/man1 \ |
56 | install || die |
57 | |
58 | minstalldocs README change.log *.txt || die |
59 | } |