Magellan Linux

Contents of /branches/magellan-next/core/libjasper/libjasper-1.900.1-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6376 - (show annotations) (download)
Sun Aug 22 21:53:15 2010 UTC (13 years, 8 months ago) by niro
File size: 1149 byte(s)
auto added: ver bump to 1.900.1-r3
1 # $Id: libjasper-1.900.1-r2.smage2 3675 2009-10-30 07:58:54Z niro $
2
3 PNAME="libjasper"
4 PVER="1.900.1"
5 PBUILD="r3"
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 }