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]>

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

[-- Attachment #1 --]
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 
> "make" for different ports? For example, I'd like the www/mod_php4 port to 
> 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 = {
        'print/ghostscript*-*' => '-DA4 BATCH=yes',
        'mail/fetchmail' => 'BATCH=yes',
        'x11-fonts/mkfontalias' => 'WITH_DPI=100',
        'graphics/libmpeg2' => 'WITH_SDL=yes',
        'graphics/mplayer-skins' => 'BATCH=yes WITH_SKIN_ALL=yes',
        'graphics/mplayer' => 'WITH_GUI=yes WITH_XANIM=yes WITH_VORBIS=yes',
        'graphics/gqview' => 'WITHOUT_GNOME=yes',
        'audio/xmms' => 'WITHOUT_GNOME=yes',
        'x11/xscreensaver' => 'WITHOUT_GNOME=yes',
        'www/mod_php4' => 'WITH_APACHE2=yes BATCH=yes PHP4_OPTIONS=' + "'" + '\\\\"GD1\\\\" \\\\"zlib\\\\" \\\\"bzip2\\\\" \\\\"MySQL\\\\" \\\\"OpenSSL\\\\" \\\\"XML\\\\" \\\\"XSLT\\\\" \\\\"iconv\\\\" \\\\"CURL\\\\" \\\\"FTP\\\\"' + "'",
        'www/mozilla' => 'WITHOUT_MAILNEWS=yes',
  }

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

-- 
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.

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

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

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