Annotation of /trunk/core/libjasper/libjasper-1.900.1-r5.smage2
Parent Directory | Revision Log
Revision 7824 -
(hide annotations)
(download)
Wed Jun 1 18:34:46 2011 UTC (13 years ago) by niro
Original Path: branches/magellan-next/core/libjasper/libjasper-1.900.1-r5.smage2
File size: 1088 byte(s)
Wed Jun 1 18:34:46 2011 UTC (13 years ago) by niro
Original Path: branches/magellan-next/core/libjasper/libjasper-1.900.1-r5.smage2
File size: 1088 byte(s)
auto added: ver bump to 1.900.1-r5
1 | niro | 7824 | # $Id$ |
2 | |||
3 | PNAME="libjasper" | ||
4 | PVER="1.900.1" | ||
5 | PBUILD="r5" | ||
6 | |||
7 | PCATEGORIE="media-libs" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="A software-based implementation of the codec specified in the emerging JPEG-2000 Part-1 standard." | ||
11 | HOMEPAGE="http://www.ece.uvic.ca/~mdadams/jasper/" | ||
12 | |||
13 | DEPEND=">= virtual/opengl | ||
14 | >= virtual/glut | ||
15 | >= media-libs/libjpeg-8" | ||
16 | |||
17 | SDEPEND=">= app-arch/unzip-5" | ||
18 | |||
19 | SRCFILE="${PNAME/lib}-${PVER}.zip" | ||
20 | SRCDIR="${BUILDDIR}/${PNAME/lib}-${PVER}" | ||
21 | |||
22 | sminclude multilib | ||
23 | |||
24 | SRC_URI=( | ||
25 | http://www.ece.uvic.ca/~mdadams/jasper/software/${SRCFILE} | ||
26 | mirror://${PNAME}/${SRCFILE} | ||
27 | mirror://${PNAME}/${PNAME}-${PVER}-fixes-20081208.patch | ||
28 | ) | ||
29 | |||
30 | UP2DATE="updatecmd ${HOMEPAGE} | grep ${PNAME/lib}- | sed 's/.*-\(.*\).zip.*/\1/;q'" | ||
31 | |||
32 | src_prepare() | ||
33 | { | ||
34 | # must use mesa as opengl-headers! | ||
35 | [[ $(opengl-update --get-implementation) != xorg ]] && | ||
36 | die "please change to xorg opengl-headers: opengl-update xorg" | ||
37 | |||
38 | munpack ${SRCFILE} || die | ||
39 | |||
40 | # fixes serveral issues | ||
41 | mpatch ${PNAME}-${PVER}-fixes-20081208.patch || die | ||
42 | } | ||
43 | |||
44 | src_compile() | ||
45 | { | ||
46 | mconfigure --enable-shared --enable-libjpeg --enable-opengl || die | ||
47 | mmake || die | ||
48 | } |