On 11/06/2015 15:03, Euan Thoms wrote:

On Thursday, June 11, 2015 13:18 SGT, "Chris H" <[email protected]> wrote:

On Thu, 11 Jun 2015 11:33:03 +0800 "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/... .

MAKE_ARGS+=             PREFIX=${LOCALBASE}
MAKE_ARGS+=             exclude_modules="${EXCLUDE_MODULES}" 
include_modules="${INCLUDE_MODULES}"

While MAKE_ARGS should send options to gmake, what about backing up a
step to configure?

Try setting PREFIX in CONFIGURE_ENV or maybe MAKE_ENV to specify
environment variables instead of arguments.

cd ${WRKSRC} && ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} ${ALL_TARGET}

Do you need USE_AUTOTOOLS=autoconf or to add a custom do-configure: ?

#do-build:
#       cd ${WRKSRC} && ${GMAKE} ${MAKE_ARGS} ${ALL_TARGET}
#
#do-install:
#       cd ${WRKSRC} && ${GMAKE} ${MAKE_ARGS} ${INSTALL_TARGET}

.include <bsd.port.mk>
#### EOF ############

I can't find the make files for stage to drill down and see what's going wrong. Any 
pointers to the script that "make stage" uses?
--
FreeBSD - the place to B...Software Developing

Shane Ambler


_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[email protected]"

Reply via email to