DragonFly BSD
DragonFly kernel List (threaded) for 2004-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Building ports for DragonFlyBSD


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Tue, 10 Aug 2004 15:34:32 +0200

On Tue, Aug 10, 2004 at 02:13:01PM +0200, Oliver Eikemeier wrote:
> In the port I have
> 
> .if ${OSVERSION} < 492000 || ${OSVERSION} >= 500000 && ${OSVERSION} < 
> 502120
> RUN_DEPENDS=
> 	${LOCALBASE}/sbin/pkg_info:${PORTSDIR}/sysutils/pkg_install-devel
> .endif
> 
> I could change this to
> 
> .if !defined(DFPORTSDIR) && ${OSVERSION} < 492000 || ${OSVERSION} >= 
> 500000 && ${OSVERSION} < 502120
> RUN_DEPENDS=
> 	${LOCALBASE}/sbin/pkg_info:${PORTSDIR}/sysutils/pkg_install-devel
> .endif
> 
> but this won't work on DragonFly-1.0.

OK, I think we can add DF_OSVERSION to bsd.port.mk, but I don't think you
should worry about 1.0 here. The worst case is an unneeded package installed.

> >For a port, IMO you can for the moment just depend on a current system,
> >e.g. I have to change bsd.port.mk now because x11/xorg-clients needs
> >some more magic. If you really insist on checking __DragonFly_version,
> >use sed / grep on /usr/include/sys/param.h.
> 
> Have you send the patches to Eric Anholt or x11@xxxxxxxxxxx? The 
> override thing seems to be maintenance intensive, but maybe I wrong 
> here...

I'll send him the patch set, once it works.

Joerg

> -Oliver



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]