From owner-freebsd-ports@FreeBSD.ORG Fri Jan 23 09:30:11 2004 Return-Path: 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 D766D16A4CE for ; Fri, 23 Jan 2004 09:30:11 -0800 (PST) Received: from creme-brulee.marcuscom.com (rrcs-midsouth-24-172-16-118.biz.rr.com [24.172.16.118]) by mx1.FreeBSD.org (Postfix) with ESMTP id 75F7A43D72 for ; Fri, 23 Jan 2004 09:28:56 -0800 (PST) (envelope-from marcus@marcuscom.com) Received: from [10.2.1.4] (vpn-client-4.marcuscom.com [10.2.1.4]) i0NHMtsm000528; Fri, 23 Jan 2004 12:22:55 -0500 (EST) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: Oliver Lehmann In-Reply-To: <20040123181216.4ebba397.lehmann@ans-netz.de> References: <20040123181216.4ebba397.lehmann@ans-netz.de> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-zKfFRChhShX03uDjnxJI" Organization: MarcusCom, Inc. Message-Id: <1074878691.768.23.camel@gyros> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Fri, 23 Jan 2004 12:24:51 -0500 X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.61 X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on creme-brulee.marcuscom.com cc: ports@freebsd.org Subject: Re: questions about OPTIONS X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jan 2004 17:30:12 -0000 --=-zKfFRChhShX03uDjnxJI Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2004-01-23 at 12:12, Oliver Lehmann wrote: > Hi, >=20 > I think about using OPTIONS in my Makefiles instead of using custom > "You may use the following...." things. >=20 > But whats about that special situation (It's only an example!): >=20 > [...] > OPTIONS=3D PIXBUF "GDK Pixbuf support" off \ > OPENSSL "OpenSSL support" on > [...] >=20 > .if !defined(WITHOUT_OPENSSL) > USE_OPENSSL=3D yes > .endif >=20 > .if defined(WITH_PIXBUF) > USE_GNOME+=3D gdkpixbuf > .else > USE_GNOME+=3D imlib > .endif > [...] >=20 >=20 >=20 > Where should I include bsd.pre.port.mk?=20 After OPTIONS=3D but before you check WITH_*. >=20 > - After OPTIONS? In that case, USE_GNOME and USE_OPENSSL > wouldn't have any effect. USE_GNOME will be okay. USE_OPENSSL would not work, though. > - After those WITH_* variables are getting checked? In > that case, the options I may had set in the dialog > wouldn't be used. Right. You cannot include bsd.port.pre.mk after you check the WITH_* stuff or OPTIONS will have no effect. >=20 > Ideas how to fix/workaround this? The USE_GNOME thing will work, but you may have to hack in the OpenSSL dependency. It would be nice if bsd.openssl.mk could be made to work before and after bsd.port.pre.mk (e.g. maybe Dirk could add a WANT_OPENSSL option like we do for GNOME). Joe --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-zKfFRChhShX03uDjnxJI Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBAEVjjb2iPiv4Uz4cRAqChAJ9buedK8yaT32BnFtquWsBKdvpWVACfVbtg 8WKlIEQw7NL0rbW1qBbVxA0= =r9ye -----END PGP SIGNATURE----- --=-zKfFRChhShX03uDjnxJI--