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.
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.
12 # Copyright 2022 Friedrich Kink
15 include ..
/..
/..
/make-rules
/shared-macros.mk
17 COMPONENT_NAME
= libiax2
18 COMPONENT_VERSION
= 0.2.3
19 COMPONENT_FMRI
= library
/libiax2
20 COMPONENT_SUMMARY
= A portable IAX
/IAX2 protocol telephony client library.
21 COMPONENT_CLASSIFICATION
=Applications
/Internet
22 COMPONENT_SRC
= iaxmodem-1.3
.3
23 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
24 COMPONENT_ARCHIVE_HASH
= sha256
:463f96b4e7e1abf0efc9bdb7cbe3b2f10486a123ca8e2e40a5b04c1abb00d28d
25 COMPONENT_PROJECT_URL
= https
://iaxmodem.sourceforge.net
/
26 COMPONENT_ARCHIVE_URL
= https
://sourceforge.net
/projects
/iaxmodem
/files
/latest
/$(COMPONENT_ARCHIVE
)
28 COMPONENT_LICENSE
= GPLv2
30 TEST_TARGET
=$(NO_TESTS
)
32 include $(WS_MAKE_RULES
)/common.mk
35 # we just want to build libiax2
36 # the real iaxmodem will be build in an own package
38 CONFIGURE_SCRIPT
= $(SOURCE_DIR
)/lib
/libiax2
/configure
40 COMPONENT_PRE_CONFIGURE_ACTION
+= ( \
41 cd
$(SOURCE_DIR
)/lib
/libiax2
; \
43 $(CLONEY
) $(SOURCE_DIR
)/lib
/libiax2
$(@D
); \
46 COMPONENT_POST_CONFIGURE_ACTION
+= ( $(GSED
) -i
-e
's:$$(includedir)/iax:$$(DESTDIR)$$(includedir)/iax:' $(@D
)/src
/Makefile
)
50 # Auto-generated dependencies
51 REQUIRED_PACKAGES
+= shell/ksh93
52 REQUIRED_PACKAGES
+= system
/library