Date: Mon, 22 May 2006 10:55:02 -0400 From: "michael johnson" <ahze@ahze.net> To: "Jim Pirzyk" <pirzyk@freebsd.org> Cc: ports@freebsd.org Subject: Re: Setting a KNOB/OPTION in BUILD_DEPENDS Message-ID: <b2203fed0605220755g411def8fj905ab614e7706b9e@mail.gmail.com> In-Reply-To: <D13E0E41-26E1-4DCE-A34B-5B7C67FD99A6@freebsd.org> References: <D13E0E41-26E1-4DCE-A34B-5B7C67FD99A6@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 5/22/06, Jim Pirzyk <pirzyk@freebsd.org> 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" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b2203fed0605220755g411def8fj905ab614e7706b9e>