From owner-freebsd-ports@FreeBSD.ORG Tue May 9 11:18:15 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org 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 50CDC16A46F for ; Tue, 9 May 2006 11:18:15 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id D754D43D70 for ; Tue, 9 May 2006 11:18:03 +0000 (GMT) (envelope-from uspoerlein@gmail.com) Received: by ug-out-1314.google.com with SMTP id e2so1560609ugf for ; Tue, 09 May 2006 04:18:02 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to; b=Pz2EJyrXINh3ysqBsz9XpbvynEVm6dPFLUgOtNqi9+K/ikINw0jMj4hT4jSU2Xgh6w8+zfa8fK54+G4Y+diO3i/kGHsJ904mBSV97hLO5LgdYYO2rRxSO1PC6pLAXW6KYO4yttO7/xo6/LS8FuZithonegmAy/bm4ffLHOQ4mTs= Received: by 10.66.6.29 with SMTP id 29mr1883962ugf; Tue, 09 May 2006 04:18:02 -0700 (PDT) Received: from roadrunner.q.local ( [217.185.119.153]) by mx.gmail.com with ESMTP id j1sm3647368ugf.2006.05.09.04.17.57; Tue, 09 May 2006 04:18:02 -0700 (PDT) Received: from roadrunner.q.local (localhost [127.0.0.1]) by roadrunner.q.local (8.13.6/8.13.6) with ESMTP id k49BHOOV001664; Tue, 9 May 2006 13:17:24 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Received: (from q@localhost) by roadrunner.q.local (8.13.6/8.13.6/Submit) id k49BEagd001643; Tue, 9 May 2006 13:14:36 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Date: Tue, 9 May 2006 13:14:35 +0200 From: Ulrich Spoerlein To: Jeremy Chadwick Message-ID: <20060509111435.GA1228@roadrunner.aventurien.local> Mail-Followup-To: Jeremy Chadwick , Sideris Michael , freebsd-ports@freebsd.org References: <20060508200926.GA6005@daemons.gr> <20060509061026.GA14039@pentarou.parodius.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vtzGhvizbBRQ85DL" Content-Disposition: inline In-Reply-To: <20060509061026.GA14039@pentarou.parodius.com> Cc: Sideris Michael , freebsd-ports@freebsd.org Subject: Re: ports structure and improvement suggestions X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 May 2006 11:18:15 -0000 --vtzGhvizbBRQ85DL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Jeremy Chadwick wrote: > # No IPv6, and no X11 > IPV6 =3D no > X11 =3D no >=20 > devel/gettext { > EXAMPLES =3D no > HTMLMAN =3D no > } > www/apache20 { > KQUEUE_SUPPORT =3D yes > } > www/suphp { > CHECKPATH =3D no > LOGFILE =3D /var/log/suphp.log > } > net/cvsup { > X11 =3D yes > } >=20 > [snip] You can already do this with make(1)-magic in /etc/make.conf. This is also guaranteed to work, whereas the pkgtools.conf approach is flawed. Example /etc/make.conf (platform specific) =2Eif ${.CURDIR:M*/usr/ports*} CFLAGS+=3D -Os WRKDIRPREFIX=3D /vol/obj =2Einclude "/etc/ports.conf" =2Eendif And my /etc/ports.conf (platform independant, meaning I share it across several machines) BATCH=3D true PACKAGE_BUILDING=3Dtrue WITH_OPENSSL_BASE=3Dyes PAPERSIZE=3D a4 A4=3D true WITH_GHOSTSCRIPT_AFPL=3D yes =2Eif ${.CURDIR:M*/audio/amarok} WITH_XINE=3D true #... =2Eendif =2Eif ${.CURDIR:M*/audio/abcde} WITH_CDDA2WAV=3D true #... =2Eendif =2Eif ${.CURDIR:M*/databases/postgresql*} #WITH_OPTIMIZED_CFLAGS=3D true =2Eendif =2Eif ${.CURDIR:M*/multimedia/*} WITH_THEORA=3D true WITH_X264=3D true WITH_OPTIMIZED_CFLAGS=3Dtrue WITH_XVID=3D true #... =2Eendif This allows for global options, category specific options and individual options. It is processed early enough and doesn't care if you invoke make install or portinstall. It will produce a correct INDEX, though ports might be listed twice, since we have slave ports. The syntax stinks, of course, and you still have to hunt for the Knobs yourself. The OPTIONS stuff sucks, because it is interactive. It always reminds me of the Windows 2000 (??) installation: wait 20 minutes, click next, wait 30 minutes, click ok, wait 40 minutes, click reboot. wtf? Ulrich Spoerlein --=20 PGP Key ID: 20FEE9DD Encrypted mail welcome! Fingerprint: AEC9 AF5E 01AC 4EE1 8F70 6CBD E76E 2227 20FE E9DD Which is worse: ignorance or apathy? Don't know. Don't care. --vtzGhvizbBRQ85DL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEYHmb524iJyD+6d0RAm+0AJ46jgmG/OHqE2SY+wVw2zjGgy2LSwCfbK0H hAsfnzYozmtw6YeUsl1dT5s= =JtdE -----END PGP SIGNATURE----- --vtzGhvizbBRQ85DL--