rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / network / udpxy / Makefile
bloba47e8d97a69e4751ed2ff5212296737def1cf8d0
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 2016 Adam Stevko
15 include ../../../make-rules/shared-macros.mk
17 COMPONENT_NAME= udpxy
18 COMPONENT_VERSION= 1.0.23
19 COMPONENT_VERSION_REV= 10
20 COMPONENT_REVISION= 11
21 IPS_COMPONENT_VERSION= $(COMPONENT_VERSION).$(COMPONENT_VERSION_REV)
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
26 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)-$(COMPONENT_VERSION_REV)
27 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
28 COMPONENT_ARCHIVE_URL= http://www.udpxy.com/download/$(COMPONENT_NAME)/$(COMPONENT_NAME)-src.tar.gz
29 COMPONENT_ARCHIVE_HASH= sha256:187d5306136b9ed1bb59a7f2822bbcb1cc0a279090dba88a7a6bd78ab20a95a6
30 COMPONENT_LICENSE= GPLv3
32 include $(WS_MAKE_RULES)/prep.mk
33 include $(WS_MAKE_RULES)/justmake.mk
34 include $(WS_MAKE_RULES)/ips.mk
36 CDEFS+= -DNO_SOCKADDR_SA_LEN
37 CDEFS+= -D_POSIX_PTHREAD_SEMANTICS
39 LDFLAGS+= -lsocket
40 LDFLAGS+= -lnsl
42 COMPONENT_BUILD_ENV+= CC=$(CC)
43 COMPONENT_BUILD_ENV+= CFLAGS="$(CFLAGS)"
44 COMPONENT_BUILD_ENV+= LDFLAGS="$(LDFLAGS)"
45 COMPONENT_BUILD_ENV+= CDEFS="$(CDEFS)"
46 COMPONENT_INSTALL_ENV+= PREFIX=/usr
48 COMPONENT_BUILD_TARGETS= release
50 build: $(BUILD_64)
52 install: $(INSTALL_64)
54 test: $(NO_TESTS)
56 # Auto-generated dependencies
57 REQUIRED_PACKAGES += SUNWcs
58 REQUIRED_PACKAGES += system/library