Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Feb 2005 19:33:24 +0200
From:      Peter Pentchev <roam@ringlet.net>
To:        Alejandro Pulver <alejandro@varnet.biz>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Building port with options
Message-ID:  <20050225173324.GJ91323@straylight.m.ringlet.net>
In-Reply-To: <20050225141119.5c8bdb0f@ale.varnet.bsd>
References:  <20050219150641.43dd175f@ale.varnet.bsd> <20050222152607.GI805@straylight.m.ringlet.net> <20050222174715.7f11612c@ale.varnet.bsd> <20050222213712.GA799@straylight.m.ringlet.net> <20050225141119.5c8bdb0f@ale.varnet.bsd>

next in thread | previous in thread | raw e-mail | index | archive | help

--M2Pxvdb9QxnGd/3e
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Feb 25, 2005 at 02:11:19PM -0300, Alejandro Pulver wrote:
[snip]
>=20
> Thank You.
>=20
> That helped me a lot.
>=20
> How can I define a variable in gmake from the port's
> Makefile (gmake(1) says with environment variables and '-e')?

In general, you may modify the MAKE_ENV variable - there are lots of
examples in the ports tree; just do a
  find /usr/ports -type f -name 'Makefile*' | xargs fgrep MAKE_ENV

> If a port uses TCL/TK, how can I define it (I have TCL/TK 8.4/8.0 but it
> outputs the following):
>=20
> checking tcl8.0.h usability... no
> checking tcl8.0.h presence... no
> checking for tcl8.0.h... no
> checking tk8.0.h usability... no
> checking tk8.0.h presence... no
> checking for tk8.0.h... no
>=20
> Is there a port that uses TCL/TK and has the same issue (but solved)?

Take a look at e.g. the databases/postgresql-tcltk port; it uses Tcl/Tk
and even supports different versions.

In general, such a check in the configure script most probably fails
because either the compiler does not know where to find the header files
(which you can help by adding CPPFLAGS to the CONFIGURE_ENV), or the linker
does not know where to find the libraries (which you can help by adding
LDFLAGS to the CONFIGURE_ENV).  However, for the particular case of Tcl/Tk,
there are lots of ports you can shamelessly steal code from :)

G'luck,
Peter

--=20
Peter Pentchev	roam@ringlet.net    roam@cnsys.bg    roam@FreeBSD.org
PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
If there were no counterfactuals, this sentence would not have been paradox=
ical.

--M2Pxvdb9QxnGd/3e
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQFCH2Fk7Ri2jRYZRVMRAsSRAKCTuWzxpw/pdD4M8Colch+fpxFx2ACgu5Lq
wPhsc753nAFyJIoOl7RRLbU=
=vVIN
-----END PGP SIGNATURE-----

--M2Pxvdb9QxnGd/3e--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050225173324.GJ91323>