Date: Mon, 22 Jun 2015 18:30:36 +0000 (UTC) From: Antoine Brodin <antoine@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r390308 - head/Mk/Uses Message-ID: <201506221830.t5MIUab9018253@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: antoine Date: Mon Jun 22 18:30:35 2015 New Revision: 390308 URL: https://svnweb.freebsd.org/changeset/ports/390308 Log: Add USES=jpeg, to handle dependency on a jpeg library Differential Revision: https://reviews.freebsd.org/D1582 Reviewed by: bapt, mat Added: head/Mk/Uses/jpeg.mk (contents, props changed) Added: head/Mk/Uses/jpeg.mk ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/Mk/Uses/jpeg.mk Mon Jun 22 18:30:35 2015 (r390308) @@ -0,0 +1,33 @@ +# $FreeBSD$ +# +# Handle dependency on jpeg +# +# Feature: jpeg +# Usage: USES=jpeg or USES=jpeg:ARGS +# Valid ARGS: lib (default, implicit), build, run, both +# +# MAINTAINER: portmgr@FreeBSD.org + +.if !defined(_INCLUDE_USES_JPEG_MK) + +_INCLUDE_USES_JPEG_MK= yes +JPEG_PORT?= graphics/jpeg + +.if empty(jpeg_ARGS) +jpeg_ARGS= lib +.endif + +.if ${jpeg_ARGS} == lib +LIB_DEPENDS+= libjpeg.so:${PORTSDIR}/${JPEG_PORT} +.elif ${jpeg_ARGS} == build +BUILD_DEPENDS+= cjpeg:${PORTSDIR}/${JPEG_PORT} +.elif ${jpeg_ARGS} == run +RUN_DEPENDS+= cjpeg:${PORTSDIR}/${JPEG_PORT} +.elif ${jpeg_ARGS} == both +BUILD_DEPENDS+= cjpeg:${PORTSDIR}/${JPEG_PORT} +RUN_DEPENDS+= cjpeg:${PORTSDIR}/${JPEG_PORT} +.else +IGNORE= USES=jpeg - invalid args: [${jpeg_ARGS}] specified +.endif + +.endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506221830.t5MIUab9018253>