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
:=asterisk-chan-lantiq
13 PKG_SOURCE_URL
:=https
://github.com
/kochstefan
/asterisk_channel_lantiq.git
14 PKG_SOURCE_VERSION
:=2f029ec8778420538c8151c6aceba0f7b44b07c9
15 PKG_SOURCE_DATE
:=2021-09-11
16 PKG_MIRROR_HASH
:=0c57aeb33dc7efb0078e77907e0bc616f1714251e64d647a59faffe5af8bac73
21 PKG_MAINTAINER
:=Jiri Slachta
<jiri@slachta.eu
>
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/$(PKG_NAME
)
28 SUBMENU
:=Telephony Lantiq
31 TITLE
:=Lantiq channel driver
32 URL
:=https
://github.com
/kochstefan
/asterisk_channel_lantiq
33 DEPENDS
:=+asterisk
+kmod-ltq-vmmc
34 USERID
:=asterisk
=385::vmmc
=386
37 define Package
/$(PKG_NAME
)/description
38 An implementation of a Lantiq TAPI channel driver for Asterisk.
41 define Package
/$(PKG_NAME
)/conffiles
42 /etc
/asterisk
/lantiq.conf
46 cd
$(PKG_BUILD_DIR
)/src
/channels
&& \
47 $(TARGET_CC
) -o chan_lantiq.o
-c chan_lantiq.c
-MD
-MT chan_lantiq.o \
48 -MF .chan_lantiq.o.d
-MP
-pthread \
49 $(TARGET_CFLAGS
) -DAST_MODULE_SELF_SYM
=__internal_chan_lantiq_self \
51 -Wall
-Wstrict-prototypes
-Wmissing-prototypes \
52 -Wmissing-declarations
$(FPIC
) -DAST_MODULE
=\"chan_lantiq
\" && \
53 $(TARGET_CC
) -o chan_lantiq.so
-pthread
$(TARGET_LDFLAGS
) -shared \
54 -Wl
,--version-script
,chan_lantiq.exports
,--warn-common \
58 define Package
/$(PKG_NAME
)/install
59 $(INSTALL_DIR
) $(1)/etc
/asterisk
61 $(PKG_BUILD_DIR
)/src
/configs
/samples
/lantiq.conf.sample \
62 $(1)/etc
/asterisk
/lantiq.conf
63 $(INSTALL_DIR
) $(1)/usr
/lib
/asterisk
/modules
65 $(PKG_BUILD_DIR
)/src
/channels
/chan_lantiq.so \
66 $(1)/usr
/lib
/asterisk
/modules
69 $(eval
$(call BuildPackage
,$(PKG_NAME
)))