DrVince
2005-Jan-27 15:44 UTC
[Asterisk-Users] Asterisk CVS on FreeBSD-stable gmaking result
Hi everyone, I've just compiled Asterisk from CVS in my FreeBSD-stable machine. It went fine. I did had to customised 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