summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordsainty <dsainty@pkgsrc.org>2010-12-12 11:48:56 +0000
committerdsainty <dsainty@pkgsrc.org>2010-12-12 11:48:56 +0000
commitddb397b62392844542e15732e3a449bf9c300345 (patch)
tree8184efd85719cea4f479221cf7e66d27a6796758
parent9ee1f18ad6bc1395efaedda37d6e949c938480c6 (diff)
downloadpkgsrc-ddb397b62392844542e15732e3a449bf9c300345.tar.gz
libjpeg-turbo is a version of libjpeg which uses MMX, SSE, and SSE2 SIMD
instructions to accelerate baseline JPEG compression/decompression by about 2-4x on x86 and x86-64 platforms. XXX Conflicts with graphics/jpeg - which rather demands a solution.
-rw-r--r--graphics/libjpeg-turbo/DESCR3
-rw-r--r--graphics/libjpeg-turbo/Makefile22
-rw-r--r--graphics/libjpeg-turbo/PLIST18
-rw-r--r--graphics/libjpeg-turbo/buildlink3.mk12
-rw-r--r--graphics/libjpeg-turbo/distinfo5
5 files changed, 60 insertions, 0 deletions
diff --git a/graphics/libjpeg-turbo/DESCR b/graphics/libjpeg-turbo/DESCR
new file mode 100644
index 00000000000..b5c6551ff75
--- /dev/null
+++ b/graphics/libjpeg-turbo/DESCR
@@ -0,0 +1,3 @@
+libjpeg-turbo is a version of libjpeg which uses MMX, SSE, and SSE2 SIMD
+instructions to accelerate baseline JPEG compression/decompression by about
+2-4x on x86 and x86-64 platforms.
diff --git a/graphics/libjpeg-turbo/Makefile b/graphics/libjpeg-turbo/Makefile
new file mode 100644
index 00000000000..201043c66a6
--- /dev/null
+++ b/graphics/libjpeg-turbo/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/12/12 11:48:56 dsainty Exp $
+#
+
+DISTNAME= libjpeg-turbo-1.0.1
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libjpeg-turbo/}
+
+MAINTAINER= dsainty@NetBSD.org
+HOMEPAGE= http://libjpeg-turbo.virtualgl.org/
+COMMENT= libjpeg accelerated with MMX, SSE and SSE2 SIMD instructions
+
+LICENSE= gnu-lgpl-v2 # OR wxWindows Library Licence, Version 3.1
+
+CONFLICTS= jpeg-[0-9]*
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_LANGUAGES= c c++
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/libjpeg-turbo/PLIST b/graphics/libjpeg-turbo/PLIST
new file mode 100644
index 00000000000..7ee4b731f91
--- /dev/null
+++ b/graphics/libjpeg-turbo/PLIST
@@ -0,0 +1,18 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/12/12 11:48:56 dsainty Exp $
+bin/cjpeg
+bin/djpeg
+bin/jpegtran
+bin/rdjpgcom
+bin/wrjpgcom
+include/jconfig.h
+include/jerror.h
+include/jmorecfg.h
+include/jpeglib.h
+include/turbojpeg.h
+lib/libjpeg.la
+lib/libturbojpeg.la
+man/man1/cjpeg.1
+man/man1/djpeg.1
+man/man1/jpegtran.1
+man/man1/rdjpgcom.1
+man/man1/wrjpgcom.1
diff --git a/graphics/libjpeg-turbo/buildlink3.mk b/graphics/libjpeg-turbo/buildlink3.mk
new file mode 100644
index 00000000000..45109120769
--- /dev/null
+++ b/graphics/libjpeg-turbo/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2010/12/12 11:48:56 dsainty Exp $
+
+BUILDLINK_TREE+= libjpeg-turbo
+
+.if !defined(LIBJPEG_TURBO_BUILDLINK3_MK)
+LIBJPEG_TURBO_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libjpeg-turbo+= libjpeg-turbo>=1.0.1
+BUILDLINK_PKGSRCDIR.libjpeg-turbo?= ../../graphics/libjpeg-turbo
+.endif # LIBJPEG_TURBO_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -libjpeg-turbo
diff --git a/graphics/libjpeg-turbo/distinfo b/graphics/libjpeg-turbo/distinfo
new file mode 100644
index 00000000000..496a5fb0eda
--- /dev/null
+++ b/graphics/libjpeg-turbo/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/12/12 11:48:56 dsainty Exp $
+
+SHA1 (libjpeg-turbo-1.0.1.tar.gz) = 5bbc4cbfcb3f5b8ebef6deb619d85b1577059619
+RMD160 (libjpeg-turbo-1.0.1.tar.gz) = 08a83f029cd4fb62745cbdbece1d695b54cb6841
+Size (libjpeg-turbo-1.0.1.tar.gz) = 1297500 bytes