Magellan Linux

Annotation of /smage/trunk/core/libjpeg-turbo/libjpeg-turbo-2.0.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11972 - (hide annotations) (download)
Fri Aug 17 09:51:34 2018 UTC (5 years, 9 months ago) by niro
File size: 1505 byte(s)
auto added: ver bump to 2.0.0-r1
1 niro 11972 # $Id$
2    
3     PNAME="libjpeg-turbo"
4     PVER="2.0.0"
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     ALX_PROVIDE="virtual/libjpeg"
15     ALX_DEV_PROVIDE="virtual/libjpeg-dev"
16    
17     SRCFILE="${PVER}.tar.gz"
18     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19    
20     ALX_PKG_KEEP="usr/$(mlibdir)/*.so.*"
21    
22     # fix cpu detection not honoring CHOST
23     EMUL_LINUX_32=true
24     sminclude multilib mtools alx-split
25    
26     SRC_URI=(
27     https://github.com/${PNAME}/${PNAME}/archive/${SRCFILE}
28     mirror://${PNAME}/${SRCFILE}
29     )
30    
31     UP2SEPERATOR="\/"
32     UP2DATE="updatecmd https://github.com/${PNAME}/${PNAME}/releases | highesttarball gz"
33    
34     src_prepare()
35     {
36     munpack ${SRCFILE} || die
37     mautoreconf || die
38     }
39    
40     src_compile()
41     {
42     mconfigure --without-java || die
43     mmake || die
44     }
45    
46     alx_generic_src_install()
47     {
48     mmake DESTDIR=${BINDIR} \
49     docdir=/usr/share/doc/${PNAME}-${PVER} \
50     exampledir=/usr/share/doc/${PNAME}-${PVER} \
51     install || die
52    
53     # add missing header
54     all-abis minstallfile jpegint.h /usr/include/ || die
55    
56     minstalldocs README change.log *.txt || die
57     }
58    
59     preinstall()
60     {
61     if [[ ! -z $(magequery -n libjpeg) ]]
62     then
63     echo -e ${COLRED}
64     echo -e "Error: media-libs/libjpeg is installed!!"
65     echo -e "libjpeg-turbo and libjpeg cannot be installed at the same time."
66     echo -e "Please uninstall media-libs/libjpeg first!"
67     echo -e ${COLDEFAULT}
68     die "media-libs/libjpeg found!"
69     fi
70     }