From owner-freebsd-ports@FreeBSD.ORG Tue Nov 27 20:40:20 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 831A2845 for ; Tue, 27 Nov 2012 20:40:20 +0000 (UTC) (envelope-from ohauer@FreeBSD.org) Received: from p578be941.dip0.t-ipconnect.de (p578be941.dip0.t-ipconnect.de [87.139.233.65]) by mx1.freebsd.org (Postfix) with ESMTP id 392BA8FC08 for ; Tue, 27 Nov 2012 20:40:20 +0000 (UTC) Received: from [192.168.0.100] (cde1100.uni.vrs [192.168.0.100]) (Authenticated sender: ohauer) by p578be941.dip0.t-ipconnect.de (Postfix) with ESMTPSA id B9D3E20908; Tue, 27 Nov 2012 21:40:16 +0100 (CET) Message-ID: <50B5252F.4090102@FreeBSD.org> Date: Tue, 27 Nov 2012 21:40:15 +0100 From: Olli Hauer User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: FreeBSD Ports List Subject: Re: How to descend into the extract to build in a subdir References: <4B522159C9F77F81D968E64D@utd71538.campus.ad.utdallas.edu> In-Reply-To: <4B522159C9F77F81D968E64D@utd71538.campus.ad.utdallas.edu> X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Paul Schmehl 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: Tue, 27 Nov 2012 20:40:20 -0000 On 2012-11-27 21:24, Paul Schmehl wrote: > I'm working on a port that requires a separate ./configure and ./make to build libraries before you build the main source. How is this done in ports? > > I figure you have to do something in pre-build:, but I'm not sure exactly what. > (cd ${WRKSRC}/subdir && ${MAKE}) causes make to fail entirely. I'm having trouble finding a comparable example in ports and there doesn't seem to be anything about it in the porters handbook (that I have found.) > Hi Paul, you can overwrite also the whole build part with a do-build: target For example the devel/apr1 port has to build apr before apr-util. Maybe you can show your current Makefile -- Regards, olli