2 # Copyright (C) 2014 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
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://downloads.asterisk.org
/pub
/telephony
/dahdi-tools
/releases
16 PKG_HASH
:=5bebb20d5ae13fa13f0e2075603013954b962be477db02271eef44b3e41557c5
19 PKG_LICENSE_FILES
:=LICENSE
20 PKG_MAINTAINER
:=Vittorio Gambaletta
<openwrt@vittgam.net
>
28 include $(INCLUDE_DIR
)/package.mk
30 define Package
/dahdi-cfg
/Default
37 define Package
/dahdi-cfg
38 $(call Package
/dahdi-cfg
/Default
)
39 DEPENDS
+=+libpthread
+dahdi-tools-libtonezone
40 TITLE
:=DAHDI tools dahdi_cfg
, dahdi_scan and fxotune
43 define Package
/dahdi-monitor
44 $(call Package
/dahdi-cfg
/Default
)
45 TITLE
:=DAHDI tools dahdi_monitor
, dahdi_speed and dahdi_test
48 define Package
/dahdi-tools-libtonezone
49 $(call Package
/dahdi-cfg
/Default
)
52 TITLE
:=DAHDI tonezone library
55 CONFIGURE_ARGS
+=--disable-silent-rules
57 # https://issues.asterisk.org/jira/browse/DAHTOOL-85
58 TARGET_CFLAGS
+=-fcommon
60 define Build
/InstallDev
61 $(INSTALL_DIR
) $(1)/usr
/lib
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libtonezone.
{a
,so
*} \
64 $(INSTALL_DIR
) $(1)/usr
/include/dahdi
65 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/include/dahdi
/tonezone.h \
66 $(1)/usr
/include/dahdi
/
69 define Package
/dahdi-cfg
/install
70 $(INSTALL_DIR
) $(1)/usr
/sbin
71 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/{dahdi_cfg
,dahdi_scan
,fxotune
} \
75 define Package
/dahdi-monitor
/install
76 $(INSTALL_DIR
) $(1)/usr
/sbin
77 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/{dahdi_monitor
,dahdi_speed
,dahdi_test
} \
81 define Package
/dahdi-tools-libtonezone
/install
82 $(INSTALL_DIR
) $(1)/usr
/lib
83 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libtonezone.so
* $(1)/usr
/lib
/
86 $(eval
$(call BuildPackage
,dahdi-cfg
))
87 $(eval
$(call BuildPackage
,dahdi-monitor
))
88 $(eval
$(call BuildPackage
,dahdi-tools-libtonezone
))