From owner-freebsd-ports Mon Jul 22 1:12: 6 2002 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 E16B837B400; Mon, 22 Jul 2002 01:12:01 -0700 (PDT) Received: from pcwin002.win.tue.nl (pcwin002.win.tue.nl [131.155.71.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id A3B6943E31; Mon, 22 Jul 2002 01:12:00 -0700 (PDT) (envelope-from stijn@pcwin002.win.tue.nl) Received: from pcwin002.win.tue.nl (orb_rules@localhost [127.0.0.1]) by pcwin002.win.tue.nl (8.12.4/8.12.3) with ESMTP id g6M7k6UR003722; Mon, 22 Jul 2002 09:46:06 +0200 (CEST) (envelope-from stijn@pcwin002.win.tue.nl) Received: (from stijn@localhost) by pcwin002.win.tue.nl (8.12.4/8.12.4/Submit) id g6M7k5QX003721; Mon, 22 Jul 2002 09:46:05 +0200 (CEST) Date: Mon, 22 Jul 2002 09:46:05 +0200 From: Stijn Hoop To: Nik Clayton Cc: ports@freebsd.org Subject: Re: Proposed new 'options' target Message-ID: <20020722074605.GC3222@pcwin002.win.tue.nl> References: <20020720162928.GD37802@clan.nothing-going-on.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vtzGhvizbBRQ85DL" Content-Disposition: inline In-Reply-To: <20020720162928.GD37802@clan.nothing-going-on.org> User-Agent: Mutt/1.4i X-Bright-Idea: Let's abolish HTML mail! Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --vtzGhvizbBRQ85DL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, While I don't *really* care which way this is solved, it is indeed a problem. Johan Visagie already 'solved' this for his mail/mailman port, the structure of which I picked up and used in my emulators/xmame port. Here are the relevant parts of my port (warning: cut & paste so no tabs): files/pkg-opts snippet: ------->8----->8----->8----->8------- # Variable|Default value|Short description # Multi-line/long description (optional). # Multi-line/long description lines must start with whitespace! # WITH_ASM68K|no|If set to 'yes', this will enable the speedier but buggy assembler 68x00 CPU emulation cores. This will only work on x86. Note that some games are known to break with this option, among them pbobble2. ------->8----->8----->8----->8------- The actual Makefile code (could be in bsd.port.mk if standardized): ------->8----->8----->8----->8------- pre-everything:: =2Eif !defined(BATCH) @${TEST} -r ${PKGOPTS} && \ (${ECHO_MSG} '---------------------------------------------------= ----------------------'; \ ${ECHO_MSG} 'Perform a "make options" to see a list of available = installation options.'; \ ${ECHO_MSG} '----------------------------------------------------= ---------------------';) =2Eendif options: @(${ECHO_MSG} "=3D=3D=3D> Build options for ${PKGNAME}:"; \ ${PERL} -ne '/^#/ || /^\s/ && print || \ print sprintf "* %s [%s]\n %s", split(/\|/)' ${PKGOPTS}) | \ $${PAGER:-/usr/bin/more} ------->8----->8----->8----->8------- Do a 'make options' in /usr/ports/emulators/xmame to see the result. --Stijn --=20 ] Nothing safer than a 'cat /dev/wallet | grep $price > real-person; \ ] mv $thing-to-buy $my-case I'd prefer 'mv $thing-to-buy $my-case && cat /dev/wallet | \ grep $price > real-person -- Anonymous, freebsd-questions@freebsd.org, in message <200108020628.IAA11775@hugo10.ka.punkt.de> --vtzGhvizbBRQ85DL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9O7g9Y3r/tLQmfWcRAlyJAJ43K/LF5Q/1PMQd8udRJfAprnQ6qwCfVESc biHynRSxrFfwjiaPeNYg/qc= =xu4g -----END PGP SIGNATURE----- --vtzGhvizbBRQ85DL-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message