From owner-freebsd-ports@FreeBSD.ORG Thu Jun 11 05:34:01 2015 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5136F5FB for ; Thu, 11 Jun 2015 05:34:01 +0000 (UTC) (envelope-from euan@potensol.com) Received: from smtp.potensol.com (smtp.potensol.com [103.15.233.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.potensol.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0C3991FB2 for ; Thu, 11 Jun 2015 05:34:00 +0000 (UTC) (envelope-from euan@potensol.com) Received: from smtp.potensol.com (smtp.potensol.com [103.15.233.195]) by smtp.potensol.com (Postfix) with ESMTP id CFFFA44375; Thu, 11 Jun 2015 05:33:57 +0000 (UTC) Received: from webmail.potensol.com (webmail.potensol.com [192.168.10.5]) by smtp.potensol.com (Postfix) with ESMTP id 6689244374; Thu, 11 Jun 2015 05:33:57 +0000 (UTC) content-type: text/plain; charset="utf-8" in-reply-to: <17fa6dada86db682a4435c086f71686c@ultimatedns.net> from: "Euan Thoms" X-Forward: 192.168.10.5 date: Thu, 11 Jun 2015 13:33:57 +0800 cc: freebsd-ports@freebsd.org to: "Chris H" MIME-Version: 1.0 message-id: <72b3-55791e00-1b-6b8b4580@197501805> subject: =?utf-8?q?Re:_New_port_with_USES=3Dgmake_will_not_stage?= User-Agent: SOGoMail 2.2.14 content-transfer-encoding: quoted-printable X-Virus-Scanned: ClamAV using ClamSMTP 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:34:01 -0000 On Thursday, June 11, 2015 13:18 SGT, "Chris H" wrote: > On Thu, 11 Jun 2015 11:33:03 +0800 "Euan Thoms" w= rote > > > I'm making a port for OpenSIPS. It builds successfully, but the eve= n 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/lo= cal/...). > > > > 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=3D${STAGEDIR} i= n 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 stagi= ng. > > OpenSIPS doesn't have a configure script AFAIK. It has it's own men= uconfig > > which normally generates a Makefile.conf. The only thing useful in = there is > > PREFIX=3D , but that is to specify the final destination paths (als= o used in > > linking I guess). My port passes the compile flags in MAKE=5FARGS i= nstead of > > using a Makefile.conf file. > Kind of a tough call w/o any real information -- your Makefile, the s= ource > location? :) Sorry about that. Source file is here: http://opensips.org/pub/opensips/1.11.5/opensips-1= .11.5-latest=5Fsrc.tar.gz here is my Makefile contents: # cat Makefile # Created by: Euan Thoms # $FreeBSD$ PORTNAME=3D opensips1-lts PORTVERSION=3D 1.11.5 CATEGORIES=3D net MASTER=5FSITES=3D http://opensips.org/pub/opensips/1.11.5/ DISTNAME=3D opensips-${PORTVERSION}-latest=5Fsrc MAINTAINER=3D euan@potensol.com COMMENT=3D OpenSIPS (Open SIP Server) is a mature Open S= ource implementation of a SIP server. LICENSE=3D GPLv2 LIB=5FDEPENDS=3D libxml2.so:${PORTSDIR}/textproc/libxml2 \ libmemcached.so:${PORTSDIR}/databases/libmemcac= hed BUILD=5FDEPENDS=3D python:${PORTSDIR}/lang/python WRKSRC=3D ${WRKDIR}/opensips-${PORTVERSION}-tls OPTIONS=5FDEFINE=3D LDAP MYSQL PGSQL MEMCACHED OPTIONS=5FDEFAULT=3D LDAP PGSQL MEMCACHED OPTIONS=5FSUB=3D yes LDAP=5FDESC=3D Build with LDAP support MYSQL=5FDESC=3D Build with MySQL support PGSQL=5FDESC=3D Build with PostgreSQL support MEMCACHED=5FDESC=3D Build with memcached support USES=3D gmake shebangfix USE=5FGCC=3D yes .include #post-patch: # ${REINPLACE=5FCMD} -e 's|^#include |#include "Python.= h"|' ${WRKSRC}/ EXCLUDE=5FMODULES=3D aaa=5Fradius b2b=5Flogic cachedb=5Fcassandr= a cachedb=5Fcouchbase \ cachedb=5Fmemcached cachedb=5Fmongodb cachedb=5F= redis carrierroute cpl-c db=5Fberkeley \ db=5Fhttp db=5Fmysql db=5Foracle db=5Fperlvdb d= b=5Fpostgres db=5Funixodbc dialplan \ event=5Frabbitmq h350 regex identity jabber jso= n ldap lua httpd mi=5Fxmlrpc=5Fng \ mi=5Fxmlrpc mmgeoip osp perl pi=5Fhttp presence= presence=5Fdialoginfo presence=5Fmwi \ presence=5Fxml pua pua=5Fbla pua=5Fdialoginfo p= ua=5Fmi pua=5Fusrloc pua=5Fxmpp python \ rest=5Fclient rls sngtc snmpstats xcap xcap=5Fc= lient xmpp INCLUDE=5FMODULES=3D aaa=5Fradius b2b=5Flogic cachedb=5Fmemcache= d carrierroute \ cpl-c db=5Fpostgres dialplan event=5Frabbitmq h= 350 regex identity jabber json \ ldap httpd mi=5Fxmlrpc=5Fng mi=5Fxmlrpc mmgeoip= perl pi=5Fhttp presence \ presence=5Fdialoginfo presence=5Fmwi presence=5F= xml pua pua=5Fbla pua=5Fdialoginfo \ pua=5Fmi pua=5Fusrloc pua=5Fxmpp python rest=5F= client rls xcap xcap=5Fclient xmpp MAKE=5FARGS+=3D PREFIX=3D${LOCALBASE} MAKE=5FARGS+=3D exclude=5Fmodules=3D"${EXCLUDE=5FMODULES}" = include=5Fmodules=3D"${INCLUDE=5FMODULES}" #do-build: # cd ${WRKSRC} && ${GMAKE} ${MAKE=5FARGS} ${ALL=5FTARGET} # #do-install: # cd ${WRKSRC} && ${GMAKE} ${MAKE=5FARGS} ${INSTALL=5FTARGET} .include #### EOF ############ I can't find the make files for stage to drill down and see what's goin= g wrong. Any pointers to the script that "make stage" uses? > > > > -- > > Regards, Euan Thoms > > > > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= > > 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 > > > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.o= rg" -- Regards, Euan Thoms