Marcel Telka
2024-04-02 f1b1912adc00984cd165470b728dda03ac81b2c6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"). You may
# only use this file in accordance with the terms of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
 
#
# Copyright 2016 Adam Stevko
#
 
include ../../../make-rules/shared-macros.mk
 
COMPONENT_NAME=        gwsocket
COMPONENT_VERSION=    0.2
COMPONENT_SUMMARY=    fast, standalone, language-agnostic WebSocket server RFC6455 compliant
COMPONENT_PROJECT_URL=    http://gwsocket.io/
COMPONENT_FMRI=        web/gwsocket
COMPONENT_CLASSIFICATION=Web Services/Application and Web Servers
COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.gz
COMPONENT_ARCHIVE_URL=    https://github.com/allinurl/gwsocket/archive/v$(COMPONENT_VERSION).tar.gz
COMPONENT_ARCHIVE_HASH= sha256:cafb0cbde1d8b366c74c1602a8d2e1bde054834aa5c618cfad5603a871ae4082
COMPONENT_LICENSE=    MIT
COMPONENT_LICENSE_FILE=    $(COMPONENT_NAME).license
 
include $(WS_MAKE_RULES)/prep.mk
include $(WS_MAKE_RULES)/configure.mk
include $(WS_MAKE_RULES)/ips.mk
 
COMPONENT_PRE_CONFIGURE_ACTION= \
    (cd $(SOURCE_DIR) && autoreconf -vif)
 
LDFLAGS+= -lsocket
LDFLAGS+= -lnsl
 
build:        $(BUILD_32)
 
install:    $(INSTALL_32)
 
test:        $(TEST_32)
 
REQUIRED_PACKAGES += system/library