source: trunk/make/asterisk-chan-sccp/asterisk-chan-sccp.mk @ 14411

Letzte Änderung dieser Datei seit 14411 war 14411, erstellt von er13 vor 3 Monaten

package Makefiles:

  • use PKG_ADD_EXTRA_FLAGS macro introduced in r14374 as much as possible
Dateigröße: 1.8 KB
Zeile 
1$(call PKG_INIT_BIN, 5393)
2$(PKG)_NAME_NO_HYPHEN:=$(subst -,,$(pkg))
3$(PKG)_SOURCE:=$($(PKG)_NAME_NO_HYPHEN)-$($(PKG)_VERSION).tar.xz
4$(PKG)_SITE:=svn@https://svn.code.sf.net/p/chan-sccp-b/code/branches/V4.1
5
6$(PKG)_DIR:=$($(PKG)_SOURCE_DIR)/$($(PKG)_NAME_NO_HYPHEN)-$($(PKG)_VERSION)
7
8$(PKG)_BINARY := $($(PKG)_DIR)/src/.libs/chan_sccp.so
9$(PKG)_BINARY_TARGET := $($(PKG)_DEST_DIR)$(ASTERISK_MODULES_DIR)/chan_sccp.so
10
11$(PKG)_CONFIG := $($(PKG)_DIR)/conf/sccp.conf
12$(PKG)_CONFIG_TARGET := $($(PKG)_DEST_DIR)$(ASTERISK_CONFIG_DIR)/sccp.conf
13
14$(PKG)_DEPENDS_ON += asterisk
15
16$(PKG)_REBUILD_SUBOPTS += FREETZ_PACKAGE_ASTERISK_LOWMEMORY
17$(PKG)_REBUILD_SUBOPTS += FREETZ_PACKAGE_ASTERISK_DEBUG
18
19$(PKG)_CONFIGURE_PRE_CMDS += $(AUTORECONF)
20$(PKG)_CONFIGURE_PRE_CMDS += $(call PKG_ADD_EXTRA_FLAGS,(C|LD)FLAGS)
21
22$(PKG)_CONFIGURE_ENV += SCCP_REVISION=$(ASTERISK_CHAN_SCCP_VERSION)
23
24$(PKG)_CONFIGURE_OPTIONS += --with-asterisk=$(ASTERISK_INSTALL_DIR_ABSOLUTE)/usr
25$(PKG)_CONFIGURE_OPTIONS += --sysconfdir=/mod/etc
26
27$(PKG)_EXTRA_CFLAGS += $(if $(FREETZ_PACKAGE_ASTERISK_DEBUG),$(ASTERISK_DEBUG_CFLAGS))
28
29$(PKG_SOURCE_DOWNLOAD)
30$(PKG_UNPACKED)
31$(PKG_CONFIGURED_CONFIGURE)
32
33$($(PKG)_BINARY): $($(PKG)_DIR)/.configured
34    $(SUBMAKE) -C $(ASTERISK_CHAN_SCCP_DIR) \
35        EXTRA_CFLAGS="$(ASTERISK_CHAN_SCCP_EXTRA_CFLAGS)" \
36        V=1
37
38$($(PKG)_CONFIG): $($(PKG)_DIR)/.configured
39    touch $@
40
41$($(PKG)_BINARY_TARGET): $($(PKG)_BINARY)
42    $(if $(FREETZ_PACKAGE_ASTERISK_DEBUG),$(INSTALL_FILE),$(INSTALL_BINARY_STRIP))
43
44$($(PKG)_CONFIG_TARGET): $($(PKG)_CONFIG)
45    $(INSTALL_FILE)
46
47$(pkg):
48
49$(pkg)-precompiled: $($(PKG)_BINARY_TARGET) #$($(PKG)_CONFIG_TARGET)
50
51$(pkg)-clean:
52    -$(SUBMAKE) -C $(ASTERISK_CHAN_SCCP_DIR) clean
53
54$(pkg)-uninstall:
55    $(RM) $(ASTERISK_CHAN_SCCP_BINARY_TARGET) $(ASTERISK_CHAN_SCCP_CONFIG_TARGET)
56
57$(PKG_FINISH)
Hinweis: Hilfe zum Repository-Browser finden Sie in TracBrowser.