Index: head/Mk/Uses/jpeg.mk =================================================================== --- head/Mk/Uses/jpeg.mk (nonexistent) +++ head/Mk/Uses/jpeg.mk (revision 390308) @@ -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 Property changes on: head/Mk/Uses/jpeg.mk ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property