commit 9f321485f7426eff0c9c0e975be3d5919f6d7979
parent 0df06b37fac79c8cf5c47118b6544e1d570a258d
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 2 May 2014 20:08:15 +0000
add libjpegturbo
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
Diffstat:
4 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/libjpegturbo/depsinc.mk b/libjpegturbo/depsinc.mk
@@ -0,0 +1,6 @@
+<$libjpegturbo_DEPDIR/v.mk
+
+libjpegturbo_libdir = $libjpegturbo_DEPDIR/libjpeg-turbo-$v/lib/lib/libjpeg-turbo
+libjpegturbo_includedir = $libjpegturbo_DEPDIR/libjpeg-turbo-$v/lib/include/libjpeg-turbo
+DEPS_CFLAGS = $DEPS_CFLAGS -I${libjpegturbo_includedir}
+DEPS_LDFLAGS = $DEPS_LDFLAGS -L${libjpegturbo_libdir} -ljpeg # -lturbojpeg?
diff --git a/libjpegturbo/libjpegturbo.mk b/libjpegturbo/libjpegturbo.mk
@@ -0,0 +1,19 @@
+TARG = libjpegturbo
+
+<$mkbuild/mk.common-noinst
+
+libjpegturbo:QV:
+ CC="${CC} -static" ./configure \
+ --prefix="$prefix" \
+ --mandir="$ROOT/share/man" \
+ --disable-shared \
+ --enable-static \
+ --with-jpeg8 \
+ --includedir="/include/libjpeg-turbo" \
+ --libdir="/lib/libjpeg-turbo" \
+ --without-simd \
+ --program-suffix=-turbo
+ # make and install.
+ make -j$nprocs install DESTDIR=`pwd`/lib
+ # remove .la files for now ?
+ find `pwd`/lib -iname "*.la" -exec rm {} \;
diff --git a/libjpegturbo/mkfile b/libjpegturbo/mkfile
@@ -0,0 +1,6 @@
+<$mkbuild/mk.3rdparty
+
+<v.mk
+src = libjpeg-turbo-$v
+url = http://sourceforge.net/projects/libjpeg-turbo/files/$v/libjpeg-turbo-$v.tar.gz
+mkfile = ../libjpegturbo.mk
diff --git a/libjpegturbo/v.mk b/libjpegturbo/v.mk
@@ -0,0 +1 @@
+v = 1.2.1