Contents of /trunk/extras/libjpeg-turbo/libjpeg-turbo-1.5.3-r1.smage2
Parent Directory | Revision Log
Revision 30448 -
(show annotations)
(download)
Mon Jan 22 13:53:31 2018 UTC (6 years, 8 months ago) by niro
File size: 1403 byte(s)
Mon Jan 22 13:53:31 2018 UTC (6 years, 8 months ago) by niro
File size: 1403 byte(s)
auto added: ver bump to 1.5.3-r1
1 | # $Id$ |
2 | |
3 | PNAME="libjpeg-turbo" |
4 | PVER="1.5.3" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="media-libs" |
8 | |
9 | DESCRIPTION="jpeg picture compression library with accelerated baseline compression and decompression." |
10 | HOMEPAGE="http://libjpeg-turbo.virtualgl.org/" |
11 | |
12 | DEPEND=">= virtual/glibc" |
13 | SDEPEND=">= dev-lang/nasm-2.13" |
14 | PROVIDE="virtual/libjpeg" |
15 | |
16 | SRCFILE="${PVER}.tar.gz" |
17 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
18 | |
19 | # fix cpu detection not honoring CHOST |
20 | EMUL_LINUX_32=true |
21 | sminclude multilib mtools |
22 | |
23 | SRC_URI=( |
24 | https://github.com/${PNAME}/${PNAME}/archive/${SRCFILE} |
25 | mirror://${PNAME}/${SRCFILE} |
26 | ) |
27 | |
28 | UP2SEPERATOR="\/" |
29 | UP2DATE="updatecmd https://github.com/${PNAME}/${PNAME}/releases | highesttarball gz" |
30 | |
31 | src_prepare() |
32 | { |
33 | munpack ${SRCFILE} || die |
34 | mautoreconf || die |
35 | } |
36 | |
37 | src_compile() |
38 | { |
39 | mconfigure --without-java || die |
40 | mmake || die |
41 | } |
42 | |
43 | src_install() |
44 | { |
45 | mmake DESTDIR=${BINDIR} \ |
46 | docdir=/usr/share/doc/${PNAME}-${PVER} \ |
47 | exampledir=/usr/share/doc/${PNAME}-${PVER} \ |
48 | install || die |
49 | |
50 | # add missing header |
51 | all-abis minstallfile jpegint.h /usr/include/ || die |
52 | |
53 | minstalldocs README change.log *.txt || die |
54 | } |
55 | |
56 | preinstall() |
57 | { |
58 | if [[ ! -z $(magequery -n libjpeg) ]] |
59 | then |
60 | echo -e ${COLRED} |
61 | echo -e "Error: media-libs/libjpeg is installed!!" |
62 | echo -e "libjpeg-turbo and libjpeg cannot be installed at the same time." |
63 | echo -e "Please uninstall media-libs/libjpeg first!" |
64 | echo -e ${COLDEFAULT} |
65 | die "media-libs/libjpeg found!" |
66 | fi |
67 | } |