Magellan Linux

Contents of /branches/R11-unstable/extras/libjasper/libjasper-1.900.1-r5.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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