# $NetBSD$

DISTNAME=	freeswitch-${VERSION}
VERSION=	1.6.19
CATEGORIES=	net
MASTER_SITES=	http://files.freeswitch.org/releases/freeswitch/
EXTRACT_SUFX=	.tar.xz

MAINTAINER=	angelmadames@gmail.com
HOMEPAGE=	http://www.freeswitch.org/
COMMENT=	FreeSwitch SoftSwitch
LICENSE=	mpl-1.1

GNU_CONFIGURE=		yes
USE_LIBTOOL=		yes
LIBTOOL_OVERRIDE=	libtool */libtool */*/libtool */*/*/libtool
USE_LANGUAGES=		c c++
USE_TOOLS+=		aclocal automake autoconf gmake perl pkg-config bash

BUILD_DEFS+=		VARBASE

.include "../../mk/bsd.prefs.mk"

CONFIGURE_ARGS+=	--prefix=${PREFIX}
CONFIGURE_ARGS+=	--exec-prefix=${PREFIX}/bin
CONFIGURE_ARGS+=	--bindir=${PREFIX}/bin
CONFIGURE_ARGS+=	--libexecdir=${PREFIX}/libexec
CONFIGURE_ARGS+=	--sysconfdir=${PREFIX}/etc
CONFIGURE_ARGS+=	--libdir=${PREFIX}/lib
CONFIGURE_ARGS+=	--localstatedir=${VARBASE}/db/freeswitch
CONFIGURE_ARGS+=	--datarootdir=${PREFIX}/share
CONFIGURE_ARGS+=	--includedir=${PREFIX}/include
CONFIGURE_ARGS+=	--mandir=${PREFIX}/${PKGMANDIR}
CONFIGURE_ARGS+=	--docdir=${PREFIX}/share/doc
CONFIGURE_ARGS+=	--htmldir=${PREFIX}/doc
CONFIGURE_ARGS+=	--dvidir=${PREFIX}/doc
CONFIGURE_ARGS+=	--psdir=${PREFIX}/doc
CONFIGURE_ARGS+=	--with-cachedir=${VARBASE}/cache/freeswitch
CONFIGURE_ARGS+=	--with-storagedir=${VARBASE}/db/freeswitch
CONFIGURE_ARGS+=	--with-rundir=${VARBASE}/run/freeswitch
CONFIGURE_ARGS+=	--with-logfiledir=${VARBASE}/log/freeswitch
CONFIGURE_ARGS+=	--with-dbdir=${VARBASE}/db/freeswitch
CONFIGURE_ARGS+=	--with-imagesdir=${PREFIX}/share/freeswitch/images
CONFIGURE_ARGS+=	--with-recordingsdir=${PREFIX}/freeswitch/recordings
CONFIGURE_ARGS+=	--with-modinstdir=${PREFIX}/freeswitch/modules
.if ${OPSYS} != "SunOS"
CONFIGURE_ARGS+=	--enable-zrtp
.endif
CONFIGURE_ARGS+=	--enable-core-pgsql-support
CONFIGURE_ARGS+=	--enable-xmlrpc-c
CONFIGURE_ARGS+=	--enable-64

REPLACE_PERL+=		scripts/rss/*.pl
REPLACE_PERL+=		scripts/perl/*.pl
REPLACE_PERL+=		scripts/perl/*.cgi
REPLACE_PERL+=		scripts/perl/multicast/send.pl
REPLACE_PERL+=		scripts/perl/add_user
REPLACE_PERL+=		scripts/perl/sendmail
REPLACE_PERL+=		scripts/perl/fslog
REPLACE_PERL+=		scripts/perl/g729_activate
REPLACE_PERL+=		scripts/perl/FreeSWITCH/debian/rules
REPLACE_PERL+=		scripts/perl/POE-Filter-FSSocket/lib/POE/Filter/FSSocket.pm
REPLACE_PERL+=		scripts/perl/POE-Filter-FSSocket/examples/*.pl
REPLACE_PERL+=		scripts/perl/POE-Filter-FSSocket/Makefile.PL
REPLACE_PERL+=		scripts/trace/sipgrep
REPLACE_PERL+=		scripts/fsxs.in
REPLACE_PERL+=		support-d/utils/*.pl
REPLACE_PERL+=		support-d/utils/gl
REPLACE_PERL+=		support-d/utils/btgrep
REPLACE_PERL+=		support-d/utils/hashfinder
REPLACE_PERL+=		build/*.pl
REPLACE_PERL+=		docs/phrase/phrase.pl
REPLACE_PERL+=		docs/Doxygen.conf
REPLACE_PERL+=		libs/sofia-sip/utils/Doxyfile.in
REPLACE_PERL+=		libs/sofia-sip/libsofia-sip-ua/tport/*.pl
REPLACE_PERL+=		libs/libzrtp/create_pack.pl
REPLACE_PERL+=		libs/libzrtp/doc/Doxyfile.in
REPLACE_PERL+=		libs/freetdm/docs/Doxygen.conf
REPLACE_PERL+=		libs/libvpx/libs.doxy_template
REPLACE_PERL+=		libs/libg722_1/doc/libg722_1-doxygen
REPLACE_PERL+=		libs/spandsp/doc/doxygen.in
REPLACE_PERL+=		libs/ilbc/doc/libilbc-doxygen
REPLACE_PERL+=		libs/libdingaling/docs/Doxygen.conf
REPLACE_PERL+=		libs/broadvoice/doc/broadvoice-doxygen
REPLACE_PERL+=		libs/xmlrpc-c/tools/binmode-rpc-kit/binmode-rpc2xml-rpc
REPLACE_PERL+=		libs/xmlrpc-c/tools/binmode-rpc-kit/oct2bin
REPLACE_PERL+=		libs/srtp/doc/Doxyfile
REPLACE_PERL+=		libs/esl/test.pl
REPLACE_PERL+=		libs/esl/perl/*.pl
REPLACE_PERL+=		libs/apr/helpers/apr_rename.pl
REPLACE_PERL+=		libs/libtpl-1.5/lang/perl/tests/*
REPLACE_PERL+=		libs/libtpl-1.5/doc/html/*.html
REPLACE_PERL+=		libs/libtpl-1.5/doc/txt/*.txt
REPLACE_PERL+=		libs/libtpl-1.5/tests/other/do_tests
REPLACE_PERL+=		libs/libtpl-1.5/tests/do_tests.cygwin
REPLACE_PERL+=		libs/libtpl-1.5/tests/do_tests
REPLACE_PERL+=		libs/libtpl-1.5/tests/sizes
REPLACE_PERL+=		src/mod/applications/mod_httapi/examples/perl/*.cgi
REPLACE_PERL+=		src/mod/applications/mod_avmd/scripts/*.pl
REPLACE_PERL+=		src/mod/endpoints/mod_skypopen/install/install.pl
REPLACE_PERL+=		src/mod/endpoints/mod_gsmopen/asterisk/ciapalo
REPLACE_PERL+=		src/mod/endpoints/mod_skinny/test-skinny.pl

REPLACE_BASH+=		devel-bootstrap.sh
REPLACE_BASH+=		scripts/*.sh
REPLACE_BASH+=		debian/*.sh
REPLACE_BASH+=		build/*.sh
REPLACE_BASH+=		src/mod/say/mod_say_pl/create_sound_files.sh
REPLACE_BASH+=		src/mod/endpoints/mod_khomp/tools/*.sh
REPLACE_BASH+=		src/mod/endpoints/mod_gsmopen/alsa_nogsmlib_nocplusplus/mod_gsmopen/configs/setmixers
REPLACE_BASH+=		src/mod/endpoints/mod_gsmopen/libctb-0.16/python/src/linux/makepy.sh
REPLACE_BASH+=		src/mod/endpoints/mod_gsmopen/gsmlib/gsmlib-1.10-patched-13ubuntu/contrib/gsmsmsrequeue
REPLACE_BASH+=		src/mod/endpoints/mod_gsmopen/gsmlib/gsmlib-1.10-patched-13ubuntu/contrib/gsmsmsspool
REPLACE_BASH+=		src/mod/endpoints/mod_skypopen/configs/old-stuff/multiple-instance-same-skype-username/multi.sh
REPLACE_BASH+=		build/fs_ivrd.init.redhat
REPLACE_BASH+=		build/freeswitch.init.redhat
REPLACE_BASH+=		build/standalone_module/bootstrap.sh
REPLACE_BASH+=		support-d/utils/pcap-extract.sh
REPLACE_BASH+=		libs/libcodec2/script/menu.sh
REPLACE_BASH+=		libs/libcodec2/unittest/run_tests.sh
REPLACE_BASH+=		libs/libsndfile/src/make-static-lib-hidden-privates.sh
REPLACE_BASH+=		libs/libsndfile/Octave/octave_test.sh
REPLACE_BASH+=		libs/libsndfile/tests/pedantic-header-test.sh.in
REPLACE_BASH+=		libs/libsndfile/Scripts/*.sh
REPLACE_BASH+=		libs/libvpx/tools/author_first_release.sh
REPLACE_BASH+=		libs/libvpx/tools/gen_authors.sh
REPLACE_BASH+=		libs/libvpx/build/make/*.sh
REPLACE_BASH+=		libs/freetdm/mod_freetdm/clean.sh
REPLACE_BASH+=		libs/freetdm/cyginstall.sh
REPLACE_BASH+=		libs/freetdm/mkrelease.sh
REPLACE_BASH+=		libs/libyuv/tools/valgrind-libyuv/libyuv_tests.sh
REPLACE_BASH+=		libs/silk/test_vectors/test_*.sh
REPLACE_BASH+=		html5/verto/verto_communicator/debian8-install.sh
REPLACE_BASH+=		scripts/ci/test_build.sh

RCD_SCRIPTS=		freeswitch

INSTALLATION_DIRS+=	share/freeswitch/scripts
INSTALLATION_DIRS+=	share/freeswitch/grammar
INSTALLATION_DIRS+=	freeswitch/modules
INSTALLATION_DIRS+=	freeswitch/sounds
INSTALLATION_DIRS+=	freeswitch/recordings

CONFLICTS=      	xmlrpc-c-[0-9]*

DEPENDS+=        	flite-[0-9]*:../../audio/flite
DEPENDS+=        	libyaml-[0-9]*:../../textproc/libyaml

PLIST_SRC=	${PKGDIR}/PLIST.common
# Some build failures on Solaris cause some modules to be excluded.
.if ${OPSYS} != "SunOS"
PLIST_SRC+=     ${PKGDIR}/PLIST.nonSunOS
.endif

FS_USER?=		freeswitch
FS_GROUP?=		freeswitch
PKG_USERS_VARS=		FS_USER
PKG_GROUPS_VARS=	FS_GROUP
PKG_GROUPS=		${FS_GROUP}
PKG_USERS=		${FS_USER}:${FS_GROUP}

PKG_GECOS.${FS_USER}=	FreeSWITCH
PKG_SHELL.${FS_USER}=	${NOLOGIN}

MAKE_DIRS+=		${VARBASE}/log/freeswitch
MAKE_DIRS+=		${VARBASE}/db/freeswitch
MAKE_DIRS_PERMS+=	${VARBASE}/log/freeswitch ${FS_USER} ${FS_GROUP} 0644
MAKE_DIRS_PERMS+=	${VARBASE}/db/freeswitch ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS=		${PREFIX}/freeswitch
OWN_DIRS+=		${PREFIX}/share/freeswitch
OWN_DIRS_PERMS+=	${PREFIX}/freeswitch ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PREFIX}/share/freeswitch ${FS_USER} ${FS_GROUP} 0755

PKG_SYSCONFSUBDIR=	freeswitch
PKG_SYSCONFDIR_PERMS=	${FS_USER} ${FS_GROUP} 0755

BUILDLINK_TRANSFORM+=	rm:-Werror
CFLAGS+=        	-Wno-c11-extensions -Wno-deprecated-declarations \
			-Wno-zero-length-array -Wno-incompatible-pointer-types
EGDIR=	${PREFIX}/share/examples/${PKGBASE}/

OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/. ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/jingle_profiles ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/directory ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/directory/default ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/skinny_profiles ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/lang ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/lang/es ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/lang/es/demo ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/lang/es/dir ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/lang/es/vm ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/lang/fr ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/lang/fr/demo ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/lang/fr/dir ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/lang/fr/vm ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/lang/en ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/lang/en/demo ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/lang/en/ivr ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/lang/en/vm ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/lang/en/dir ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/lang/he ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/lang/he/dir ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/lang/he/vm ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/lang/he/demo ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/lang/pt ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/lang/pt/demo ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/lang/pt/vm ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/lang/pt/dir ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/lang/sv ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/lang/sv/vm ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/lang/ru ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/lang/ru/demo ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/lang/ru/vm ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/lang/ru/dir ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/lang/de ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/lang/de/demo ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/lang/de/vm ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/autoload_configs ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/mrcp_profiles ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/sip_profiles ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/sip_profiles/external-ipv6 ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/sip_profiles/external ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/dialplan ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/dialplan/public ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/dialplan/default ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/dialplan/skinny-patterns ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/chatplan ${FS_USER} ${FS_GROUP} 0755
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/ivr_menus ${FS_USER} ${FS_GROUP} 0755
CONF_FILES+=	${EGDIR}/jingle_profiles/client.xml ${PKG_SYSCONFDIR}/jingle_profiles/client.xml
CONF_FILES+=	${EGDIR}/jingle_profiles/server.xml ${PKG_SYSCONFDIR}/jingle_profiles/server.xml
CONF_FILES+=	${EGDIR}/tetris.ttml ${PKG_SYSCONFDIR}/tetris.ttml
CONF_FILES+=	${EGDIR}/fur_elise.ttml ${PKG_SYSCONFDIR}/fur_elise.ttml
CONF_FILES+=	${EGDIR}/voicemail.tpl ${PKG_SYSCONFDIR}/voicemail.tpl
CONF_FILES+=	${EGDIR}/directory/default/1001.xml ${PKG_SYSCONFDIR}/directory/default/1001.xml
CONF_FILES+=	${EGDIR}/directory/default/1006.xml ${PKG_SYSCONFDIR}/directory/default/1006.xml
CONF_FILES+=	${EGDIR}/directory/default/1008.xml ${PKG_SYSCONFDIR}/directory/default/1008.xml
CONF_FILES+=	${EGDIR}/directory/default/skinny-example.xml ${PKG_SYSCONFDIR}/directory/default/skinny-example.xml
CONF_FILES+=	${EGDIR}/directory/default/1019.xml ${PKG_SYSCONFDIR}/directory/default/1019.xml
CONF_FILES+=	${EGDIR}/directory/default/1017.xml ${PKG_SYSCONFDIR}/directory/default/1017.xml
CONF_FILES+=	${EGDIR}/directory/default/1010.xml ${PKG_SYSCONFDIR}/directory/default/1010.xml
CONF_FILES+=	${EGDIR}/directory/default/default.xml ${PKG_SYSCONFDIR}/directory/default/default.xml
CONF_FILES+=	${EGDIR}/directory/default/1009.xml ${PKG_SYSCONFDIR}/directory/default/1009.xml
CONF_FILES+=	${EGDIR}/directory/default/1007.xml ${PKG_SYSCONFDIR}/directory/default/1007.xml
CONF_FILES+=	${EGDIR}/directory/default/1000.xml ${PKG_SYSCONFDIR}/directory/default/1000.xml
CONF_FILES+=	${EGDIR}/directory/default/1011.xml ${PKG_SYSCONFDIR}/directory/default/1011.xml
CONF_FILES+=	${EGDIR}/directory/default/brian.xml ${PKG_SYSCONFDIR}/directory/default/brian.xml
CONF_FILES+=	${EGDIR}/directory/default/1016.xml ${PKG_SYSCONFDIR}/directory/default/1016.xml
CONF_FILES+=	${EGDIR}/directory/default/example.com.xml ${PKG_SYSCONFDIR}/directory/default/example.com.xml
CONF_FILES+=	${EGDIR}/directory/default/1018.xml ${PKG_SYSCONFDIR}/directory/default/1018.xml
CONF_FILES+=	${EGDIR}/directory/default/1015.xml ${PKG_SYSCONFDIR}/directory/default/1015.xml
CONF_FILES+=	${EGDIR}/directory/default/1012.xml ${PKG_SYSCONFDIR}/directory/default/1012.xml
CONF_FILES+=	${EGDIR}/directory/default/1003.xml ${PKG_SYSCONFDIR}/directory/default/1003.xml
CONF_FILES+=	${EGDIR}/directory/default/1004.xml ${PKG_SYSCONFDIR}/directory/default/1004.xml
CONF_FILES+=	${EGDIR}/directory/default/1013.xml ${PKG_SYSCONFDIR}/directory/default/1013.xml
CONF_FILES+=	${EGDIR}/directory/default/1014.xml ${PKG_SYSCONFDIR}/directory/default/1014.xml
CONF_FILES+=	${EGDIR}/directory/default/1005.xml ${PKG_SYSCONFDIR}/directory/default/1005.xml
CONF_FILES+=	${EGDIR}/directory/default/1002.xml ${PKG_SYSCONFDIR}/directory/default/1002.xml
CONF_FILES+=	${EGDIR}/directory/default.xml ${PKG_SYSCONFDIR}/directory/default.xml
CONF_FILES+=	${EGDIR}/skinny_profiles/internal.xml ${PKG_SYSCONFDIR}/skinny_profiles/internal.xml
CONF_FILES+=	${EGDIR}/lang/es/demo/demo-es-MX.xml ${PKG_SYSCONFDIR}/lang/es/demo/demo-es-MX.xml
CONF_FILES+=	${EGDIR}/lang/es/demo/demo-ivr-es-ES.xml ${PKG_SYSCONFDIR}/lang/es/demo/demo-ivr-es-ES.xml
CONF_FILES+=	${EGDIR}/lang/es/demo/demo-es-ES.xml ${PKG_SYSCONFDIR}/lang/es/demo/demo-es-ES.xml
CONF_FILES+=	${EGDIR}/lang/es/demo/demo-ivr-es-MX.xml ${PKG_SYSCONFDIR}/lang/es/demo/demo-ivr-es-MX.xml
CONF_FILES+=	${EGDIR}/lang/es/es_ES.xml ${PKG_SYSCONFDIR}/lang/es/es_ES.xml
CONF_FILES+=	${EGDIR}/lang/es/dir/tts-es-ES.xml ${PKG_SYSCONFDIR}/lang/es/dir/tts-es-ES.xml
CONF_FILES+=	${EGDIR}/lang/es/dir/sounds-es-MX.xml ${PKG_SYSCONFDIR}/lang/es/dir/sounds-es-MX.xml
CONF_FILES+=	${EGDIR}/lang/es/dir/sounds-es-ES.xml ${PKG_SYSCONFDIR}/lang/es/dir/sounds-es-ES.xml
CONF_FILES+=	${EGDIR}/lang/es/dir/tts-es-MX.xml ${PKG_SYSCONFDIR}/lang/es/dir/tts-es-MX.xml
CONF_FILES+=	${EGDIR}/lang/es/vm/tts-es-ES.xml ${PKG_SYSCONFDIR}/lang/es/vm/tts-es-ES.xml
CONF_FILES+=	${EGDIR}/lang/es/vm/sounds-es-ES.xml ${PKG_SYSCONFDIR}/lang/es/vm/sounds-es-ES.xml
CONF_FILES+=	${EGDIR}/lang/es/vm/sounds-es-MX.xml ${PKG_SYSCONFDIR}/lang/es/vm/sounds-es-MX.xml
CONF_FILES+=	${EGDIR}/lang/es/vm/tts-es-MX.xml ${PKG_SYSCONFDIR}/lang/es/vm/tts-es-MX.xml
CONF_FILES+=	${EGDIR}/lang/es/es_MX.xml ${PKG_SYSCONFDIR}/lang/es/es_MX.xml
CONF_FILES+=	${EGDIR}/lang/fr/demo/demo.xml ${PKG_SYSCONFDIR}/lang/fr/demo/demo.xml
CONF_FILES+=	${EGDIR}/lang/fr/fr.xml ${PKG_SYSCONFDIR}/lang/fr/fr.xml
CONF_FILES+=	${EGDIR}/lang/fr/dir/sounds.xml ${PKG_SYSCONFDIR}/lang/fr/dir/sounds.xml
CONF_FILES+=	${EGDIR}/lang/fr/dir/tts.xml ${PKG_SYSCONFDIR}/lang/fr/dir/tts.xml
CONF_FILES+=	${EGDIR}/lang/fr/vm/sounds.xml ${PKG_SYSCONFDIR}/lang/fr/vm/sounds.xml
CONF_FILES+=	${EGDIR}/lang/en/demo/demo-ivr.xml ${PKG_SYSCONFDIR}/lang/en/demo/demo-ivr.xml
CONF_FILES+=	${EGDIR}/lang/en/demo/funnies.xml ${PKG_SYSCONFDIR}/lang/en/demo/funnies.xml
CONF_FILES+=	${EGDIR}/lang/en/demo/new-demo-ivr.xml ${PKG_SYSCONFDIR}/lang/en/demo/new-demo-ivr.xml
CONF_FILES+=	${EGDIR}/lang/en/demo/demo.xml ${PKG_SYSCONFDIR}/lang/en/demo/demo.xml
CONF_FILES+=	${EGDIR}/lang/en/en.xml ${PKG_SYSCONFDIR}/lang/en/en.xml
CONF_FILES+=	${EGDIR}/lang/en/ivr/sounds.xml ${PKG_SYSCONFDIR}/lang/en/ivr/sounds.xml
CONF_FILES+=	${EGDIR}/lang/en/vm/voicemail_ivr.xml ${PKG_SYSCONFDIR}/lang/en/vm/voicemail_ivr.xml
CONF_FILES+=	${EGDIR}/lang/en/vm/sounds.xml ${PKG_SYSCONFDIR}/lang/en/vm/sounds.xml
CONF_FILES+=	${EGDIR}/lang/en/vm/tts.xml ${PKG_SYSCONFDIR}/lang/en/vm/tts.xml
CONF_FILES+=	${EGDIR}/lang/en/dir/sounds.xml ${PKG_SYSCONFDIR}/lang/en/dir/sounds.xml
CONF_FILES+=	${EGDIR}/lang/en/dir/tts.xml ${PKG_SYSCONFDIR}/lang/en/dir/tts.xml
CONF_FILES+=	${EGDIR}/lang/he/he.xml ${PKG_SYSCONFDIR}/lang/he/he.xml
CONF_FILES+=	${EGDIR}/lang/he/dir/sounds.xml ${PKG_SYSCONFDIR}/lang/he/dir/sounds.xml
CONF_FILES+=	${EGDIR}/lang/he/vm/sounds.xml ${PKG_SYSCONFDIR}/lang/he/vm/sounds.xml
CONF_FILES+=	${EGDIR}/lang/he/demo/demo-ivr.xml ${PKG_SYSCONFDIR}/lang/he/demo/demo-ivr.xml
CONF_FILES+=	${EGDIR}/lang/he/demo/demo.xml ${PKG_SYSCONFDIR}/lang/he/demo/demo.xml
CONF_FILES+=	${EGDIR}/lang/pt/pt_PT.xml ${PKG_SYSCONFDIR}/lang/pt/pt_PT.xml
CONF_FILES+=	${EGDIR}/lang/pt/demo/demo-pt-PT.xml ${PKG_SYSCONFDIR}/lang/pt/demo/demo-pt-PT.xml
CONF_FILES+=	${EGDIR}/lang/pt/demo/demo-ivr-pt-BR.xml ${PKG_SYSCONFDIR}/lang/pt/demo/demo-ivr-pt-BR.xml
CONF_FILES+=	${EGDIR}/lang/pt/demo/demo-ivr-pt-PT.xml ${PKG_SYSCONFDIR}/lang/pt/demo/demo-ivr-pt-PT.xml
CONF_FILES+=	${EGDIR}/lang/pt/demo/demo-pt-BR.xml ${PKG_SYSCONFDIR}/lang/pt/demo/demo-pt-BR.xml
CONF_FILES+=	${EGDIR}/lang/pt/pt_BR.xml ${PKG_SYSCONFDIR}/lang/pt/pt_BR.xml
CONF_FILES+=	${EGDIR}/lang/pt/vm/sounds-pt-PT.xml ${PKG_SYSCONFDIR}/lang/pt/vm/sounds-pt-PT.xml
CONF_FILES+=	${EGDIR}/lang/pt/vm/tts-pt-PT.xml ${PKG_SYSCONFDIR}/lang/pt/vm/tts-pt-PT.xml
CONF_FILES+=	${EGDIR}/lang/pt/vm/sounds-pt-BR.xml ${PKG_SYSCONFDIR}/lang/pt/vm/sounds-pt-BR.xml
CONF_FILES+=	${EGDIR}/lang/pt/vm/tts-pt-BR.xml ${PKG_SYSCONFDIR}/lang/pt/vm/tts-pt-BR.xml
CONF_FILES+=	${EGDIR}/lang/pt/dir/sounds-pt-BR.xml ${PKG_SYSCONFDIR}/lang/pt/dir/sounds-pt-BR.xml
CONF_FILES+=	${EGDIR}/lang/pt/dir/tts-pt-BR.xml ${PKG_SYSCONFDIR}/lang/pt/dir/tts-pt-BR.xml
CONF_FILES+=	${EGDIR}/lang/pt/dir/tts-pt-PT.xml ${PKG_SYSCONFDIR}/lang/pt/dir/tts-pt-PT.xml
CONF_FILES+=	${EGDIR}/lang/pt/dir/sounds-pt-PT.xml ${PKG_SYSCONFDIR}/lang/pt/dir/sounds-pt-PT.xml
CONF_FILES+=	${EGDIR}/lang/sv/vm/sounds.xml ${PKG_SYSCONFDIR}/lang/sv/vm/sounds.xml
CONF_FILES+=	${EGDIR}/lang/sv/sv.xml ${PKG_SYSCONFDIR}/lang/sv/sv.xml
CONF_FILES+=	${EGDIR}/lang/ru/demo/demo-ivr.xml ${PKG_SYSCONFDIR}/lang/ru/demo/demo-ivr.xml
CONF_FILES+=	${EGDIR}/lang/ru/demo/demo.xml ${PKG_SYSCONFDIR}/lang/ru/demo/demo.xml
CONF_FILES+=	${EGDIR}/lang/ru/vm/tts.xml ${PKG_SYSCONFDIR}/lang/ru/vm/tts.xml
CONF_FILES+=	${EGDIR}/lang/ru/vm/sounds.xml ${PKG_SYSCONFDIR}/lang/ru/vm/sounds.xml
CONF_FILES+=	${EGDIR}/lang/ru/dir/tts.xml ${PKG_SYSCONFDIR}/lang/ru/dir/tts.xml
CONF_FILES+=	${EGDIR}/lang/ru/dir/sounds.xml ${PKG_SYSCONFDIR}/lang/ru/dir/sounds.xml
CONF_FILES+=	${EGDIR}/lang/ru/ru.xml ${PKG_SYSCONFDIR}/lang/ru/ru.xml
CONF_FILES+=	${EGDIR}/lang/de/de.xml ${PKG_SYSCONFDIR}/lang/de/de.xml
CONF_FILES+=	${EGDIR}/lang/de/demo/demo.xml ${PKG_SYSCONFDIR}/lang/de/demo/demo.xml
CONF_FILES+=	${EGDIR}/lang/de/vm/tts.xml ${PKG_SYSCONFDIR}/lang/de/vm/tts.xml
CONF_FILES+=	${EGDIR}/lang/de/vm/sounds.xml ${PKG_SYSCONFDIR}/lang/de/vm/sounds.xml
CONF_FILES+=	${EGDIR}/autoload_configs/directory.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/directory.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/fax.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/fax.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/portaudio.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/portaudio.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/distributor.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/distributor.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/v8.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/v8.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/amqp.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/amqp.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/perl.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/perl.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/cidlookup.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/cidlookup.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/verto.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/verto.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/unicall.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/unicall.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/hiredis.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/hiredis.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/cepstral.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/cepstral.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/rss.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/rss.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/graylog2.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/graylog2.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/voicemail.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/voicemail.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/event_socket.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/event_socket.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/hash.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/hash.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/format_cdr.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/format_cdr.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/modules.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/modules.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/enum.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/enum.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/translate.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/translate.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/cdr_csv.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/cdr_csv.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/opus.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/opus.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/xml_cdr.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/xml_cdr.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/redis.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/redis.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/local_stream.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/local_stream.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/java.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/java.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/unimrcp.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/unimrcp.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/syslog.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/syslog.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/abstraction.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/abstraction.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/dingaling.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/dingaling.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/lua.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/lua.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/lcr.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/lcr.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/voicemail_ivr.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/voicemail_ivr.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/cdr_mongodb.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/cdr_mongodb.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/xml_scgi.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/xml_scgi.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/mongo.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/mongo.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/switch.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/switch.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/post_load_modules.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/post_load_modules.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/memcache.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/memcache.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/rtmp.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/rtmp.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/sofia.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/sofia.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/skinny.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/skinny.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/blacklist.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/blacklist.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/cdr_pg_csv.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/cdr_pg_csv.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/db.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/db.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/xml_rpc.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/xml_rpc.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/avmd.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/avmd.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/presence_map.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/presence_map.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/sms_flowroute.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/sms_flowroute.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/tts_commandline.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/tts_commandline.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/python.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/python.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/event_multicast.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/event_multicast.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/cdr_sqlite.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/cdr_sqlite.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/http_cache.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/http_cache.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/ivr.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/ivr.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/conference.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/conference.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/shout.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/shout.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/xml_curl.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/xml_curl.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/acl.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/acl.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/httapi.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/httapi.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/kazoo.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/kazoo.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/oreka.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/oreka.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/sangoma_codec.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/sangoma_codec.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/callcenter.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/callcenter.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/zeroconf.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/zeroconf.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/dialplan_directory.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/dialplan_directory.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/nibblebill.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/nibblebill.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/opal.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/opal.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/erlang_event.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/erlang_event.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/fifo.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/fifo.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/timezones.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/timezones.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/console.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/console.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/easyroute.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/easyroute.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/spandsp.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/spandsp.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/conference_layouts.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/conference_layouts.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/alsa.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/alsa.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/smpp.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/smpp.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/pocketsphinx.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/pocketsphinx.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/osp.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/osp.conf.xml
CONF_FILES+=	${EGDIR}/autoload_configs/logfile.conf.xml ${PKG_SYSCONFDIR}/autoload_configs/logfile.conf.xml
CONF_FILES+=	${EGDIR}/mime.types ${PKG_SYSCONFDIR}/mime.types
CONF_FILES+=	${EGDIR}/freeswitch.xml ${PKG_SYSCONFDIR}/freeswitch.xml
CONF_FILES+=	${EGDIR}/mrcp_profiles/nuance-1.0.0-mrcp-v1.xml ${PKG_SYSCONFDIR}/mrcp_profiles/nuance-1.0.0-mrcp-v1.xml
CONF_FILES+=	${EGDIR}/mrcp_profiles/vestec-mrcp-v1.xml ${PKG_SYSCONFDIR}/mrcp_profiles/vestec-mrcp-v1.xml
CONF_FILES+=	${EGDIR}/mrcp_profiles/nuance-5.0-mrcp-v2.xml ${PKG_SYSCONFDIR}/mrcp_profiles/nuance-5.0-mrcp-v2.xml
CONF_FILES+=	${EGDIR}/mrcp_profiles/voxeo-prophecy-8.0-mrcp-v1.xml ${PKG_SYSCONFDIR}/mrcp_profiles/voxeo-prophecy-8.0-mrcp-v1.xml
CONF_FILES+=	${EGDIR}/mrcp_profiles/nuance-5.0-mrcp-v1.xml ${PKG_SYSCONFDIR}/mrcp_profiles/nuance-5.0-mrcp-v1.xml
CONF_FILES+=	${EGDIR}/mrcp_profiles/unimrcpserver-mrcp-v1.xml ${PKG_SYSCONFDIR}/mrcp_profiles/unimrcpserver-mrcp-v1.xml
CONF_FILES+=	${EGDIR}/mrcp_profiles/loquendo-7-mrcp-v2.xml ${PKG_SYSCONFDIR}/mrcp_profiles/loquendo-7-mrcp-v2.xml
CONF_FILES+=	${EGDIR}/sip_profiles/internal.xml ${PKG_SYSCONFDIR}/sip_profiles/internal.xml
CONF_FILES+=	${EGDIR}/sip_profiles/external-ipv6/example.xml ${PKG_SYSCONFDIR}/sip_profiles/external-ipv6/example.xml
CONF_FILES+=	${EGDIR}/sip_profiles/external-ipv6.xml ${PKG_SYSCONFDIR}/sip_profiles/external-ipv6.xml
CONF_FILES+=	${EGDIR}/sip_profiles/external/example.xml ${PKG_SYSCONFDIR}/sip_profiles/external/example.xml
CONF_FILES+=	${EGDIR}/sip_profiles/external.xml ${PKG_SYSCONFDIR}/sip_profiles/external.xml
CONF_FILES+=	${EGDIR}/sip_profiles/internal-ipv6.xml ${PKG_SYSCONFDIR}/sip_profiles/internal-ipv6.xml
CONF_FILES+=	${EGDIR}/dialplan/features.xml ${PKG_SYSCONFDIR}/dialplan/features.xml
CONF_FILES+=	${EGDIR}/dialplan/public/00_inbound_did.xml ${PKG_SYSCONFDIR}/dialplan/public/00_inbound_did.xml
CONF_FILES+=	${EGDIR}/dialplan/default/01_example.com.xml ${PKG_SYSCONFDIR}/dialplan/default/01_example.com.xml
CONF_FILES+=	${EGDIR}/dialplan/default/00_pizza_demo.xml ${PKG_SYSCONFDIR}/dialplan/default/00_pizza_demo.xml
CONF_FILES+=	${EGDIR}/dialplan/default/01_Talking_Clock.xml ${PKG_SYSCONFDIR}/dialplan/default/01_Talking_Clock.xml
CONF_FILES+=	${EGDIR}/dialplan/default/00_ladspa.xml ${PKG_SYSCONFDIR}/dialplan/default/00_ladspa.xml
CONF_FILES+=	${EGDIR}/dialplan/public.xml ${PKG_SYSCONFDIR}/dialplan/public.xml
CONF_FILES+=	${EGDIR}/dialplan/skinny-patterns/90-External.xml ${PKG_SYSCONFDIR}/dialplan/skinny-patterns/90-External.xml
CONF_FILES+=	${EGDIR}/dialplan/skinny-patterns/99-Default_Drop.xml ${PKG_SYSCONFDIR}/dialplan/skinny-patterns/99-Default_Drop.xml
CONF_FILES+=	${EGDIR}/dialplan/skinny-patterns/20-Demo.xml ${PKG_SYSCONFDIR}/dialplan/skinny-patterns/20-Demo.xml
CONF_FILES+=	${EGDIR}/dialplan/skinny-patterns/20-Local_extension.xml ${PKG_SYSCONFDIR}/dialplan/skinny-patterns/20-Local_extension.xml
CONF_FILES+=	${EGDIR}/dialplan/default.xml ${PKG_SYSCONFDIR}/dialplan/default.xml
CONF_FILES+=	${EGDIR}/dialplan/skinny-patterns.xml ${PKG_SYSCONFDIR}/dialplan/skinny-patterns.xml
CONF_FILES+=	${EGDIR}/web-vm.tpl ${PKG_SYSCONFDIR}/web-vm.tpl
CONF_FILES+=	${EGDIR}/notify-voicemail.tpl ${PKG_SYSCONFDIR}/notify-voicemail.tpl
CONF_FILES+=	${EGDIR}/chatplan/default.xml ${PKG_SYSCONFDIR}/chatplan/default.xml
CONF_FILES+=	${EGDIR}/ivr_menus/demo_ivr.xml ${PKG_SYSCONFDIR}/ivr_menus/demo_ivr.xml
CONF_FILES+=	${EGDIR}/ivr_menus/new_demo_ivr.xml ${PKG_SYSCONFDIR}/ivr_menus/new_demo_ivr.xml
CONF_FILES+=	${EGDIR}/vars.xml ${PKG_SYSCONFDIR}/vars.xml
CONF_FILES+=	${EGDIR}/extensions.conf ${PKG_SYSCONFDIR}/extensions.conf

# internal target for generating config file rule.
_make_conf_file_list:
	@for dir in `cd ${DESTDIR}${EGDIR} && find . -type d | sed -e 's,^./,,'` ; do \
	echo -n "OWN_DIRS_PERMS+=	$$"; \
	echo -n "{PKG_SYSCONFDIR}/$$dir $$"; \
	echo -n "{FS_USER} $$"; \
	echo "{FS_GROUP} 0755"; \
	done
	@for file in `cd ${DESTDIR}${EGDIR} && find . -type f | sed -e 's,^./,,'` ; do \
	echo -n "CONF_FILES+=	$$"; \
	echo -n "{EGDIR}/$$file $$"; \
	echo "{PKG_SYSCONFDIR}/$$file"; \
	done

post-install:
	${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/libs/srtp/libsrtp.la ${DESTDIR}${PREFIX}/lib
	${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/libs/spandsp/src/libspandsp.la ${DESTDIR}${PREFIX}/lib
	${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/libs/tiff-4.0.2/libtiff/libtiff.la ${DESTDIR}${PREFIX}/lib
	${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/libs/tiff-4.0.2/libtiff/libtiffxx.la ${DESTDIR}${PREFIX}/lib
	${LIBTOOL} --finish ${PREFIX}/lib
	${ECHO} "Foo"
	mkdir -p ${DESTDIR}${PREFIX}/share/examples/${PKGBASE}
	mv ${DESTDIR}${PKG_SYSCONFDIR}/* ${DESTDIR}${EGDIR}/

.include "../../mk/pgsql.buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../devel/pcre/buildlink3.mk"
.include "../../devel/libmemcached/buildlink3.mk"
.include "../../lang/lua52/buildlink3.mk"
.include "../../multimedia/libvpx/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../audio/libsndfile/buildlink3.mk"
.include "../../net/ldns/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../audio/speexdsp/buildlink3.mk"
.include "../../audio/mpg123/buildlink3.mk"
.include "../../audio/libopus/buildlink3.mk"
.include "../../audio/libvorbis/buildlink3.mk"
.include "../../audio/portaudio/buildlink3.mk"
.include "../../databases/sqlite3/buildlink3.mk"
.include "../../devel/libltdl/buildlink3.mk"
.include "../../devel/libuuid/buildlink3.mk"
.include "../../devel/editline/buildlink3.mk"
#.include "../../wip/libzrtp/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
