Magellan Linux

Contents of /smage/trunk/core/libjpeg-turbo/libjpeg-turbo-1.5.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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