Date: Mon, 14 Jun 2004 23:35:19 +0200 From: Oliver Eikemeier <eikemeier@fillmore-labs.com> To: Fernan Aguero <fernan@iib.unsam.edu.ar> Cc: FreeBSD Ports <ports@FreeBSD.org> Subject: Re: binary port: how to deal with 4.x vs 5.x? Message-ID: <BB827780-BE4A-11D8-9250-00039312D914@fillmore-labs.com> In-Reply-To: <20040614211940.GK38347@iib.unsam.edu.ar>
next in thread | previous in thread | raw e-mail | index | archive | help
Am Montag den, 14. Juni 2004, um 23:19, schrieb Fernan Aguero: > Hi! > > I have an almost complete port of WU BLAST > (http://blast.wustl.edu), which is only distributed as > pre-compiled binaries. > > Warren Gish has produced binaries for both freebsd-4.x and > 5.x. Currently my port only installs the one for 4.x > > Is it possible to use the same port Makefile and set two > different DISTNAMEs based on the OS version? > > The contents of the two files are similar, they're just > linked against different libraries (libc_r is one if I > remember correctly). > > I have already tried something along the lines of: > > .if __FreeBSD_version < 500000 > DISTNAME= xxxx > .else > DISTNAME= yyyy > .endif > > but it didn't work as expected. > > Any idea? Yep. You have to test the value of ${OSVERSION}, which is only available *after* including bsd.port.pre.mk. -Oliver
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BB827780-BE4A-11D8-9250-00039312D914>