From owner-freebsd-ports@FreeBSD.ORG Mon Jun 14 21:22:20 2004 Return-Path: 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 B9EEC16A51D for ; Mon, 14 Jun 2004 21:22:19 +0000 (GMT) Received: from smtp.unsam.edu.ar (smtp.unsam.edu.ar [170.210.48.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D12743D5A for ; Mon, 14 Jun 2004 21:22:10 +0000 (GMT) (envelope-from fernan@iib.unsam.edu.ar) Received: from pi.iib.unsam.edu.ar (pi.iib.unsam.edu.ar [192.168.10.11]) by smtp.unsam.edu.ar (8.12.6/8.12.6) with ESMTP id i5ELM4v0014969 for ; Mon, 14 Jun 2004 18:22:05 -0300 (ART) (envelope-from fernan@iib.unsam.edu.ar) Received: from pi.iib.unsam.edu.ar (localhost.iib.unsam.edu.ar [127.0.0.1]) by pi.iib.unsam.edu.ar (8.12.11/8.12.9) with ESMTP id i5ELJfSi049929 for ; Mon, 14 Jun 2004 18:19:41 -0300 (ART) (envelope-from fernan@iib.unsam.edu.ar) Received: (from fernan@localhost) by pi.iib.unsam.edu.ar (8.12.11/8.12.11/Submit) id i5ELJeJ7049928 for ports@FreeBSD.ORG; Mon, 14 Jun 2004 18:19:40 -0300 (ART) (envelope-from fernan@iib.unsam.edu.ar) X-Authentication-Warning: pi.iib.unsam.edu.ar: fernan set sender to fernan@iib.unsam.edu.ar using -f Date: Mon, 14 Jun 2004 18:19:40 -0300 From: Fernan Aguero To: FreeBSD Ports Message-ID: <20040614211940.GK38347@iib.unsam.edu.ar> Mail-Followup-To: FreeBSD Ports Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: binary port: how to deal with 4.x vs 5.x? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jun 2004 21:22:20 -0000 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? Thanks, Fernan -- F e r n a n A g u e r o http://genoma.unsam.edu.ar/~fernan