[Asterisk-bsd] Asterisk-stable on FreeBSD-stable compiling result

DrVince drvince at anonymnet.net
Fri Jan 28 12:36:57 CST 2005


Hi everyone,
I've just compiled Asterisk from CVS with tag=v1-0 in my FreeBSD-stable
machine.  It went fine.  I did had to customise the Makefile though:

ASTLIBDIR=$(INSTALL_PREFIX)/usr/local/lib/asterisk
ASTVARLIBDIR=$(INSTALL_PREFIX)/var/lib/asterisk
ASTETCDIR=$(INSTALL_PREFIX)/usr/local/etc/asterisk
ASTSPOOLDIR=$(INSTALL_PREFIX)/var/spool/asterisk
ASTLOGDIR=$(INSTALL_PREFIX)/var/log/asterisk
ASTHEADERDIR=$(INSTALL_PREFIX)/usr/local/include/asterisk
ASTCONFPATH=$(ASTETCDIR)/asterisk.conf
ASTBINDIR=$(INSTALL_PREFIX)/usr/local/bin
ASTSBINDIR=$(INSTALL_PREFIX)/usr/local/sbin
ASTVARRUNDIR=$(INSTALL_PREFIX)/var/run
ASTMANDIR=$(INSTALL_PREFIX)/usr/local/share/man

Also, FreeBSD has ncurses in base, I'm not sure if it got specified so I did:
 
ifeq (${OSARCH},FreeBSD)
LIBS+=-lcrypto -lncurses
endif

For asterisk-sounds, I did similar changes.

asterisk-addons was a little more tricky:

In Makefile:
CFLAGS+=-I/usr/local/include
gmake -C format_mp3 all
gmake -C format_mp3 clean

In cdr_addon_mysql.c:
#include "../asterisk/asterisk.h"

And I used zaptel in ports.  Also, I have the linux emulation installed, so it
might be required without me knowing it.

Cheers,
DrVince



More information about the Asterisk-BSD mailing list