From owner-svn-ports-head@freebsd.org Wed Jun 24 15:06:19 2015 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DEFA891584F for ; Wed, 24 Jun 2015 15:06:18 +0000 (UTC) (envelope-from pgollucci@p6m7g8.com) Received: from mail-ig0-f172.google.com (mail-ig0-f172.google.com [209.85.213.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B19301676 for ; Wed, 24 Jun 2015 15:06:18 +0000 (UTC) (envelope-from pgollucci@p6m7g8.com) Received: by igin14 with SMTP id n14so35778489igi.1 for ; Wed, 24 Jun 2015 08:06:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=9P8tchVGn9Ksqsw6VvEX7JaXyu7uS83yaP9e0E9MHnw=; b=JDyHqMPvQqU9/n87sKwSKAUbLW8v1alZMCvxHBd8fVV3afp/kic7Qz529BarqN1coA pI28nyiHNTQmETr1APM0UQr5UWJIrWPVXzlkmBQO75QLBKMInQL+L4/PaHFIuHfRhO3o 53Df4dlyG5JsMZppjJIWe4xICrAUYqMw7xyJdTaeXpxycrki7T30ytHH8TvHapPMTPKm jfryn48ruUl/TjaLev8X/1eK5dv6A57G3nlTw9OWTl8iK+62AXPEfbW/ETy4wps5NUM2 xVPrH0TMzGO1TVXMxG1argDRj+uyxr918p6tAHbepa7lmCRbTTTaQFfOnOtCeqbP66DL qAyA== X-Gm-Message-State: ALoCoQkiwbvnm35R/YsI8kG2MusPEK1llzlO6qrdHZKCzsIKYLK6fEfp+MVFE0j21MbiN5Egno9P X-Received: by 10.50.138.136 with SMTP id qq8mr3822031igb.27.1435158371670; Wed, 24 Jun 2015 08:06:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.195.199 with HTTP; Wed, 24 Jun 2015 08:05:32 -0700 (PDT) X-Originating-IP: [68.101.40.130] In-Reply-To: <201506221830.t5MIUab9018253@svn.freebsd.org> References: <201506221830.t5MIUab9018253@svn.freebsd.org> From: "Philip M. Gollucci" Date: Wed, 24 Jun 2015 11:05:32 -0400 Message-ID: Subject: Re: svn commit: r390308 - head/Mk/Uses To: Antoine Brodin Cc: "ports-committers@freebsd.org" , "svn-ports-all@freebsd.org" , "svn-ports-head@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jun 2015 15:06:19 -0000 Shouldn't there be a way to do lib+both ? On Mon, Jun 22, 2015 at 2:30 PM, Antoine Brodin 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 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.