blob: 113d8390ef89c4d9a7ada68fad701de8e5f73690 (
plain)
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
54
55
56
57
58
59
60
61
62
63
|
PORTNAME= libhyve-remote
PORTVERSION= 0.1.4.2
CATEGORIES= devel
MAINTAINER= ports@FreeBSD.org
COMMENT= Library to abstract vnc, rdp and spice protocols
LICENSE= BSD2CLAUSE GPLv2
LICENSE_COMB= dual
BROKEN= fails to build
LIB_DEPENDS= libvncserver.so:net/libvncserver
OPTIONS_DEFINE= BHYVE
BHYVE_DESC= FreeBSD bhyve libhyve-remote integration
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
PLIST_FILES= ${HEADER_FILES} \
${LIB_FILES}
HEADER_FILES= include/libhyverem/hyverem.h \
include/libhyverem/rfbsrv.h \
include/libhyverem/libcheck.h \
include/libhyverem/vncserver.h
LIB_FILES= lib/libhyverem.so.1 \
lib/libhyverem.so \
lib/libhyverem.a \
lib/libhyverem_p.a
PLIST_DIRS= ${LOCALBASE}/include/libhyverem
USE_GITHUB= yes
GH_ACCOUNT= freenas
USE_LDCONFIG= yes
.include <bsd.port.options.mk>
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/include/libhyverem
.for headers in ${HEADER_FILES}
${INSTALL_DATA} ${WRKSRC}/include/${headers:T} ${STAGEDIR}${PREFIX}/include/libhyverem/${headers:T}
.endfor
.for lib in ${LIB_FILES:T}
${INSTALL_DATA} ${WRKSRC}/${lib} ${STAGEDIR}${PREFIX}/lib/
.endfor
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.1
${LN} -fs libhyverem.so.1 ${STAGEDIR}${PREFIX}/lib/libhyverem.so
post-install:
.if ${PORT_OPTIONS:MBHYVE}
.if !exists(${SRC_BASE}/usr.sbin/bhyve/pci_fbuf.c)
IGNORE= requires kernel source files in ${SRC_BASE}
.else
(cd ${WRKSRC} && ${MAKE_CMD} bhyve-patch)
.endif
.endif
.include <bsd.port.mk>
|