Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jan 2005 18:14:54 +0800 (WST)
From:      David Adam <zanchey@ucc.gu.uwa.edu.au>
To:        Lute Mullenix <lute@vfemail.net>
Cc:        freebsd-newbies@freebsd.org
Subject:   Re: Compile options
Message-ID:  <Pine.LNX.4.58.0501171756500.6736@mussel.ucc.gu.uwa.edu.au>
In-Reply-To: <20050117021844.492f6ce0@agnes.myhome.net>
References:  <41EAD7A9.3000000@nightmare.sh.cvut.cz> <20050117021844.492f6ce0@agnes.myhome.net>

next in thread | previous in thread | raw e-mail | index | archive | help
"Hello,
i am looking for something like USE flags in gentoo GNU/Linux
distribution. in the USE variable are defined keywords which are mapped
onto compile-options."

Lute:
I don't think he means that he's looking for USE flags in Gentoo. I read
the paragraph as "I would like Gentoo-style USE flags or their
equivalents."

Delphinus:
Having said that, I'm not familiar enough with the ports collection to
really know of anything like this.

One thing you might like to look at is /usr/local/etc/pkgtools.conf which
can be copied and edited from /usr/local/etc/pkgtools.conf.sample (from
memory). As documented in
http://www.onlamp.com/pub/a/bsd/2003/09/18/FreeBSD_Basics.html you can set
various make options for ports every time you compile them.

I guess you *could* add
MAKE_ARGS = {
    '*' => 'WITH_QT=1 WITH_GTK=0 etc etc',
}
to /usr/local/etc/pkgtools.conf, but that's almost guaranteed not to work
in all cases. You're better off examining each port individually, setting
the make options in pkgtools.conf, and then installing with portinstall/
upgrading using portupgrade.

No worries, then,

David Adam
zanchey@ucc.gu.uwa.edu.au



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