Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 May 2006 09:43:20 -0500
From:      Jim Pirzyk <pirzyk@freebsd.org>
To:        ports@freebsd.org
Subject:   Setting a KNOB/OPTION in BUILD_DEPENDS
Message-ID:  <D13E0E41-26E1-4DCE-A34B-5B7C67FD99A6@freebsd.org>

next in thread | raw e-mail | index | archive | help
-----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=	YES
BUILD_DEPENDS= ${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=YES, but that did not work either.

- - 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=
=Vtvb
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D13E0E41-26E1-4DCE-A34B-5B7C67FD99A6>