2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2015 Alexander Pyhalov
18 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_MJR_VERSION
= 1.0
22 COMPONENT_PATCHLEVEL
= 22
23 COMPONENT_VERSION
= $(COMPONENT_MJR_VERSION
).
$(COMPONENT_PATCHLEVEL
)
25 COMPONENT_SUMMARY
= GSM audio encoding
/decoding library
26 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_MJR_VERSION
)-pl
$(COMPONENT_PATCHLEVEL
)
27 COMPONENT_ARCHIVE
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
).
tar.gz
28 COMPONENT_ARCHIVE_HASH
= sha256
:f0072e91f6bb85a878b2f6dbf4a0b7c850c4deb8049d554c65340b3bf69df0ac
29 COMPONENT_PROJECT_URL
= https
://www.quut.com
/gsm
30 COMPONENT_ARCHIVE_URL
= $(COMPONENT_PROJECT_URL
)/$(COMPONENT_ARCHIVE
)
31 COMPONENT_FMRI
= library
/audio
/libgsm
32 COMPONENT_CLASSIFICATION
=System
/Media
33 COMPONENT_LICENSE
= BSD
34 COMPONENT_LICENSE_FILE
= COPYRIGHT
36 include $(WS_MAKE_RULES
)/encumbered.mk
37 include $(WS_MAKE_RULES
)/common.mk
39 COMPONENT_ENV
+= CC
="$(CC)"
40 COMPONENT_ENV
+= PICFLAG
="$(CC_PIC)"
41 COMPONENT_ENV
+= MYCFLAGS
="$(CFLAGS)"
42 COMPONENT_ENV
+= LDFLAGS
="$(LDFLAGS)"
44 COMPONENT_BUILD_ENV
+= $(COMPONENT_ENV
)
46 COMPONENT_INSTALL_ENV
.64 = ARCH
=/$(MACH64
)
47 COMPONENT_INSTALL_ENV
+= $(COMPONENT_ENV
)
48 COMPONENT_INSTALL_ENV
+= $(COMPONENT_INSTALL_ENV.
$(BITS
))
50 COMPONENT_INSTALL_ARGS
+= INSTALL_ROOT
=$(USRDIR
)
52 COMPONENT_PRE_INSTALL_ACTION
+= ( $(GNUBIN
)/install -d \
54 $(PROTOUSRINCDIR
)/gsm \
57 $(PROTOUSRSHAREMANDIR
)/man1 \
58 $(PROTOUSRSHAREMANDIR
)/man3
)
60 COMPONENT_POST_INSTALL_ACTION
+= ( cp
-r
$(COMPONENT_SRC
)/inc
/*.h \
61 $(PROTOUSRINCDIR
)/gsm
/ )
63 # Auto-generated dependencies
64 REQUIRED_PACKAGES
+= system
/library