blob: 4353201d1a377e96fe45efa56e2398d8a12c5213 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# $NetBSD: Makefile,v 1.21 2020/11/17 08:46:47 adam Exp $
DISTNAME= libjpeg-turbo-2.0.6
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libjpeg-turbo/}
MAINTAINER= dsainty@NetBSD.org
HOMEPAGE= https://libjpeg-turbo.org/
COMMENT= Accelerated libjpeg with SIMD instructions
LICENSE= gnu-lgpl-v2 # OR wxWindows Library Licence, Version 3.1
# Note also that libjpeg-turbo's library has a different major version
# number (8) than that installed by the jpeg package (9).
# https://libjpeg-turbo.org/About/Jpeg-9
CONFLICTS= jpeg-[0-9]*
.if ${MACHINE_ARCH} == x86_64 || ${MACHINE_ARCH} == i386
BUILD_DEPENDS+= nasm-[0-9]*:../../devel/nasm
.endif
USE_CMAKE= yes
USE_LANGUAGES= c c++
PKGCONFIG_OVERRIDE= release/libturbojpeg.pc.in release/libjpeg.pc.in
TEST_ENV+= LD_LIBRARY_PATH=${WRKSRC}
TEST_TARGET= test
# Ask for compatibility with jpeg 8, to get the highest ABI that
# libjpeg-turbo supports.
CMAKE_ARGS+= -DWITH_JPEG8=ON
CHECK_PORTABILITY_SKIP+= release/makemacpkg.in
.include "../../mk/bsd.pkg.mk"
|