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