blob: 25473bae841ddfb0b97be0186ab9da5f9b089a82 (
plain) (
blame)
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
47
48
49
50
51
52
53
|
PORTNAME= libswift
PORTVERSION= 20190302
PORTREVISION= 1
CATEGORIES= net-p2p
MAINTAINER= dch@FreeBSD.org
COMMENT= IETF Peer-to-Peer Streaming Peer Protocol implementation
LICENSE= LGPL21
LIB_DEPENDS= libevent.so:devel/libevent
USES= compiler:c++11-lang gmake ssl
USE_GITHUB= yes
GH_ACCOUNT= skunkwerks
GH_TAGNAME= dc0cbcc
PORTDOCS= README.md
SUB_FILES= ${PORTNAME}
SUB_LIST+= SWIFT_USER=${SWIFT_USER} \
SWIFT_GROUP=${SWIFT_GROUP} \
SWIFT_SHAREDIR=${SWIFT_SHAREDIR} \
SWIFT_PIDDIR=${SWIFT_PIDDIR}
PLIST_SUB= SWIFT_USER=${SWIFT_USER} \
SWIFT_GROUP=${SWIFT_GROUP} \
SWIFT_SHAREDIR=${SWIFT_SHAREDIR} \
SWIFT_PIDDIR=${SWIFT_PIDDIR}
SWIFT_USER?= www
SWIFT_GROUP?= www
SWIFT_SHAREDIR= /var/db/${PORTNAME}/
SWIFT_PIDDIR= /var/run/${PORTNAME}/
USE_RC_SUBR= ${PORTNAME}
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
post-patch:
${REINPLACE_CMD} -e 's/CXX=clang++/CXX?=clang++/' ${WRKSRC}/Makefile
do-install:
${MKDIR} ${STAGEDIR}${DOCSDIR} \
${STAGEDIR}${SWIFT_SHAREDIR} \
${STAGEDIR}${SWIFT_PIDDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
${INSTALL_PROGRAM} ${WRKSRC}/swift ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.post.mk>
|