# New ports collection makefile for: asterisk # Date created: 17 October 2003 # Whom: Maxim Sobolev # # $FreeBSD$ # PORTNAME= asterisk PORTVERSION= 1.6.2.20 CATEGORIES= net MASTER_SITES= http://downloads.asterisk.org/pub/telephony/asterisk/ \ http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/ PKGNAMESUFFIX= 16 MAINTAINER= flo@FreeBSD.org COMMENT= An Open Source PBX and telephony toolkit LIB_DEPENDS= speex.1:${PORTSDIR}/audio/speex \ newt.52:${PORTSDIR}/devel/newt \ execinfo:${PORTSDIR}/devel/libexecinfo RUN_DEPENDS= mpg123:${PORTSDIR}/audio/mpg123 ONLY_FOR_ARCHS= i386 amd64 sparc64 GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/openh323" \ LDFLAGS="-L${LOCALBASE}/lib" CONFIGURE_ARGS= --with-gsm=${LOCALBASE} CPPFLAGS= -I${LOCALBASE}/include -I${LOCALBASE}/include/openh323 USE_GMAKE= yes USE_GNOME= libxml2 USE_BISON= build USE_RC_SUBR= asterisk.sh MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ PTHREAD_LIBS="${PTHREAD_LIBS}" \ MKDIR="${MKDIR}" \ PWLIBDIR=${LOCALBASE}/share/pwlib \ OPENH323DIR=${LOCALBASE}/share/openh323 \ OSVERSION=${OSVERSION} \ NOISY_BUILD=YES \ DOCSDIR=${DOCSDIR} \ ASTCFLAGS="${CFLAGS}" MAN8= asterisk.8 astgenkey.8 autosupport.8 safe_asterisk.8 CONFLICTS_BUILD= linuxthreads-* CONFLICTS_INSTALL= asterisk*-1.2* asterisk*-1.4* asterisk*-1.8* OPTIONS= OGGVORBIS "Enable Ogg Vorbis support" on \ IODBC "Enable iODBC support" off \ UODBC "Enable unixODBC support" on \ POSTGRES "Enable PostgreSQL support" on \ RADIUS "Enable RADIUS accounting support" on \ SNMP "Enable SNMP support" on \ H323 "Enable H.323 support" on \ FREETDS "Enable FreeTDS support" on \ JABBER "Enable Jabber and Gtalk support" on \ SQLITE "Enable SQLITE support" on \ GSM "Enable GSM codec" on \ CURL "Enable CURL support" on \ ILBC "Enable iLBC codec" off \ SPANDSP "Enable Spandsp faxing support" off ASTERISK_USER?= asterisk ASTERISK_GROUP?= asterisk USERS= ${ASTERISK_USER} GROUPS= ${ASTERISK_GROUP} dahdi .include .if ${PREFIX} == ${LOCALBASE} VARDIR=/var .else VARDIR=${PREFIX}/var .endif .if ${ARCH} == "i386" || ${ARCH} == "amd64" || ${ARCH} == "sparc64" OPTIONS+= DAHDI "Enable DAHDI support" on .if defined(WITH_IODBC) && defined(WITH_UODBC) IGNORE= please select only one of iodbc or unixODBC .endif # Include this since we have altered OPTIONS. .include .endif SUB_LIST+= ASTERISK_USER=${ASTERISK_USER} PLIST_SUB+= ASTERISK_USER=${ASTERISK_USER} PLIST_SUB+= ASTERISK_GROUP=${ASTERISK_GROUP} PLIST_SUB+= VARDIR=${VARDIR} .if !defined(WITH_H323) PLIST_SUB+= WITH_H323="@comment " CONFIGURE_ARGS+= --without-h323 .else PLIST_SUB+= WITH_H323="" CONFIGURE_ARGS+= --with-h323=${LOCALBASE} LIB_DEPENDS+= pt_r.1:${PORTSDIR}/devel/pwlib \ h323_r.1:${PORTSDIR}/net/openh323 .endif .if !defined(WITH_DAHDI) PLIST_SUB+= WITH_DAHDI="@comment " CONFIGURE_ARGS+= --without-dahdi .else PLIST_SUB+= WITH_DAHDI="" CONFIGURE_ARGS+= --with-dahdi BUILD_DEPENDS+= libpri>=1.4.10:${PORTSDIR}/misc/libpri \ ${LOCALBASE}/include/dahdi/user.h:${PORTSDIR}/misc/dahdi LIB_DEPENDS+= pri.1:${PORTSDIR}/misc/libpri .endif # # WITH_FREETDS, WITH_PGSQL and WITH_SQLITE can also be added to MAKE_ENV # similarly .if !defined(WITH_UODBC) CONFIGURE_ARGS+= --without-unixodbc .endif .if !defined(WITH_IODBC) CONFIGURE_ARGS+= --without-iodbc .endif .if !defined(WITH_UODBC) && !defined(WITH_IODBC) PLIST_SUB+= WITH_ODBC="@comment " .endif .if defined(WITH_UODBC) || defined(WITH_IODBC) PLIST_SUB+= WITH_ODBC="" USE_AUTOTOOLS= libltdl .if defined(WITH_UODBC) CONFIGURE_ARGS+= --with-unixodbc --with-ltdl LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC .elif defined(WITH_IODBC) CONFIGURE_ARGS+= --with-iodbc --with-ltdl LIB_DEPENDS+= iodbc.3:${PORTSDIR}/databases/libiodbc .endif .endif .if !defined(WITH_FREETDS) PLIST_SUB+= WITH_FREETDS="@comment " CONFIGURE_ARGS+= --without-tds .else PLIST_SUB+= WITH_FREETDS="" CONFIGURE_ARGS+= --with-tds=${LOCALBASE} LIB_DEPENDS+= tds.5:${PORTSDIR}/databases/freetds .endif .if !defined(WITH_POSTGRES) PLIST_SUB+= WITH_POSTGRES="@comment " CONFIGURE_ARGS+= --without-postgres .else PLIST_SUB+= WITH_POSTGRES="" USE_PGSQL= yes CONFIGURE_ARGS+= --with-postgres .endif .if !defined(WITH_OGGVORBIS) PLIST_SUB+= WITH_OGGVORBIS="@comment " CONFIGURE_ARGS+= --without-ogg .else PLIST_SUB+= WITH_OGGVORBIS="" CONFIGURE_ARGS+= --with-ogg LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis .endif .if !defined(WITH_RADIUS) PLIST_SUB+= WITH_RADIUS="@comment " CONFIGURE_ARGS+= --without-radius .else PLIST_SUB+= WITH_RADIUS="" CONFIGURE_ARGS+= --with-radius LIB_DEPENDS+= radiusclient-ng.2:${PORTSDIR}/net/radiusclient .endif .if !defined(WITH_SNMP) PLIST_SUB+= WITH_SNMP="@comment " CONFIGURE_ARGS+= --without-netsnmp .else PLIST_SUB+= WITH_SNMP="" CONFIGURE_ARGS+= --with-netsnmp LIB_DEPENDS+= netsnmp:${PORTSDIR}/net-mgmt/net-snmp .endif .if !defined(WITH_JABBER) PLIST_SUB+= WITH_JABBER="@comment " CONFIGURE_ARGS+= --without-iksemel .else PLIST_SUB+= WITH_JABBER="" CONFIGURE_ARGS+= --with-iksemel LIB_DEPENDS+= iksemel.4:${PORTSDIR}/textproc/iksemel .endif .if !defined(WITH_SQLITE) PLIST_SUB+= WITH_SQLITE="@comment " CONFIGURE_ARGS+= --without-sqlite \ --with-sqlite3=no .else PLIST_SUB+= WITH_SQLITE="" CONFIGURE_ARGS+= --with-sqlite LIB_DEPENDS+= sqlite:${PORTSDIR}/databases/sqlite2 \ sqlite3:${PORTSDIR}/databases/sqlite3 .endif .if !defined(WITH_ILBC) PLIST_SUB+= WITH_ILBC="@comment " .else PLIST_SUB+= WITH_ILBC="" EXTRA_PATCHES+= ${PATCHDIR}/ilbc_enable.diff .endif .if !defined(WITH_GSM) PLIST_SUB+= WITH_GSM="@comment " CONFIGURE_ARGS+= --without-gsm .else PLIST_SUB+= WITH_GSM="" CONFIGURE_ARGS+= --with-gsm LIB_DEPENDS+= gsm.1:${PORTSDIR}/audio/gsm .endif .if !defined(WITH_CURL) PLIST_SUB+= WITH_CURL="@comment " CONFIGURE_ARGS+= --with-libcurl=no .else PLIST_SUB+= WITH_CURL="" CONFIGURE_ARGS+= --with-libcurl LIB_DEPENDS+= curl.6:${PORTSDIR}/ftp/curl .endif .if !defined(WITH_SPANDSP) PLIST_SUB+= WITH_SPANDSP="@comment " CONFIGURE_ARGS+= --without-spandsp .else PLIST_SUB+= WITH_SPANDSP="" CONFIGURE_ARGS+= --with-spandsp LIB_DEPENDS+= spandsp.2:${PORTSDIR}/comms/spandsp-devel .endif .if defined(WITH_MISC_PATCHES) EXTRA_PATCHES+= ${PATCHDIR}/dtmf_debug.diff EXTRA_PATCHES+= ${PATCHDIR}/feature_disconnect.diff EXTRA_PATCHES+= ${PATCHDIR}/sip_force_callid.diff EXTRA_PATCHES+= ${PATCHDIR}/sip_set_auth.diff .if defined(WITH_CODEC_PATCH) EXTRA_PATCHES+= ${PATCHDIR}/rtp_force_dtmf-codecnego.diff .else EXTRA_PATCHES+= ${PATCHDIR}/rtp_force_dtmf-nocodecnego.diff .endif .endif post-extract: ${MKDIR} ${WRKSRC}/codecs/ilbc ${FIND} ${WRKSRC} -name '*.d' -delete post-patch: ${REINPLACE_CMD} -e 's|/var/lib|${PREFIX}/share|g' ${WRKSRC}/configs/musiconhold.conf.sample post-install: @${CHOWN} -R ${ASTERISK_USER}:${ASTERISK_GROUP} ${VARDIR}/db/asterisk ${VARDIR}/log/asterisk ${VARDIR}/spool/asterisk .include s='list nowrap'>Commit message (Expand)AuthorAgeFilesLines * - Update to 3.0.STABLE19miwi2009-09-092-4/+4 * - Update to 3.0.STABLE18miwi2009-08-052-4/+4 * Update to 3.0STABLE17.delphij2009-07-282-8/+5 * - Update MASTER_SITE_SUBDIRmiwi2009-06-291-2/+2 * - Update to 3.0.STABLE16miwi2009-06-183-495/+8 * - Update to 3.0 STABLE15dhn2009-05-082-4/+4 * - Update to 3.0.STABLE14miwi2009-04-132-5/+4 * - The squid_kerb_auth helper needs to know about the endianness of the systemmiwi2009-04-012-0/+23 * - Update to 3.0.STABLE13miwi2009-02-092-4/+4 * - Update to 3.0.STABLE12amdmi32009-01-242-4/+4 * - Remove conditional checks for FreeBSD 5.x and olderwxs2009-01-071-14/+1 * - Update to 3.0.STABLE11miwi2008-12-253-15/+481 * - Update to 3.0.STABLE10miwi2008-10-242-6/+8 * - Update to 3.0.STABLE9miwi2008-09-262-12/+19 * Conversion from (now defunct) autoconf-2.61 to autoconf-2.62ade2008-08-201-1/+1 * - Update to 3.0.STABLE8miwi2008-07-202-5/+7 * Update to 3.0-STABLE7, fixes a DoS issue.delphij2008-06-292-5/+5 * - Update to 3.0.STABLE6miwi2008-05-253-69/+5 * - Correct an issue that prevented the definition of the default cachemgr.cgimiwi2008-05-162-11/+60 * - Update to 123269miwi2008-05-022-6/+6 * - Update to 3.0.STABLE4beech2008-04-054-77/+5 * - Include a (temporary) vendor patch for Squid bug #2206miwi2008-03-303-17/+66 * - Update to 3.0.STABLE2beech2008-03-143-6/+37 * - Update to 3.0.STABLE1miwi2007-12-196-252/+15 * Apply a slightly modified vendor patch against SQUID-2007_2.delphij2007-12-052-0/+144 * - Update to 3.0.RC1miwi2007-10-064-159/+93 * Remove support for OSVERSION < 5edwin2007-10-041-1/+1 * Switch autoconf dependencies from 2.53 or 2.59 to 2.61.linimon2007-09-301-0/+1 * - Update to 3.0.p7miwi2007-09-244-234/+180 * - Update to PatchSet 10865 as of 20070623miwi2007-06-254-21/+114 * - Remove old patchesmiwi2007-06-142-490/+0 * - Add www/squid30 -- a development snapshotmiwi2007-06-136-7138/+194 * - update to 2.6.STABLE13delphij2007-05-255-121/+33 * Add a patch for Squid bug #1814, see <http://www.squid-cache.org/bugs/show_bu...miwi2007-04-262-0/+82 * - Update to 2.6.STABLE.12miwi2007-03-212-5/+5 * - Update to 2.6.STABLE11.miwi2007-03-183-31/+26 * - Update to 2.6 stable10miwi2007-03-084-297/+234 * Renamepav2007-02-0716-3213/+1088 * - Add a patch for Squid bug #1857 (segfault on certain FTP URLs).miwi2007-01-22