Re: New port with USES=gmake will not stage

Euan Thoms euan at potensol.com
Fri Jun 12 08:04:30 UTC 2015


 
On Thursday, June 11, 2015 11:33 SGT, "Euan Thoms" <euan at potensol.com> 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.
> 

I think I've cracked it! The OpenSIPS Makefile does not use DESTDIR as per GNU Coding Standards. Instead it uses BASEDIR. So it looks like I can just replace DESTDIR= with BASEDIR= in my do-build and/or do-install and jobs-a-good-un. 
 
-- 
Regards, Euan Thoms 




More information about the freebsd-ports mailing list