freebsd-ports/sysutils/ttyd/Makefile
Daniel Engberg 35c73981e5 sysutils/ttyd: Only link with shared library
Due to how upstream handles libraries ttyd picks up both static and
shared library of libwebsockets which is not intended. The least
intrusive way I found is to simply detect it using pkgconfig instead.
While at it, disable check for git to determine version.

Reported by:	Jeff Schmidt <jeff.jschmidt@gmail.com>
Approved by:	portmgr (blanket, build fix)
2023-02-22 02:45:27 +01:00

26 lines
558 B
Makefile

PORTNAME= ttyd
DISTVERSION= 1.7.3
CATEGORIES= sysutils
MAINTAINER= nc@FreeBSD.org
COMMENT= Program to share your terminal over the web
WWW= https://github.com/tsl0922/ttyd
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= xxd:editors/vim
LIB_DEPENDS= libjson-c.so:devel/json-c \
libuv.so:devel/libuv \
libwebsockets.so:net/libwebsockets
USES= cmake pkgconfig ssl
USE_GITHUB= yes
GH_ACCOUNT= tsl0922
CMAKE_ARGS= -DCMAKE_DISABLE_FIND_PACKAGE_Git:BOOL=True
PLIST_FILES= bin/${PORTNAME} \
share/man/man1/ttyd.1.gz
.include <bsd.port.mk>