1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/Mk/Uses/jpeg.mk
Tobias C. Berner aa25396790 framework: cleanup conditional-indentations in Mk/
Run Tools/scripts/indent_make_if.pl on all of Mk.

These white space changes contribute greatly to the readability of those files.
As we have a version control system, finding out the reasons for the changes
prior to these white space changes is still easily possible

Differential Revision:	https://reviews.freebsd.org/D35024
Reviewed by:		portmgr (rene, bapt)
2022-04-24 12:00:20 +02:00

37 lines
849 B
Makefile

# Handle dependency on jpeg
#
# Feature: jpeg
# Usage: USES=jpeg or USES=jpeg:ARGS
# Valid ARGS: lib (default, implicit), build, run, both
#
# User defined variables:
# JPEG_PORT - jpeg implementation
# Valid values: graphics/jpeg-turbo, graphics/mozjpeg
# Default value: graphics/jpeg-turbo
#
# MAINTAINER: ports@FreeBSD.org
.if !defined(_INCLUDE_USES_JPEG_MK)
_INCLUDE_USES_JPEG_MK= yes
JPEG_PORT?= graphics/jpeg-turbo
. if empty(jpeg_ARGS)
jpeg_ARGS= lib
. endif
. if ${jpeg_ARGS} == lib
LIB_DEPENDS+= libjpeg.so:${JPEG_PORT}
. elif ${jpeg_ARGS} == build
BUILD_DEPENDS+= cjpeg:${JPEG_PORT}
. elif ${jpeg_ARGS} == run
RUN_DEPENDS+= cjpeg:${JPEG_PORT}
. elif ${jpeg_ARGS} == both
BUILD_DEPENDS+= cjpeg:${JPEG_PORT}
RUN_DEPENDS+= cjpeg:${JPEG_PORT}
. else
IGNORE= USES=jpeg - invalid args: [${jpeg_ARGS}] specified
. endif
.endif