New port with USES=gmake will not stage

Euan Thoms euan at
Thu Jun 11 03:40:10 UTC 2015

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.

Regards, Euan Thoms

More information about the freebsd-ports mailing list