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
:=ea852ebd274ee1cc90ff5e4ac84261b0b787b1a74e8b76ad659bc9ec4f77e67e
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
56 --disable-silent-rules \
66 # https://issues.asterisk.org/jira/browse/DAHTOOL-85
67 TARGET_CFLAGS
+=-fcommon
69 define Build
/InstallDev
70 $(INSTALL_DIR
) $(1)/usr
/lib
71 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libtonezone.
{a
,so
*} \
73 $(INSTALL_DIR
) $(1)/usr
/include/dahdi
74 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/include/dahdi
/tonezone.h \
75 $(1)/usr
/include/dahdi
/
78 define Package
/dahdi-cfg
/install
79 $(INSTALL_DIR
) $(1)/usr
/sbin
80 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/{dahdi_cfg
,dahdi_scan
,fxotune
} \
84 define Package
/dahdi-monitor
/install
85 $(INSTALL_DIR
) $(1)/usr
/sbin
86 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/{dahdi_monitor
,dahdi_speed
,dahdi_test
} \
90 define Package
/dahdi-tools-libtonezone
/install
91 $(INSTALL_DIR
) $(1)/usr
/lib
92 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libtonezone.so
* $(1)/usr
/lib
/
95 $(eval
$(call BuildPackage
,dahdi-cfg
))
96 $(eval
$(call BuildPackage
,dahdi-monitor
))
97 $(eval
$(call BuildPackage
,dahdi-tools-libtonezone
))