svn commit: r390308 - head/Mk/Uses

Philip M. Gollucci pgollucci at p6m7g8.com
Wed Jun 24 15:06:19 UTC 2015


Shouldn't there be a way to do lib+both ?

On Mon, Jun 22, 2015 at 2:30 PM, Antoine Brodin <antoine at freebsd.org> wrote:

> 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 at 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
> _______________________________________________
> svn-ports-all at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/svn-ports-all
> To unsubscribe, send any mail to "svn-ports-all-unsubscribe at freebsd.org"
>



-- 
---------------------------------------------------------------------------------
Curb: Your ride is here
4096R/D21D2752
<http://pgp.mit.edu/pks/lookup?op=get&search=0xF699A450D21D2752> ECDF B597
B54B 7F92 753E  E0EA F699 A450 D21D 2752
Philip M. Gollucci (pgollucci at p6m7g8.com) c: 703.336.9354
Member,                           Apache Software Foundation
Committer,                        FreeBSD Foundation
Consultant,                       P6M7G8 Inc.
Sr. Director IT Operations,       Curb

What doesn't kill us can only make us stronger;
Except it almost kills you.


More information about the svn-ports-head mailing list