From 31d137cdd3d010ef1dab65b66e864fc6936ce74a Mon Sep 17 00:00:00 2001 From: rjs Date: Thu, 5 Feb 2015 21:29:59 +0000 Subject: Only depend on nasm on amd64 and i386. Note that it uses NEON instructions on ARM. --- graphics/libjpeg-turbo/DESCR | 2 +- graphics/libjpeg-turbo/Makefile | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'graphics/libjpeg-turbo') diff --git a/graphics/libjpeg-turbo/DESCR b/graphics/libjpeg-turbo/DESCR index b5c6551ff75..6405c4ce0b4 100644 --- a/graphics/libjpeg-turbo/DESCR +++ b/graphics/libjpeg-turbo/DESCR @@ -1,3 +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. +2-4x on x86 and x86-64 platforms. It will use NEON instructions on ARM. diff --git a/graphics/libjpeg-turbo/Makefile b/graphics/libjpeg-turbo/Makefile index 8aea7149208..ccceda6a95c 100644 --- a/graphics/libjpeg-turbo/Makefile +++ b/graphics/libjpeg-turbo/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 2015/01/28 21:51:02 rjs Exp $ +# $NetBSD: Makefile,v 1.12 2015/02/05 21:29:59 rjs Exp $ # DISTNAME= libjpeg-turbo-1.4.0 @@ -12,7 +12,9 @@ LICENSE= gnu-lgpl-v2 # OR wxWindows Library Licence, Version 3.1 CONFLICTS= jpeg-[0-9]* +.if ${MACHINE_ARCH} == x86_64 || ${MACHINE_ARCH} == i386 BUILD_DEPENDS+= nasm-[0-9]*:../../devel/nasm +.endif GNU_CONFIGURE= yes # compatibility with pkgsrc/graphics/jpeg -- cgit v1.2.3