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

Letzte Änderung dieser Datei seit 13648 war 13648, erstellt von er13 vor 22 Monaten

packages using autoreconf:

  • don't "swallow" autoreconf related errors, do fail if autoreconf fails
  • refs this thread
Dateigröße: 1.9 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# add EXTRA_(C|LD)FLAGS
21$(PKG)_CONFIGURE_PRE_CMDS += find $(abspath $($(PKG)_DIR)) -name Makefile.in -type f -exec $(SED) -i -r -e 's,^(C|LD)FLAGS[ \t]*=[ \t]*@\1FLAGS@,& $$$$(EXTRA_\1FLAGS),' \{\} \+;
22
23$(PKG)_CONFIGURE_ENV += SCCP_REVISION=$(ASTERISK_CHAN_SCCP_VERSION)
24
25$(PKG)_CONFIGURE_OPTIONS += --with-asterisk=$(ASTERISK_INSTALL_DIR_ABSOLUTE)/usr
26$(PKG)_CONFIGURE_OPTIONS += --sysconfdir=/mod/etc
27
28$(PKG)_EXTRA_CFLAGS += $(if $(FREETZ_PACKAGE_ASTERISK_DEBUG),$(ASTERISK_DEBUG_CFLAGS))
29
30$(PKG_SOURCE_DOWNLOAD)
31$(PKG_UNPACKED)
32$(PKG_CONFIGURED_CONFIGURE)
33
34$($(PKG)_BINARY): $($(PKG)_DIR)/.configured
35    $(SUBMAKE) -C $(ASTERISK_CHAN_SCCP_DIR) \
36        EXTRA_CFLAGS="$(ASTERISK_CHAN_SCCP_EXTRA_CFLAGS)" \
37        V=1
38
39$($(PKG)_CONFIG): $($(PKG)_DIR)/.configured
40    touch $@
41
42$($(PKG)_BINARY_TARGET): $($(PKG)_BINARY)
43    $(if $(FREETZ_PACKAGE_ASTERISK_DEBUG),$(INSTALL_FILE),$(INSTALL_BINARY_STRIP))
44
45$($(PKG)_CONFIG_TARGET): $($(PKG)_CONFIG)
46    $(INSTALL_FILE)
47
48$(pkg):
49
50$(pkg)-precompiled: $($(PKG)_BINARY_TARGET) #$($(PKG)_CONFIG_TARGET)
51
52$(pkg)-clean:
53    -$(SUBMAKE) -C $(ASTERISK_CHAN_SCCP_DIR) clean
54
55$(pkg)-uninstall:
56    $(RM) $(ASTERISK_CHAN_SCCP_BINARY_TARGET) $(ASTERISK_CHAN_SCCP_CONFIG_TARGET)
57
58$(PKG_FINISH)
Hinweis: Hilfe zum Repository-Browser finden Sie in TracBrowser.