1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/net/usockets/Makefile
Yuri Victorovich ab2c49871b net/usockets: Update 0.8.0 -> 0.8.1
Reported by:	portscout
2021-10-16 15:21:13 -07:00

38 lines
1018 B
Makefile

PORTNAME= usockets
DISTVERSIONPREFIX= v
DISTVERSION= 0.8.1
CATEGORIES= net devel
MAINTAINER= yuri@FreeBSD.org
COMMENT= Minuscule eventing, networking, and crypto for async applications
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN_riscv64= fails to build: Hard-float 'd' ABI can't be used for a target that doesn't support the D instruction set extension
USES= compiler:c++17-lang gmake ssl # c++17 only for temp C_++ code, otherwise it is c11
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= uNetworking
GH_PROJECT= uSockets
MAKE_ARGS= WITH_OPENSSL=1
ALL_TARGET= default
PLIST_FILES= include/libusockets.h \
lib/libuSockets.so
do-install:
${INSTALL_DATA} ${WRKSRC}/src/libusockets.h ${STAGEDIR}${PREFIX}/include
${INSTALL_LIB} ${WRKSRC}/libuSockets.so ${STAGEDIR}${PREFIX}/lib
do-test: # tests fail to compile: https://github.com/uNetworking/uSockets/issues/160
cd ${WRKSRC} && \
${CXX} -o test tests/sni_test.c ${STAGEDIR}${PREFIX}/lib/libuSockets.so && \
./test
.include <bsd.port.mk>