diff options
author | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-03-22 10:46:56 +0000 |
---|---|---|
committer | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-03-22 10:46:56 +0000 |
commit | f75e389b1ed026ac427d37271deb8239f8641c95 (patch) | |
tree | a009437b2db6d409b642a947ece414cffd5de6d2 /openwrt/package/asterisk/Makefile | |
parent | 1bcc4cc6fa1b349103805db585b30400b808ea08 (diff) |
Add chan_h323 support for asterisk, closes #122
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3447 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/asterisk/Makefile')
-rw-r--r-- | openwrt/package/asterisk/Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/openwrt/package/asterisk/Makefile b/openwrt/package/asterisk/Makefile index eb6edee1d..015f0cc21 100644 --- a/openwrt/package/asterisk/Makefile +++ b/openwrt/package/asterisk/Makefile @@ -23,6 +23,7 @@ $(eval $(call PKG_template,ASTERISK_SQLITE,asterisk-sqlite,$(PKG_VERSION)-$(PKG_ $(eval $(call PKG_template,ASTERISK_VOICEMAIL,asterisk-voicemail,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) $(eval $(call PKG_template,ASTERISK_SOUNDS,asterisk-sounds,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) $(eval $(call PKG_template,ASTERISK_CHAN_BLUETOOTH,asterisk-chan-bluetooth,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,ASTERISK_CHAN_H323,asterisk-chan-h323,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) $(eval $(call PKG_template,ASTERISK_CHAN_MGCP,asterisk-chan-mgcp,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) $(eval $(call PKG_template,ASTERISK_CHAN_SKINNY,asterisk-chan-skinny,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) $(eval $(call PKG_template,ASTERISK_CODEC_ILBC,asterisk-codec-ilbc,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) @@ -57,6 +58,21 @@ $(PKG_BUILD_DIR)/.configured: touch $@ $(PKG_BUILD_DIR)/.built: + (cd $(PKG_BUILD_DIR)/channels/h323/ ; \ + $(MAKE) \ + CROSS_ARCH="Linux" \ + CROSS_COMPILE="$(TARGET_CROSS)" \ + CROSS_COMPILE_BIN="/void/" \ + CROSS_COMPILE_TARGET="/void/" \ + $(TARGET_CONFIGURE_OPTS) \ + HOST_CC="$(HOSTCC)" \ + OPTIMIZE="$(TARGET_CFLAGS)" \ + PROC="$(ARCH)" \ + DEBUG="" \ + OPTIONS="-DLOW_MEMORY -Dlinux" \ + OPENH323DIR=$(BUILD_DIR)/openh323-cvs-20051230 \ + opt ; \ + ); $(MAKE) -C "$(PKG_BUILD_DIR)" \ CROSS_ARCH="Linux" \ CROSS_COMPILE="$(TARGET_CROSS)" \ @@ -77,6 +93,8 @@ $(PKG_BUILD_DIR)/.built: EXTRA_RES_MODULES="$(EXTRA_RES_MODULES)" \ DESTDIR="$(PKG_INSTALL_DIR)" \ ASTVARLIBDIR="/usr/lib/asterisk" \ + OPENH323DIR=$(BUILD_DIR)/openh323-cvs-20051230 \ + PWLIBDIR=$(BUILD_DIR)/pwlib \ all install samples rm -f $(PKG_INSTALL_DIR)/etc/asterisk/*.old touch $@ @@ -203,6 +221,14 @@ $(IPKG_ASTERISK_CHAN_BLUETOOTH): $(RSTRIP) $(IDIR_ASTERISK_CHAN_BLUETOOTH) $(IPKG_BUILD) $(IDIR_ASTERISK_CHAN_BLUETOOTH) $(PACKAGE_DIR) +$(IPKG_ASTERISK_CHAN_H323): + install -d -m0755 $(IDIR_ASTERISK_CHAN_H323)/etc/asterisk + install -m0644 $(PKG_BUILD_DIR)/channels/h323/h323.conf.sample $(IDIR_ASTERISK_CHAN_H323)/etc/asterisk/h323.conf + install -d -m0755 $(IDIR_ASTERISK_CHAN_H323)/usr/lib/asterisk/modules + install -m0755 $(PKG_BUILD_DIR)/channels/chan_h323.so $(IDIR_ASTERISK_CHAN_H323)/usr/lib/asterisk/modules/ + $(RSTRIP) $(IDIR_ASTERISK_CHAN_H323) + $(IPKG_BUILD) $(IDIR_ASTERISK_CHAN_H323) $(PACKAGE_DIR) + $(IPKG_ASTERISK_CHAN_MGCP): install -d -m0755 $(IDIR_ASTERISK_CHAN_MGCP)/etc/asterisk install -m0644 $(PKG_BUILD_DIR)/configs/mgcp.conf.sample $(IDIR_ASTERISK_CHAN_MGCP)/etc/asterisk/mgcp.conf |