commit | author | age
|
c3a49b
|
1 |
# |
AS |
2 |
# This file and its contents are supplied under the terms of the |
|
3 |
# Common Development and Distribution License ("CDDL"). You may |
|
4 |
# only use this file in accordance with the terms of the CDDL. |
|
5 |
# |
|
6 |
# A full copy of the text of the CDDL should have accompanied this |
|
7 |
# source. A copy of the CDDL is also available via the Internet at |
|
8 |
# http://www.illumos.org/license/CDDL. |
|
9 |
# |
|
10 |
|
|
11 |
# |
|
12 |
# Copyright 2016 Andrey Sokolov. All rights reserved. |
7d65f7
|
13 |
# Copyright 2017 Alexander Pyhalov |
c3a49b
|
14 |
# |
AS |
15 |
|
|
16 |
include ../../../make-rules/shared-macros.mk |
|
17 |
|
|
18 |
COMPONENT_NAME= asterisk |
7d65f7
|
19 |
COMPONENT_VERSION= 15.1.4 |
c3a49b
|
20 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
AS |
21 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
7d65f7
|
22 |
COMPONENT_ARCHIVE_HASH= sha256:8ce3ffbff473410ae0ed0472adea22b01a20f9ec784ebfec51393282028acc16 |
c3a49b
|
23 |
COMPONENT_PROJECT_URL= http://www.asterisk.org |
3fbf08
|
24 |
COMPONENT_ARCHIVE_URL= http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/$(COMPONENT_ARCHIVE) |
c3a49b
|
25 |
COMPONENT_LICENSE= GPLv2 |
AS |
26 |
COMPONENT_LICENSE_FILE= $(COMPONENT_NAME).license |
|
27 |
|
|
28 |
include $(WS_TOP)/make-rules/prep.mk |
|
29 |
include $(WS_TOP)/make-rules/configure.mk |
|
30 |
include $(WS_TOP)/make-rules/ips.mk |
|
31 |
|
|
32 |
COMPONENT_PRE_CONFIGURE_ACTION += ($(CLONEY) $(SOURCE_DIR) $(@D)); |
|
33 |
|
7d65f7
|
34 |
CFLAGS += -I/usr/include/jansson |
AP |
35 |
|
|
36 |
LDFLAGS+= -L$(PG_LIBDIR.$(BITS)) -R$(PG_LIBDIR.$(BITS)) |
|
37 |
|
|
38 |
# asterisk uses a bit of dlsym() magic to overwrite some libssl |
|
39 |
# functions. The magic is defeated by -Bdirect -zignore |
|
40 |
LD_B_DIRECT= |
|
41 |
LD_Z_IGNORE= |
|
42 |
|
c3a49b
|
43 |
PATCH_LEVEL = 0 |
7d65f7
|
44 |
|
AP |
45 |
CONFIGURE_BINDIR= /usr/bin |
|
46 |
CONFIGURE_SBINDIR= /usr/sbin |
c3a49b
|
47 |
|
AS |
48 |
CONFIGURE_OPTIONS += --sysconfdir=/etc |
|
49 |
CONFIGURE_OPTIONS += --localstatedir=/var |
|
50 |
CONFIGURE_OPTIONS += --without-oss |
7d65f7
|
51 |
CONFIGURE_OPTIONS += --with-pjproject-bundled=no |
c3a49b
|
52 |
CONFIGURE_OPTIONS += --with-gsm=internal |
7d65f7
|
53 |
CONFIGURE_OPTIONS += PG_CONFIG=$(PG_BINDIR)/pg_config |
c3a49b
|
54 |
|
AS |
55 |
COMPONENT_INSTALL_TARGETS += samples |
|
56 |
|
|
57 |
build: $(BUILD_32) |
|
58 |
|
|
59 |
install: $(INSTALL_32) |
|
60 |
|
|
61 |
test: $(NO_TESTS) |
|
62 |
|
57a97d
|
63 |
# Build dependencies |
7d65f7
|
64 |
REQUIRED_PACKAGES += database/postgres-94/developer |
AP |
65 |
|
57a97d
|
66 |
# Auto-generated dependencies |
AL |
67 |
REQUIRED_PACKAGES += SUNWcs |
7d65f7
|
68 |
REQUIRED_PACKAGES += codec/speex |
AP |
69 |
REQUIRED_PACKAGES += compress/xz |
|
70 |
REQUIRED_PACKAGES += database/postgres-94/library |
c3a49b
|
71 |
REQUIRED_PACKAGES += database/sqlite-3 |
7d65f7
|
72 |
REQUIRED_PACKAGES += library/freetds |
AP |
73 |
REQUIRED_PACKAGES += library/glib2 |
|
74 |
REQUIRED_PACKAGES += library/gmime |
|
75 |
REQUIRED_PACKAGES += library/gnu-libiconv |
|
76 |
REQUIRED_PACKAGES += library/jansson |
|
77 |
REQUIRED_PACKAGES += library/libedit |
|
78 |
REQUIRED_PACKAGES += library/libical |
57a97d
|
79 |
REQUIRED_PACKAGES += library/libidn2 |
7d65f7
|
80 |
REQUIRED_PACKAGES += library/libogg |
AP |
81 |
REQUIRED_PACKAGES += library/libproxy |
|
82 |
REQUIRED_PACKAGES += library/libssh2 |
|
83 |
REQUIRED_PACKAGES += library/libvorbis |
c3a49b
|
84 |
REQUIRED_PACKAGES += library/libxml2 |
7d65f7
|
85 |
REQUIRED_PACKAGES += library/libxslt |
c3a49b
|
86 |
REQUIRED_PACKAGES += library/neon |
7d65f7
|
87 |
REQUIRED_PACKAGES += library/nghttp2 |
AP |
88 |
REQUIRED_PACKAGES += library/openldap |
c3a49b
|
89 |
REQUIRED_PACKAGES += library/security/openssl |
7d65f7
|
90 |
REQUIRED_PACKAGES += library/speexdsp |
c3a49b
|
91 |
REQUIRED_PACKAGES += library/zlib |
AS |
92 |
REQUIRED_PACKAGES += runtime/lua |
7d65f7
|
93 |
REQUIRED_PACKAGES += shell/bash |
c3a49b
|
94 |
REQUIRED_PACKAGES += system/library |
f5010f
|
95 |
REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG) |
969846
|
96 |
REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG) |
c3a49b
|
97 |
REQUIRED_PACKAGES += system/library/math |
7d65f7
|
98 |
REQUIRED_PACKAGES += system/library/security/gss |
c3a49b
|
99 |
REQUIRED_PACKAGES += system/management/snmp/net-snmp |
AS |
100 |
REQUIRED_PACKAGES += web/curl |