How do conditionalize plist on $NOPORTDOCS (was: lang/cmucl -
fails: install_error)
Ion-Mihai Tetcu
itetcu at FreeBSD.org
Tue Nov 18 09:44:06 PST 2008
On Tue, 18 Nov 2008 12:35:45 -0500
Martin Cracauer <cracauer at cons.org> wrote:
> Ion-Mihai Tetcu wrote on Tue, Nov 18, 2008 at 07:28:37PM +0200:
> > On Tue, 18 Nov 2008 12:08:26 -0500
> > Martin Cracauer <cracauer at cons.org> wrote:
> >
> > > While we are talking, how do you guys thing I should handle this
> > > problem: it's a binary port. There are different binaries for
> > > FreeBSD-6.x, 7.x, 8.x
> > > http://common-lisp.net/project/cmucl/downloads/release/19e/
> > >
> > > The 6.3 will run everywhere. Should I just use that one? Do you
> > > want me to conditionalize on FreeBSD version?
> >
> > If they bother to release different native binaries for our
> > supported OS versions let encourage them to keep doing that ;-)
>
> "They" == kind of me, although I didn't build these particular
> binaries.
Please feel very encouraged then :-)
> Is there prior art in ports about how to do this? What do I do with
> oddball version numbers?
...
.include <bsd.port.pre.mk>
.if ${OSVERSION} > 6300000
DISTNAME= ${PORTNAME}-${PORTVERSION}-x86-freebsd6.3
.elif ${OSVERSION} > 700000
DISTNAME= ${PORTNAME}-${PORTVERSION}-x86-freebsd7.0
.elif ${OSVERSION} > 800000
DISTNAME= ${PORTNAME}-${PORTVERSION}-x86-freebsd8.0
.endif
...
.. or something like.
HTH,
--
IOnut - Un^d^dregistered ;) FreeBSD "user"
"Intellectual Property" is nowhere near as valuable as "Intellect"
FreeBSD committer -> itetcu at FreeBSD.org, PGP Key ID 057E9F8B493A297B
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20081118/958c26ba/signature.pgp
More information about the freebsd-ports
mailing list