Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jun 2015 13:33:57 +0800
From:      "Euan Thoms" <euan@potensol.com>
To:        "Chris H" <bsd-lists@bsdforge.com>
Cc:        freebsd-ports@freebsd.org
Subject:   =?utf-8?q?Re:_New_port_with_USES=3Dgmake_will_not_stage?=
Message-ID:  <72b3-55791e00-1b-6b8b4580@197501805>
In-Reply-To: <17fa6dada86db682a4435c086f71686c@ultimatedns.net>

next in thread | previous in thread | raw e-mail | index | archive | help
 
On Thursday, June 11, 2015 13:18 SGT, "Chris H" <bsd-lists@bsdforge.com=
> wrote: 
 
> On Thu, 11 Jun 2015 11:33:03 +0800 "Euan Thoms" <euan@potensol.com> 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 <euan@potensol.com>
# $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 <bsd.port.options.mk>

#post-patch:
#       ${REINPLACE=5FCMD} -e 's|^#include <Python.h>|#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 <bsd.port.mk>
#### 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 





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?72b3-55791e00-1b-6b8b4580>