summaryrefslogtreecommitdiff
path: root/package/asterisk
diff options
context:
space:
mode:
Diffstat (limited to 'package/asterisk')
-rw-r--r--package/asterisk/Makefile39
1 files changed, 19 insertions, 20 deletions
diff --git a/package/asterisk/Makefile b/package/asterisk/Makefile
index a6025ce43..3083656f4 100644
--- a/package/asterisk/Makefile
+++ b/package/asterisk/Makefile
@@ -9,38 +9,37 @@ PKG_RELEASE:= 1
PKG_MD5SUM:= 50412a90942ae7306fb8dcc31a05c2ce
PKG_DESCR:= Open Source PBX
PKG_SECTION:= phone
-PKG_MULTI:= 1
-PKG_NOPARALLEL:= 1
PKG_DEPENDS:= libncurses libpthread libopenssl libcurl
-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_BUILDDEP:= ncurses openssl zlib curl popt
PKG_URL:= http://www.asterisk.org/
PKG_SITES:= http://downloads.asterisk.org/pub/telephony/asterisk/releases/
+PKG_MULTI:= 1
+PKG_NOPARALLEL:= 1
PKG_TARGET_DEPENDS:= !foxboard
-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
-PKG_DESCR_SOUNDS:= Various soundfiles in GSM format
-PKG_DEPENDS_SOUNDS:= ${PKG_DEPENDS} asterisk-codec-gsm
+PKG_SUBPKGS:= ASTERISK ASTERISK_PGSQL ASTERISK_VOICEMAIL ASTERISK_SOUNDS ASTERISK_CHAN_MGCP
+PKG_SUBPKGS+= ASTERISK_CHAN_SKINNY ASTERISK_CHAN_IAX2 ASTERISK_CODEC_SPEEX ASTERISK_CODEC_GSM
+PKG_SUBPKGS+= ASTERISK_PBX_DUNDI ASTERISK_RES_AGI
+PKGSB_ASTERISK_CODEC_SPEEX:= speex
+PKGSB_ASTERISK_PQSQL:= postgresql
+PKGSD_ASTERISK_CHAN_MGCP:= Media Gateway Control Protocol implementation
+PKGSD_ASTERISK_CHAN_SKINNY:= Skinny Client Control Protocol implementation
+PKGSD_ASTERISK_CHAN_IAX2:= Support for the Inter Asterisk Protocol
+PKGSD_ASTERISK_CODEC_SPEEX:= Speex/PCM16 Codec Translator
+PKGSD_ASTERISK_SOUNDS:= Various soundfiles in GSM format
+PKGSS_ASTERISK_SOUNDS:= asterisk-codec-gsm
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_SOUNDS},${PKG_DESCR_SOUNDS},${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_CODEC_SPEEX},${PKG_SECTION}))
+$(eval $(call PKG_template,ASTERISK_SOUNDS,asterisk-sounds,$(PKG_VERSION)-${PKG_RELEASE},${PKGSS_ASTERISK_SOUNDS},${PKGSD_ASTERISK_SOUNDS},${PKG_SECTION}))
+$(eval $(call PKG_template,ASTERISK_CHAN_MGCP,asterisk-chan-mgcp,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_ASTERISK_CHAN_MGCP},${PKG_SECTION}))
+$(eval $(call PKG_template,ASTERISK_CHAN_SKINNY,asterisk-chan-skinny,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_ASTERISK_CHAN_SKINNY},${PKG_SECTION}))
+$(eval $(call PKG_template,ASTERISK_CHAN_IAX2,asterisk-chan-iax2,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_ASTERISK_CHAN_IAX2},${PKG_SECTION}))
+$(eval $(call PKG_template,ASTERISK_CODEC_SPEEX,asterisk-codec-speex,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_ASTERISK_CODEC_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}))