# Created by: Denis Podolskiy # $FreeBSD: head/graphics/jpeg-turbo/Makefile 412346 2016-04-01 14:00:51Z mat $ PORTNAME= jpeg-turbo PORTVERSION= 1.4.2 PORTREVISION?= 0 CATEGORIES= graphics MASTER_SITES= SF/lib${PORTNAME}/${PORTVERSION} DISTNAME= lib${PORTNAME}-${PORTVERSION} MAINTAINER= portmgr@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 .if ${ARCH} == i386 || ${ARCH} == amd64 BUILD_DEPENDS+= nasm: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