aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/jpeg-turbo/Makefile
blob: 7b127626ca11ea92ca022dd290f2e99d5161420e (plain) (blame)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Created by: Denis Podolskiy <bytestore@yandex.ru>
# $FreeBSD$

PORTNAME=   jpeg-turbo
PORTVERSION=    1.4.2
PORTREVISION?=  0
CATEGORIES= graphics
MASTER_SITES=   SF/lib${PORTNAME}/${PORTVERSION}
DISTNAME=   lib${PORTNAME}-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT?=   SIMD-accelerated JPEG codec which replaces libjpeg

USES=       cpe libtool
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-jpeg8
USE_LDCONFIG=   yes
ALL_TARGET= test
INSTALL_TARGET= install-strip
CPE_VENDOR= d.r.commander
CPE_PRODUCT=    libjpeg-turbo

PORTDOCS=   *
PORTEXAMPLES=   *

OPTIONS_DEFINE= DOCS EXAMPLES

DOCS_MAKE_ARGS=     docdir="${DOCSDIR}"
DOCS_MAKE_ARGS_OFF= dist_doc_DATA=""

EXAMPLES_MAKE_ARGS= exampledir="${EXAMPLESDIR}"
EXAMPLES_MAKE_ARGS_OFF= dist_example_DATA=""

.include <bsd.port.options.mk>

.if ${ARCH} == i386 || ${ARCH} == amd64
BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
.endif

.if ${SLAVE_PORT} == yes
# libturbojpeg.a has to be built with PIC for virtualgl
CONFIGURE_ARGS+=--with-pic
PLIST_SUB+= JPEG="@comment " LIBTURBOJPEG=""
.else
CONFIGURE_ARGS+=--without-turbojpeg
CONFLICTS_INSTALL=  jpeg-[0-9]*
PLIST_SUB+= JPEG="" LIBTURBOJPEG="@comment "
.endif

.include <bsd.port.mk>