Annotation of /trunk/core/libjpeg/libjpeg-6b-r10.smage2
Parent Directory | Revision Log
Revision 879 -
(hide annotations)
(download)
Sat Dec 27 22:53:58 2008 UTC (15 years, 9 months ago) by niro
File size: 2489 byte(s)
Sat Dec 27 22:53:58 2008 UTC (15 years, 9 months ago) by niro
File size: 2489 byte(s)
-rev bump to 6b-r10
1 | niro | 879 | # $Header: /magellan-cvs/smage/libjpeg/libjpeg-6b-r9.smage2,v 1.2 2008/02/12 13:06:11 niro Exp $ |
2 | |||
3 | PNAME="libjpeg" | ||
4 | PVER="6b" | ||
5 | PBUILD="r10" | ||
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 | sminclude gnuconfig multilib mtools | ||
19 | |||
20 | SRC_URI=( | ||
21 | http://www.ijg.org/files/${SRCFILE} | ||
22 | mirror://${PNAME}/${SRCFILE} | ||
23 | mirror://${PNAME}/${PNAME}-${PVER}-crop.patch | ||
24 | mirror://${PNAME}/${PNAME}-${PVER}-crop-man.patch | ||
25 | mirror://${PNAME}/${PNAME}-${PVER}-rdjpgcom-locale.patch | ||
26 | mirror://${PNAME}/${PNAME}-${PVER}-jpeglib.h-c++.patch | ||
27 | mirror://${PNAME}/${PNAME}-${PVER}-rdppm.patch | ||
28 | mirror://${PNAME}/${PNAME}-${PVER}-debian-extras.patch | ||
29 | mirror://${PNAME}/${PNAME}-${PVER}-multilib.patch | ||
30 | ) | ||
31 | |||
32 | UP2DATE="updatecmd --nolist http://www.ijg.org/files/ | grep ${PNAME/lib}src.v | sed 's/.*v\(.*\).tar.*/\1/'" | ||
33 | |||
34 | src_prepare() | ||
35 | { | ||
36 | munpack ${SRCFILE} || die | ||
37 | |||
38 | # fix serveral build issues (multlib, more arches etc) | ||
39 | mpatch ${PNAME}-${PVER}-crop.patch || die | ||
40 | mpatch ${PNAME}-${PVER}-crop-man.patch || die | ||
41 | mpatch ${PNAME}-${PVER}-rdjpgcom-locale.patch || die | ||
42 | mpatch ${PNAME}-${PVER}-jpeglib.h-c++.patch || die | ||
43 | mpatch ${PNAME}-${PVER}-rdppm.patch || die | ||
44 | # creates new files, -Np1 is neccessary | ||
45 | mpatch -Np1 ${PNAME}-${PVER}-debian-extras.patch || die | ||
46 | mpatch ${PNAME}-${PVER}-multilib.patch || die | ||
47 | |||
48 | # support more targets (e.g. uclibc or x86_64) | ||
49 | all-abis gnuconfig-update '${SRCDIR}-${abi}' || die | ||
50 | |||
51 | # force use of our CHOST | ||
52 | all-abis 'sed -i -e "s/ltconfig.*/& $CHOST/" configure' || die | ||
53 | |||
54 | # fix wrong libdir | ||
55 | all-abis 'sed -i "s:libdir =.*:libdir = \$(exec_prefix)/$(mlibdir):g" makefile.cfg' || die | ||
56 | } | ||
57 | |||
58 | src_compile() | ||
59 | { | ||
60 | mconfigure --enable-static --enable-shared --enable-maxmem=1024 || die | ||
61 | mmake -j1 || die | ||
62 | mmake -j1 -C extra || die | ||
63 | } | ||
64 | |||
65 | src_install() | ||
66 | { | ||
67 | |||
68 | # needed directories | ||
69 | minstalldir /usr/{include,bin,share/man/man1} || die | ||
70 | all-abis minstalldir /usr/'$(mlibdir)' || die | ||
71 | |||
72 | mmake \ | ||
73 | prefix=${BINDIR}/usr \ | ||
74 | libdir=${BINDIR}/usr/'$(mlibdir)' \ | ||
75 | mandir=${BINDIR}/usr/share/man/man1 \ | ||
76 | install || die | ||
77 | |||
78 | mmake -C extra \ | ||
79 | prefix=${BINDIR}/usr \ | ||
80 | libdir=${BINDIR}/usr/'$(mlibdir)' \ | ||
81 | mandir=${BINDIR}/usr/share/man/man1 \ | ||
82 | install || die | ||
83 | |||
84 | # missing header | ||
85 | minstallfile jpegint.h /usr/include || die | ||
86 | |||
87 | minstalldocs README change.log coderules.doc filelist.doc \ | ||
88 | jconfig.doc structure.doc usage.doc wizard.doc || die | ||
89 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |