Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jul 2002 11:50:54 +0200
From:      Stijn Hoop <stijn@win.tue.nl>
To:        Eivind Olsen <eivind@aminor.no>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How to set default make-options for different ports?
Message-ID:  <20020731095054.GC66915@pcwin002.win.tue.nl>
In-Reply-To: <95771912.1028115880@[10.122.7.135]>
References:  <95771912.1028115880@[10.122.7.135]>

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

--lEGEL1/lMxI0MVQ2
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

On Wed, Jul 31, 2002 at 11:44:40AM +0200, Eivind Olsen wrote:
> Is it possible to somehow tell portupgrade(1) which options to pass to=20
> "make" for different ports? For example, I'd like the www/mod_php4 port t=
o=20
> always be built with "-DWITH_APACHE2" and some other options.
> Is this possible?

Check /usr/local/etc/pkgtools.conf, the section with MAKE_ARGS in it.

Mine has:

  MAKE_ARGS =3D {
        'print/ghostscript*-*' =3D> '-DA4 BATCH=3Dyes',
        'mail/fetchmail' =3D> 'BATCH=3Dyes',
        'x11-fonts/mkfontalias' =3D> 'WITH_DPI=3D100',
        'graphics/libmpeg2' =3D> 'WITH_SDL=3Dyes',
        'graphics/mplayer-skins' =3D> 'BATCH=3Dyes WITH_SKIN_ALL=3Dyes',
        'graphics/mplayer' =3D> 'WITH_GUI=3Dyes WITH_XANIM=3Dyes WITH_VORBI=
S=3Dyes',
        'graphics/gqview' =3D> 'WITHOUT_GNOME=3Dyes',
        'audio/xmms' =3D> 'WITHOUT_GNOME=3Dyes',
        'x11/xscreensaver' =3D> 'WITHOUT_GNOME=3Dyes',
        'www/mod_php4' =3D> 'WITH_APACHE2=3Dyes BATCH=3Dyes PHP4_OPTIONS=3D=
' + "'" + '\\\\"GD1\\\\" \\\\"zlib\\\\" \\\\"bzip2\\\\" \\\\"MySQL\\\\" \\\=
\"OpenSSL\\\\" \\\\"XML\\\\" \\\\"XSLT\\\\" \\\\"iconv\\\\" \\\\"CURL\\\\" =
\\\\"FTP\\\\"' + "'",
        'www/mozilla' =3D> 'WITHOUT_MAILNEWS=3Dyes',
  }

The whole line for mod_php4 is a bit absurd imho but I couldn't find any
other way to do the quoting right. I think you get the idea though.

HTH,

--Stijn

--=20
I really hate this damned machine
I wish that they would sell it.
It never does quite what I want
But only what I tell it.

--lEGEL1/lMxI0MVQ2
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQE9R7L+Y3r/tLQmfWcRAqIKAJoCoAihSHlIO8wUEEudQ63cWb1YpACgsqBk
VRD/MPZi+/qXPwNGAU+8Vqk=
=IYdJ
-----END PGP SIGNATURE-----

--lEGEL1/lMxI0MVQ2--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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