On Thursday, June 11, 2015 11:33 SGT, "Euan Thoms" <[email protected]> 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 _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[email protected]"
