From 183e9c70231a52bcedc2b4191bfdf4b83d508ad1 Mon Sep 17 00:00:00 2001 From: blogic Date: Thu, 7 Jun 2012 07:16:10 +0000 Subject: [PATCH] [packages] fixes asterisk dependency git-svn-id: svn://svn.openwrt.org/openwrt/packages@32097 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- net/asterisk-1.8.x/Makefile | 8 ++++---- net/asterisk-1.8.x/{src => src-lantiq}/channels/chan_lantiq.c | 0 net/asterisk-1.8.x/{src => src-lantiq}/configs/lantiq.conf.sample | 0 3 files changed, 4 insertions(+), 4 deletions(-) rename net/asterisk-1.8.x/{src => src-lantiq}/channels/chan_lantiq.c (100%) rename net/asterisk-1.8.x/{src => src-lantiq}/configs/lantiq.conf.sample (100%) diff --git a/net/asterisk-1.8.x/Makefile b/net/asterisk-1.8.x/Makefile index 992242854..4d937a255 100644 --- a/net/asterisk-1.8.x/Makefile +++ b/net/asterisk-1.8.x/Makefile @@ -224,7 +224,7 @@ endef define Package/asterisk18-chan-lantiq $(call Package/asterisk18/Default) TITLE:=Lantiq TAPI support - DEPENDS:= asterisk18 kmod-ltq-vmmc + DEPENDS:= asterisk18 @TARGET_lantiq +TARGET_lantiq:kmod-ltq-vmmc +TARGET_lantiq:kmod-ltq-tapi URL:=http://git.nanl.de/?p=asterisk_channel_lantiq.git endef @@ -327,11 +327,11 @@ CONFIGURE_ARGS+= \ EXTRA_CFLAGS+= $(TARGET_CPPFLAGS) EXTRA_LDFLAGS+= $(TARGET_LDFLAGS) -#TARGET_CFLAGS+= -I$(STAGING_DIR)/usr/include/drv_tapi - define Build/Prepare $(call Build/Prepare/Default) - $(CP) ./src/* $(PKG_BUILD_DIR)/ +ifneq ($(CONFIG_TARGET_lantiq),) + $(CP) ./src-lantiq/* $(PKG_BUILD_DIR)/ +endif endef define Build/Configure diff --git a/net/asterisk-1.8.x/src/channels/chan_lantiq.c b/net/asterisk-1.8.x/src-lantiq/channels/chan_lantiq.c similarity index 100% rename from net/asterisk-1.8.x/src/channels/chan_lantiq.c rename to net/asterisk-1.8.x/src-lantiq/channels/chan_lantiq.c diff --git a/net/asterisk-1.8.x/src/configs/lantiq.conf.sample b/net/asterisk-1.8.x/src-lantiq/configs/lantiq.conf.sample similarity index 100% rename from net/asterisk-1.8.x/src/configs/lantiq.conf.sample rename to net/asterisk-1.8.x/src-lantiq/configs/lantiq.conf.sample -- 2.11.0