2 # Copyright (C) 2018 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=asterisk15-chan-lantiq
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
15 PKG_SOURCE_URL
:=https
://github.com
/kochstefan
/asterisk_channel_lantiq.git
16 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
17 PKG_SOURCE_VERSION
:=c9d68dd06fcd46ac7985df45f8c2b8833e658f8e
18 PKG_MIRROR_HASH
:=8666c18b24adf9da3ddf12306fcf0a8b4f56860c256b172bd0ba5c2a7a3ab25e
23 PKG_MAINTAINER
:=Jiri Slachta
<jiri@slachta.eu
>
27 include $(INCLUDE_DIR
)/package.mk
29 define Package
/$(PKG_NAME
)
33 TITLE
:=Lantiq channel driver
34 URL
:=https
://github.com
/kochstefan
/asterisk_channel_lantiq
35 DEPENDS
:=asterisk15
+kmod-ltq-vmmc
38 define Package
/$(PKG_NAME
)/description
39 An implementation of a Lantiq TAPI channel driver for Asterisk
15.
42 define Package
/$(PKG_NAME
)/conffiles
43 /etc
/asterisk
/lantiq.conf
47 $(call Build
/Prepare
/Default
)
48 $(INSTALL_DATA
) .
/files
/default.exports \
49 $(PKG_BUILD_DIR
)/src
/channels
/chan_lantiq.exports
53 cd
$(PKG_BUILD_DIR
)/src
/channels
&& \
54 $(TARGET_CC
) -o chan_lantiq.o
-c chan_lantiq.c
-MD
-MT chan_lantiq.o \
55 -MF .chan_lantiq.o.d
-MP
-pthread \
56 $(TARGET_CFLAGS
) -DAST_MODULE_SELF_SYM
=__internal_chan_lantiq_self \
57 -I
$(STAGING_DIR
)/usr
/include/asterisk-15
/include \
59 -Wall
-Wstrict-prototypes
-Wmissing-prototypes \
60 -Wmissing-declarations
$(FPIC
) -DAST_MODULE
=\"chan_lantiq
\" && \
61 $(TARGET_CC
) -o chan_lantiq.so
-pthread
$(TARGET_LDFLAGS
) -shared \
62 -Wl
,--version-script
,chan_lantiq.exports
,--warn-common \
66 define Package
/$(PKG_NAME
)/install
67 $(INSTALL_DIR
) $(1)/etc
/asterisk
69 $(PKG_BUILD_DIR
)/src
/configs
/samples
/lantiq.conf.sample \
70 $(1)/etc
/asterisk
/lantiq.conf
71 $(INSTALL_DIR
) $(1)/usr
/lib
/asterisk
/modules
73 $(PKG_BUILD_DIR
)/src
/channels
/chan_lantiq.so \
74 $(1)/usr
/lib
/asterisk
/modules
77 $(eval
$(call BuildPackage
,$(PKG_NAME
)))