From owner-freebsd-ports@FreeBSD.ORG Wed Mar 20 18:28:40 2013 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id ADDCC7E2 for ; Wed, 20 Mar 2013 18:28:40 +0000 (UTC) (envelope-from gary@hayers.org) Received: from mailout.easydns.com (mailout.easydns.com [64.68.200.141]) by mx1.freebsd.org (Postfix) with ESMTP id 51236C2A for ; Wed, 20 Mar 2013 18:28:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mailout.easydns.com (Postfix) with ESMTP id 682BFE3B6; Wed, 20 Mar 2013 14:28:38 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at mailout.easydns.com Received: from mailout.easydns.com ([127.0.0.1]) by localhost (mailout.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IMh58tZ302Xy; Wed, 20 Mar 2013 14:28:35 -0400 (EDT) Received: from ares.hayers.org (cpc1-tilb7-2-0-cust218.basl.cable.virginmedia.com [94.168.104.219]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout.easydns.com (Postfix) with ESMTPSA id F3F61E3C8; Wed, 20 Mar 2013 14:28:34 -0400 (EDT) Received: from ares.hayers.org (MX1.Hayers.ORG [127.0.0.1]) by ares.hayers.org (Postfix) with ESMTP id 70024702221; Wed, 20 Mar 2013 18:28:33 +0000 (GMT) X-Virus-Scanned: HCF running on mx1.hayers.org Received: from ares.hayers.org ([127.0.0.1]) by ares.hayers.org (mx1.hayers.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lhYDbzqkL0Cf; Wed, 20 Mar 2013 18:28:30 +0000 (GMT) Received: from [192.168.8.2] (Zeus.Hayers.ORG [192.168.8.2]) (Authenticated sender: gary) by ares.hayers.org (Postfix) with ESMTPA id 5F261702321; Wed, 20 Mar 2013 18:28:30 +0000 (GMT) Message-ID: <5149FFCB.90207@hayers.org> Date: Wed, 20 Mar 2013 18:28:27 +0000 From: "Gary J. Hayers" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 MIME-Version: 1.0 To: olli hauer , ports@freebsd.org Subject: Re: Makefile for different ARCH References: <5149EDD8.6010005@hayers.org> <5149F9C3.506@gmx.de> <5149FA51.9040603@hayers.org> In-Reply-To: <5149FA51.9040603@hayers.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Mar 2013 18:28:40 -0000 Olli this is the perfect solution many thanks. On 20/03/2013 18:05, Gary J. Hayers wrote: > Thanks Olli, > > That could very well be exactly what I need, I did try something along > those lines but was loosing my way with syntax. > > On 20/03/2013 18:02, olli hauer wrote: >> On 2013-03-20 18:11, Gary J. Hayers wrote: >>> Hi, >>> >>> So I have a port I'm working on that has different distfiles for >>> different ARCH ie: >>> >>> i386 = foo.tar.Z >>> amd64 = foo.amd64.tar.Z >>> >>> What is the best way for my makefile to choose the right distfile >>> dependant on what ARCH the port is being install on? Hope I have >>> conveyed that clearly. >>> >> >> >> You can check ARCH, see example. >> portlint will spot the DISTINFO is to late, but you need at last >> to get the ARCH value. >> Do not forget to include both checksums in distinfo >> >> // olli >> >> PORTNAME= foo >> PORTVERSION= 1.0 >> CATEGORIES= misc >> MASTER_SITES= http://localhost/distfiles/ >> EXTRACT_SUFX= .tar.Z >> >> MAINTAINER= gary@hayers.org >> COMMENT= The foo arch test port >> >> ONLY_FOR_ARCHS= i386 amd64 >> >> .include >> >> .if ${ARCH} == amd64 >> DISTNAME= foo.amd64.tar.Z >> .else >> DISTNAME= foo.tar.Z >> .endif >> > > -- Regards, Gary J. Hayers gary@hayers.org PGP Signature http://www.hayers.org/pgp