Ignore:
Timestamp:
2011-10-28T11:25:54+02:00 (5 years ago)
Author:
florian
Message:

[package] asterisk-chan-sccp-b: update to revision 3004, cleanup Makefile

Patch from Hans Zandbelt.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/asterisk-chan-sccp-b/Makefile

    r28374 r28647  
    99 
    1010PKG_NAME:=asterisk18-chan-sccp-b 
    11 # associated with asterisk version 
    12 PKG_VERSION:=1.8.4.4 
    13 # chan-sccp-b version 
    14 PKG_RELEASE:=V4.0.0 
     11PKG_REV=3004 
     12PKG_VERSION:=r$(PKG_REV) 
     13PKG_RELEASE:=1 
    1514 
    16 # SVN 
    17 PKG_REV=2797 
    1815PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
    1916PKG_SOURCE_URL:=https://chan-sccp-b.svn.sourceforge.net/svnroot/chan-sccp-b/trunk 
     
    2118PKG_SOURCE_VERSION:=$(PKG_REV) 
    2219PKG_SOURCE_PROTO:=svn 
    23  
    24 PKG_FIXUP:=libtool 
    2520 
    2621include $(INCLUDE_DIR)/package.mk 
     
    3227  TITLE:=SCCP channel provider for asterisk 
    3328  URL:=http://chan-sccp-b.net.sourceforge.net/ 
    34   MAINTAINER:=Diederik de Groot <ddegroot@users.sourceforge.net> 
     29  MAINTAINER:=Hans Zandbelt <hans.zandbelt@gmail.com> 
    3530  DEPENDS:=+asterisk18 
    3631endef 
     
    4136endef 
    4237 
    43 define Build/Configure 
    44         (cd $(PKG_BUILD_DIR); \ 
    45                 $(TARGET_CONFIGURE_OPTS) \ 
    46                 ./configure \ 
    47                         --prefix=/usr \ 
    48                         --target=$(GNU_TARGET_NAME) \ 
    49                         --host=$(GNU_TARGET_NAME) \ 
    50                         --build=$(GNU_HOST_NAME) \ 
    51                         --with-asterisk="$(PKG_BUILD_DIR)/../asterisk-${PKG_VERSION}/" \ 
    52         ); 
     38CONFIGURE_ARGS += \ 
     39        --with-asterisk=$(STAGING_DIR)/usr/include/asterisk-1.8 
     40 
     41define Build/Compile 
     42        $(MAKE) -C "$(PKG_BUILD_DIR)" \ 
     43                CFLAGS="$(CFLAGS) -DLOW_MEMORY" \ 
     44                DESTDIR="$(PKG_INSTALL_DIR)" \ 
     45                all install 
    5346endef 
    5447 
    55 define Build/Compile 
    56         $(MAKE) -C $(PKG_BUILD_DIR) $(TARGET_CONFIGURE_OPTS) 
    57         mkdir -p $(PKG_INSTALL_DIR)/usr/lib/modules/asterisk 
    58         mkdir -p $(PKG_INSTALL_DIR)/etc/astisk 
     48define Package/asterisk18-chan-sccp-b/conffiles 
     49/etc/asterisk/sccp.conf 
    5950endef 
    6051 
     
    6354        $(INSTALL_BIN)  ./files/sccp.openwrt.conf $(1)/etc/asterisk/sccp.conf 
    6455        $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules 
    65         $(CP) $(PKG_BUILD_DIR)/src/.libs/chan_sccp.so $(1)/usr/lib/asterisk/modules/ 
     56        $(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_sccp.so $(1)/usr/lib/asterisk/modules/ 
    6657endef 
    6758 
Note: See TracChangeset for help on using the changeset viewer.