Andreas Wacknitz
2024-04-04 8590298b09ebad29af56370cd23105cd0931b389
commit | author | age
48b104 1 #
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 Adam Stevko 
13 #
14
15 include ../../../make-rules/shared-macros.mk
16
17 COMPONENT_NAME=    udpxy
18 COMPONENT_VERSION= 1.0.23
33fcca 19 COMPONENT_VERSION_REV= 10
AL 20 COMPONENT_REVISION= 11
21 IPS_COMPONENT_VERSION= $(COMPONENT_VERSION).$(COMPONENT_VERSION_REV) 
48b104 22 COMPONENT_SUMMARY=udpxy is a UDP-to-HTTP multicast traffic relay daemon: it forwards UDP traffic from a given multicast subscription to the requesting HTTP client.
23 COMPONENT_PROJECT_URL=    http://www.udpxy.com/
24 COMPONENT_FMRI=    network/udpxy
25 COMPONENT_CLASSIFICATION=  Applications/Internet
33fcca 26 COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)-$(COMPONENT_VERSION_REV)
48b104 27 COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.gz
517acd 28 COMPONENT_ARCHIVE_URL=    http://www.udpxy.com/download/$(COMPONENT_NAME)/$(COMPONENT_NAME)-src.tar.gz
AL 29 COMPONENT_ARCHIVE_HASH=    sha256:187d5306136b9ed1bb59a7f2822bbcb1cc0a279090dba88a7a6bd78ab20a95a6
48b104 30 COMPONENT_LICENSE= GPLv3
31
32 include $(WS_MAKE_RULES)/prep.mk
33 include $(WS_MAKE_RULES)/justmake.mk
34 include $(WS_MAKE_RULES)/ips.mk
35
36 CDEFS+= -DNO_SOCKADDR_SA_LEN
37 CDEFS+= -D_POSIX_PTHREAD_SEMANTICS
38
39 LDFLAGS+= -lsocket
40 LDFLAGS+= -lnsl
41
42 COMPONENT_BUILD_ENV+= CC=$(CC)
517acd 43 COMPONENT_BUILD_ENV+= CFLAGS="$(CFLAGS)"
48b104 44 COMPONENT_BUILD_ENV+= LDFLAGS="$(LDFLAGS)"
45 COMPONENT_BUILD_ENV+= CDEFS="$(CDEFS)"
46 COMPONENT_INSTALL_ENV+= PREFIX=/usr
47
48 COMPONENT_BUILD_TARGETS= release
49
517acd 50 build:        $(BUILD_64)
48b104 51
517acd 52 install:    $(INSTALL_64)
48b104 53
517acd 54 test:        $(NO_TESTS)
AL 55
56 # Auto-generated dependencies
57 REQUIRED_PACKAGES += SUNWcs
58 REQUIRED_PACKAGES += system/library