From owner-freebsd-ports@FreeBSD.ORG Mon May 22 14:55:04 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A7CD216B0EB for ; Mon, 22 May 2006 14:55:04 +0000 (UTC) (envelope-from buhnux@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32FBF43D80 for ; Mon, 22 May 2006 14:55:02 +0000 (GMT) (envelope-from buhnux@gmail.com) Received: by py-out-1112.google.com with SMTP id f28so1488975pyf for ; Mon, 22 May 2006 07:55:02 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=FeiC5ZtGVktgXftlw/ioizh5ENqXY1+9ssCVzlkQZ7QTyAUMZN+XplQ+FQltRUd8fG3BvdHuQEcUl8sleli4AKFXeZN9cYGzCJP6hHvSWam3xkRZOBZ7ZdyrMqXzCwr//Ffn04Der9Aur1PrFLyKEotxyIo4z/mEZVCAlToQWp4= Received: by 10.35.31.14 with SMTP id i14mr1152825pyj; Mon, 22 May 2006 07:55:02 -0700 (PDT) Received: by 10.35.12.4 with HTTP; Mon, 22 May 2006 07:55:02 -0700 (PDT) Message-ID: Date: Mon, 22 May 2006 10:55:02 -0400 From: "michael johnson" Sender: buhnux@gmail.com To: "Jim Pirzyk" In-Reply-To: MIME-Version: 1.0 References: X-Google-Sender-Auth: 7e91610d86ea057f Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: ports@freebsd.org Subject: Re: Setting a KNOB/OPTION in BUILD_DEPENDS X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 May 2006 14:55:10 -0000 On 5/22/06, Jim Pirzyk wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I am trying to write a Makefile for a software package that needs > another package built with a non default OPTION set. How do I > do this? Specifically, I need krb5 built with the KRB5_KRB4_COMPAT > set to YES (it is defaulted to NO). I currently have this: > > .if defined(WITH_SNK) > KRB5_KRB4_COMPAT=3D YES > BUILD_DEPENDS=3D ${LOCALBASE}/include/kerberosIV/des.h:${PORTSDIR}/ > security/krb5 > .endif > > But when krb5 gets installed, the KRB5_KRB4_COMPAT is not set > to yes, and des.h does not get installed. > > How is this to be done? the Porters handbook is unclear in this. > I also have tried to set the ':target' part of BUILD_DEPENDS to > - -DKRB5_KRB4_COMPAT=3DYES, but that did not work either. You can do a couple of things, The best would be probably make a slave port from krb5 that defines KRB5_KRB4_COMPAT and then make your port depend on the krb5 slave port. Or you could depend on %%KRB4%%bin/krb524init since it's only installed if KRB5_KRB4_COMPAT is defined and print a message in pre-XXX if it's not found but krb5 is installed. For an example take a look at graphics/evince and how it depends on graphics/djvulibre or graphics/djvulibre-nox11 and how djvulibre[-nox11] work. Cheers, Michael - - JimP > > - --- @(#) $Id: dot.signature,v 1.14 2004/02/03 02:46:26 pirzyk Exp $ > __o pirzyk@uiuc.edu --------------------------- jim@pirzyk.org > _'\<,_ Systems Management Group, CITES > (*)/ (*) University of Illinois at Urbana-Champaign > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2.2 (Darwin) > > iD8DBQFEcc4N2EYx0U4j2soRAhNZAKCq1zvoybwHWWi+6Katusw1EBnF6ACfakPM > g/dISJqQ6oidRMxldfAYvh8=3D > =3DVtvb > -----END PGP SIGNATURE----- > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" >