From owner-freebsd-ports@FreeBSD.ORG Thu Jun 11 05:18:16 2015 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C54A9422 for ; Thu, 11 Jun 2015 05:18:16 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from udns.ultimatedns.net (unknown [IPv6:2602:d1:b4d6:e600:4261:86ff:fef6:aa2a]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9AA4E1B3B for ; Thu, 11 Jun 2015 05:18:16 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.14.9/8.14.9) with ESMTP id t5B5Ics6088945 for ; Wed, 10 Jun 2015 22:18:44 -0700 (PDT) (envelope-from bsd-lists@bsdforge.com) To: In-Reply-To: <72ad-55790180-1f-6b8b4580@135110433> References: <72ad-55790180-1f-6b8b4580@135110433> From: "Chris H" Subject: Re: New port with USES=gmake will not stage Date: Wed, 10 Jun 2015 22:18:44 -0700 Content-Type: text/plain; charset=UTF-8; format=fixed MIME-Version: 1.0 Message-id: <17fa6dada86db682a4435c086f71686c@ultimatedns.net> Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jun 2015 05:18:16 -0000 On Thu, 11 Jun 2015 11:33:03 +0800 "Euan Thoms" wrote > I'm making a port for OpenSIPS. It builds successfully, but the even with > just "make" it installs files to the system instead of to stage (i.e. to > /usr/local/... instead of /usr/ports/net/opensips/work/stage/usr/local/...). > > I am using gmake and gcc since that's what's required for OpenSIPS. > > I've done a similar port before and the FreeBSD ports macros do the staging > for me. However, even when I tell gmake the DESTDIR=${STAGEDIR} in do-build > and do-install, a "make" just installs the files to /usr/local/... . > > I can't find any documentation on how to ensure building uses staging. > OpenSIPS doesn't have a configure script AFAIK. It has it's own menuconfig > which normally generates a Makefile.conf. The only thing useful in there is > PREFIX= , but that is to specify the final destination paths (also used in > linking I guess). My port passes the compile flags in MAKE_ARGS instead of > using a Makefile.conf file. Kind of a tough call w/o any real information -- your Makefile, the source location? :) > > -- > Regards, Euan Thoms > > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" --Chris