summaryrefslogtreecommitdiff
path: root/package/asterisk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-12-24 12:02:33 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2009-12-24 12:02:33 +0100
commitb3259201a158cb1a571c2a3b2976fbd7b95a4b80 (patch)
treed1bf8edcf012880df29e52bf326b96c18c624dab /package/asterisk
parent0c0ed379d9f34a2d085d9ebf7accf63d48684439 (diff)
parent537a2c4eaa446e52c6ba07007eb9ae75998b5580 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/asterisk')
-rw-r--r--package/asterisk/Config.in97
-rw-r--r--package/asterisk/Makefile23
2 files changed, 19 insertions, 101 deletions
diff --git a/package/asterisk/Config.in b/package/asterisk/Config.in
deleted file mode 100644
index 3cac88628..000000000
--- a/package/asterisk/Config.in
+++ /dev/null
@@ -1,97 +0,0 @@
-config ADK_PACKAGE_ASTERISK
- bool "asterisk................... Telephony server"
- depends on !ADK_LINUX_CRIS_FOXBOARD
- select ADK_PACKAGE_LIBCURL
- select ADK_PACKAGE_LIBNCURSES
- select ADK_PACKAGE_LIBPTHREAD
- default n
-
-menu "asterisk-modules.................. Additional modules for Asterisk"
-depends on ADK_PACKAGE_ASTERISK
-
-config ADK_PACKAGE_ASTERISK_CHAN_MGCP
- prompt "asterisk-chan-mgcp.............. Media Gateway Control Protocol implementation"
- tristate
- default n
- depends on ADK_PACKAGE_ASTERISK
- help
- Media Gateway Control Protocol implementation for Asterisk
-
-config ADK_PACKAGE_ASTERISK_CHAN_SKINNY
- prompt "asterisk-chan-skinny............ Skinny Client Control Protocol implementation"
- tristate
- default n
- depends on ADK_PACKAGE_ASTERISK
- help
- Skinny Client Control Protocol implementation for Asterisk
-
-config ADK_PACKAGE_ASTERISK_CHAN_IAX2
- prompt "asterisk-chan-iax2.............. Support for the Inter Asterisk Protocol"
- tristate
- default n
- depends on ADK_PACKAGE_ASTERISK
- help
- IAX2 allows trunking communication channels together.
-
- Contains:
- * chan_iax2.so
-
-config ADK_PACKAGE_ASTERISK_CODEC_SPEEX
- prompt "asterisk-codec-speex............ Speex/PCM16 Codec Translator"
- tristate
- default n
- depends on ADK_PACKAGE_ASTERISK
- select ADK_PACKAGE_LIBSPEEX
- help
- The Speex speech compression codec for Asterisk
-
-config ADK_PACKAGE_ASTERISK_CODEC_GSM
- prompt "asterisk-codec-gsm.............. GSM Codec"
- tristate
- default n
- depends on ADK_PACKAGE_ASTERISK
- help
- The GSM codec for Asterisk
-
-config ADK_PACKAGE_ASTERISK_PBX_DUNDI
- prompt "asterisk-pbx-dundi.............. Distributed Universal Number Discovery (DUNDi) support"
- tristate
- default n
- depends on ADK_PACKAGE_ASTERISK
- help
- Distributed Universal Number Discovery (DUNDi) support for Asterisk
-
-config ADK_PACKAGE_ASTERISK_RES_AGI
- prompt "asterisk-res-agi................ Asterisk Gateway Interface module"
- tristate
- default n
- depends on ADK_PACKAGE_ASTERISK
- help
- Asterisk Gateway Interface module
-
-config ADK_PACKAGE_ASTERISK_PGSQL
- prompt "asterisk-pgsql.................. PostgreSQL modules"
- tristate
- default n
- depends on ADK_PACKAGE_ASTERISK
- select ADK_PACKAGE_LIBPQ
- help
- PostgreSQL modules for Asterisk
-
-config ADK_PACKAGE_ASTERISK_SOUNDS
- prompt "asterisk-sounds................. Sound files"
- tristate
- default n
- depends on ADK_PACKAGE_ASTERISK
- help
- Sound files for Asterisk
-
-config ADK_PACKAGE_ASTERISK_VOICEMAIL
- prompt "asterisk-voicemail.............. Voicemail support"
- tristate
- default n
- depends on ADK_PACKAGE_ASTERISK
- help
- Voicemail related modules for Asterisk
-
-endmenu
diff --git a/package/asterisk/Makefile b/package/asterisk/Makefile
index ecb33b52d..7dd463cac 100644
--- a/package/asterisk/Makefile
+++ b/package/asterisk/Makefile
@@ -6,6 +6,13 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= asterisk
PKG_VERSION:= 1.4.27.1
PKG_RELEASE:= 1
+PKG_BUILDDEP+= ncurses openssl zlib curl popt
+ifneq ($(ADK_PACKAGE_ASTERISK_CODEC_SPEEX),)
+PKG_BUILDDEP+= speex
+endif
+ifneq ($(ADK_PACKAGE_ASTERISK_PGSQL),)
+PKG_BUILDDEP+= postgresql
+endif
PKG_MD5SUM:= e09ca163a6e90018c92c65a50b9ec398
PKG_DESCR:= Open Source PBX
PKG_SECTION:= net
@@ -14,16 +21,24 @@ PKG_NOPARALLEL:= 1
PKG_URL:= http://www.asterisk.org
PKG_SITES:= http://downloads.asterisk.org/pub/telephony/asterisk/releases/
+PKG_TARGET_DEPENDS:= !foxboard
+
+PKG_DEPENDS_MAIN:= asterisk
+PKG_DESCR_CHAN_MGCP:= Media Gateway Control Protocol implementation
+PKG_DESCR_CHAN_SKINNY:= Skinny Client Control Protocol implementation
+PKG_DESCR_CHAN_IAX2:= Support for the Inter Asterisk Protocol
+PKG_DESCR_CODEC_SPEEX:= Speex/PCM16 Codec Translator
+
include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,ASTERISK,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,ASTERISK_PGSQL,asterisk-pgsql,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,ASTERISK_VOICEMAIL,asterisk-voicemail,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,ASTERISK_SOUNDS,asterisk-sounds,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-$(eval $(call PKG_template,ASTERISK_CHAN_MGCP,asterisk-chan-mgcp,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-$(eval $(call PKG_template,ASTERISK_CHAN_SKINNY,asterisk-chan-skinny,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-$(eval $(call PKG_template,ASTERISK_CHAN_IAX2,asterisk-chan-iax2,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-$(eval $(call PKG_template,ASTERISK_CODEC_SPEEX,asterisk-codec-speex,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,ASTERISK_CHAN_MGCP,asterisk-chan-mgcp,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS_MAIN},${PKG_DESCR_CHAN_MGCP},${PKG_SECTION}))
+$(eval $(call PKG_template,ASTERISK_CHAN_SKINNY,asterisk-chan-skinny,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS_MAIN},${PKG_DESCR_CHAN_SKINNY},${PKG_SECTION}))
+$(eval $(call PKG_template,ASTERISK_CHAN_IAX2,asterisk-chan-iax2,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS_MAIN},${PKG_DESCR_CHAN_IAX2},${PKG_SECTION}))
+$(eval $(call PKG_template,ASTERISK_CODEC_SPEEX,asterisk-codec-speex,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS_MAIN},${PKG_DESCR_SPEEX},${PKG_SECTION}))
$(eval $(call PKG_template,ASTERISK_CODEC_GSM,asterisk-codec-gsm,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,ASTERISK_PBX_DUNDI,asterisk-pbx-dundi,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,ASTERISK_RES_AGI,asterisk-res-agi,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))