Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jun 2015 11:05:32 -0400
From:      "Philip M. Gollucci" <pgollucci@p6m7g8.com>
To:        Antoine Brodin <antoine@freebsd.org>
Cc:        "ports-committers@freebsd.org" <ports-committers@freebsd.org>,  "svn-ports-all@freebsd.org" <svn-ports-all@freebsd.org>,  "svn-ports-head@freebsd.org" <svn-ports-head@freebsd.org>
Subject:   Re: svn commit: r390308 - head/Mk/Uses
Message-ID:  <CACM2dAZdZw7kH5NgRniCNg77ssq-vyzm4QEXbFZnXjKEWgsNFQ@mail.gmail.com>
In-Reply-To: <201506221830.t5MIUab9018253@svn.freebsd.org>
References:  <201506221830.t5MIUab9018253@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Shouldn't there be a way to do lib+both ?

On Mon, Jun 22, 2015 at 2:30 PM, Antoine Brodin <antoine@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@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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/svn-ports-all
> To unsubscribe, send any mail to "svn-ports-all-unsubscribe@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@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACM2dAZdZw7kH5NgRniCNg77ssq-vyzm4QEXbFZnXjKEWgsNFQ>