This patch includes Makefile changes for chan-sccp-b V4.1-RC1 compiled against the...
authorJiri Slachta <slachta@cesnet.cz>
Tue, 14 May 2013 16:21:52 +0000 (18:21 +0200)
committerJiri Slachta <slachta@cesnet.cz>
Tue, 14 May 2013 16:21:52 +0000 (18:21 +0200)
Signed-off-by: Diederik de Groot <ddegroot@users.sourceforge.net>
[slachta@cesnet.cz: dependency fixes which prevents breaking menuconfig items to be split]
Tested-by: Jiri Slachta <slachta@cesnet.cz>
Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
asterisk-1.8.x-chan-sccp-b/Makefile
asterisk-1.8.x-chan-sccp-b/patches/200-register-file-version.patch [deleted file]
asterisk-1.8.x-chan-sccp-b/patches/300-stdarg.patch [deleted file]

index d04679cbb7fa46bd167fb10d6a9c919a3f522fc6..9b098e34748908aaad6e52b6a10e28b728018102 100644 (file)
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=asterisk18-chan-sccp-b
-PKG_REV=3004
+PKG_REV=4631
 PKG_VERSION:=r$(PKG_REV)
 PKG_RELEASE:=1
 
@@ -18,6 +18,8 @@ PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
 PKG_SOURCE_VERSION:=$(PKG_REV)
 PKG_SOURCE_PROTO:=svn
 
+PKG_FIXUP:=autoreconf -fi
+
 include $(INCLUDE_DIR)/package.mk
 
 define Package/asterisk18-chan-sccp-b
@@ -34,12 +36,13 @@ define Package/asterisk18-chan-sccp-b/description
  by asterisk by default.
 endef
 
-CONFIGURE_ARGS += \
-       --with-asterisk=$(STAGING_DIR)/usr/include/asterisk-1.8
+define Build/Configure
+       $(call Build/Configure/Default,--with-asterisk=$(STAGING_DIR)/usr/include/asterisk-1.8)
+endef
 
 define Build/Compile
        $(MAKE) -C "$(PKG_BUILD_DIR)" \
-               CFLAGS="$(CFLAGS) -DLOW_MEMORY" \
+               CFLAGS="$(CFLAGS) -I$(PKG_BUILD_DIR)/src -DLOW_MEMORY" \
                DESTDIR="$(PKG_INSTALL_DIR)" \
                all install
 endef
@@ -50,7 +53,7 @@ endef
 
 define Package/asterisk18-chan-sccp-b/install
        $(INSTALL_DIR) $(1)/etc/asterisk
-       $(INSTALL_BIN)  ./files/sccp.openwrt.conf $(1)/etc/asterisk/sccp.conf
+       $(CP)  ./files/sccp.openwrt.conf $(1)/etc/asterisk/sccp.conf
        $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_sccp.so $(1)/usr/lib/asterisk/modules/
 endef
diff --git a/asterisk-1.8.x-chan-sccp-b/patches/200-register-file-version.patch b/asterisk-1.8.x-chan-sccp-b/patches/200-register-file-version.patch
deleted file mode 100644 (file)
index 81ca9d3..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
---- a/src/chan_sccp.h
-+++ b/src/chan_sccp.h
-@@ -127,15 +127,7 @@ extern "C" {
- #        define CHECK_LEAKS()
- #    endif
--#    define SCCP_FILE_VERSION(file, version) \
--      static void __attribute__((constructor)) __register_file_version(void) \
--      { \
--              pbx_register_file_version(file, version); \
--      } \
--      static void __attribute__((destructor)) __unregister_file_version(void) \
--      { \
--              pbx_unregister_file_version(file); \
--      }
-+#    define SCCP_FILE_VERSION(file, version) 
- #    define DEV_ID_LOG(x) x ? x->id : "SCCP"
diff --git a/asterisk-1.8.x-chan-sccp-b/patches/300-stdarg.patch b/asterisk-1.8.x-chan-sccp-b/patches/300-stdarg.patch
deleted file mode 100644 (file)
index be91ed7..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/src/chan_sccp.h
-+++ b/src/chan_sccp.h
-@@ -32,6 +32,7 @@ extern "C" {
- #include "common.h"
- #include <poll.h>
- #include "asterisk/compiler.h"
-+#include <stdarg.h>
- #include "asterisk/lock.h"
- #include "asterisk/abstract_jb.h"