Date: Mon, 22 Jul 2002 09:46:05 +0200 From: Stijn Hoop <stijn@win.tue.nl> To: Nik Clayton <nik@freebsd.org> Cc: ports@freebsd.org Subject: Re: Proposed new 'options' target Message-ID: <20020722074605.GC3222@pcwin002.win.tue.nl> In-Reply-To: <20020720162928.GD37802@clan.nothing-going-on.org> References: <20020720162928.GD37802@clan.nothing-going-on.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <wjv@FreeBSD.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020722074605.GC3222>