mirror of
https://github.com/openwrt/telephony.git
synced 2025-12-21 17:04:36 +04:00
Add additional fix patch for compilation error/warning and fix broken MD5 support on 64bit. The compilation warning actually discover a very old BUG that produced wrong MD5 calculation on 64bit systems. The BUG was caused by the use of unsigned long for uint32. On 64 bit systems, unsigned long is actually 8 bytes instead of the expected 4 bytes. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
56 lines
1.2 KiB
Makefile
56 lines
1.2 KiB
Makefile
#
|
|
# Copyright (C) 2014 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=miax
|
|
PKG_VERSION:=1.4
|
|
PKG_RELEASE:=4
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=@SF/miax
|
|
PKG_HASH:=2be07cdb1929d6b07f04ec3a66edf4fb2febd691c72f5fd4893923f6474b53e9
|
|
PKG_CHECK_FORMAT_SECURITY:=0
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
|
|
|
PKG_LICENSE:=GPL-2.0
|
|
PKG_LICENSE_FILES:=COPYING LICENSE
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/miax
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
SUBMENU:=Telephony
|
|
DEPENDS:=+libpthread
|
|
TITLE:=A console iax (asterisk) client
|
|
URL:=http://www.eja.it/?l=en&n=miax
|
|
endef
|
|
|
|
define Package/miax/description
|
|
miax is a console iax (asterisk) client, it can work with
|
|
a soundcard as a normal voip phone, taking input/output from
|
|
keyboard or analog/gsm/isdn modem.
|
|
endef
|
|
|
|
define Build/Compile
|
|
$(MAKE) -C "$(PKG_BUILD_DIR)" \
|
|
CC="$(TARGET_CC)" \
|
|
OFLAGS="$(TARGET_CFLAGS)" \
|
|
CPPFLAGS="$(TARGET_CPPFLAGS)" \
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
|
all
|
|
endef
|
|
|
|
define Package/miax/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/miax $(1)/usr/bin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,miax))
|