From owner-freebsd-ports@FreeBSD.ORG Thu Jul 10 20:34:43 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 07DB1106567B for ; Thu, 10 Jul 2008 20:34:43 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156]) by mx1.freebsd.org (Postfix) with ESMTP id 0DC4E8FC1D for ; Thu, 10 Jul 2008 20:34:41 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1959355fgb.35 for ; Thu, 10 Jul 2008 13:34:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Gz3sXAK1jLKwKJ/z/pbhQPAu8smK//MtTFvQU08hOHY=; b=FDcfkzKT6gOt9RHEQSaQEj4aRvNjQnOtKeyd5hanF0NOOKXbcASbNXh6YgkfnZEryr 7xMf/ce8SFrz5FiI+aceNGBWQVuL5EDqT5yLhdzCe1V5ypw6cgPHs5T7z9ia2mkI/5kJ mt9+7NL5ACtviXrCT88SBXZ2+qcSpVfy1C7D8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=a0bJFdQR5lcyssCgfSoOxMXqa7rxqu6MktXuEjpepUu774Q5h6ARK9YmV5yoC+WJkT bkdXYpr2IcFqdfCUNKIxXwbGdHfmRflcFVOJ8DxR8xiriBJCSu9c5lDSwa1kl1jeUVzf aH9zAVx0QOa5Zfz7hGpsEYrzZRagXQC9m7H18= Received: by 10.86.90.13 with SMTP id n13mr8951656fgb.3.1215722079773; Thu, 10 Jul 2008 13:34:39 -0700 (PDT) Received: by 10.86.51.1 with HTTP; Thu, 10 Jul 2008 13:34:39 -0700 (PDT) Message-ID: <7d6fde3d0807101334v1362886di7fe1057093ca29bf@mail.gmail.com> Date: Thu, 10 Jul 2008 13:34:39 -0700 From: "Garrett Cooper" To: "=?ISO-8859-1?Q?Anders_Trob=E4ck?=" In-Reply-To: <20080710193955.1acc2184@baal.troback.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20080710110457.4b160eb1@itpc02.gelita.swe> <200807100154.17094.beech@freebsd.org> <20080710145415.59244492@itpc02.gelita.swe> <20080710193955.1acc2184@baal.troback.com> Cc: freebsd-ports@freebsd.org Subject: Re: Tgz in tgz...! X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2008 20:34:43 -0000 On Thu, Jul 10, 2008 at 10:39 AM, Anders Trob=E4ck wr= ote: > On Thu, 10 Jul 2008 14:54:15 +0200 > Anders Troback wrote: > >> On Thu, 10 Jul 2008 01:54:10 -0800 >> Beech Rintoul wrote: >> >> > On Thursday 10 July 2008, Anders Troback said: >> > > Hi, >> > > >> > > I need some tips about a port that I'm working on! >> > > >> > > The problem that I have are that the source of the code are in a >> > > tgz that are in a sub folder in an other tgz! So first I need the >> > > port to download and extract the first tgz and then extract, >> > > configure and make the second tgz! >> > > >> > > How do I cope with that? >> > > >> > > Thanks! >> > >> > You can probably extract the second time in post-extract, but >> > you're going to have to get creative defining the right ${WRKSRC}. >> > After that it should patch and build normally. >> > >> > Beech >> > >> >> OK! Next problem:-] >> >> The program that I want to build are under a sub folder of >> ${WRKSRC}/src so first I need to make the "main" program and then I >> have to run make in that sub folder! Are there any macros that do >> things like this or is there some other way? >> >> Thanks again! >> > > Is this a "legal" way of solving this issue? > > post-build: > cd ${WRKSRC}/src/extras && make Wouldn't `gmake -C ${WRKSRC}/src/extras' be better? -Garrett