Index: head/devel/libhyve-remote/Makefile =================================================================== --- head/devel/libhyve-remote/Makefile (revision 449795) +++ head/devel/libhyve-remote/Makefile (revision 449796) @@ -1,48 +1,62 @@ # $FreeBSD$ PORTNAME= libhyve-remote -PORTVERSION= 0.1.1 +PORTVERSION= 0.1.2 CATEGORIES= devel MAINTAINER= araujo@FreeBSD.org COMMENT= Library to abstract vnc, rdp and spice protocols LICENSE= BSD2CLAUSE GPLv2 LICENSE_COMB= dual 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= araujobsd USE_LDCONFIG= yes +.include + 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 Index: head/devel/libhyve-remote/distinfo =================================================================== --- head/devel/libhyve-remote/distinfo (revision 449795) +++ head/devel/libhyve-remote/distinfo (revision 449796) @@ -1,3 +1,3 @@ -TIMESTAMP = 1501212977 -SHA256 (araujobsd-libhyve-remote-0.1.1_GH0.tar.gz) = e24e71c1dadfe76d52b30bd9b2d064b7cee52b9642c5e5fd5a0a9315ff337fe4 -SIZE (araujobsd-libhyve-remote-0.1.1_GH0.tar.gz) = 6255 +TIMESTAMP = 1505313487 +SHA256 (araujobsd-libhyve-remote-0.1.2_GH0.tar.gz) = 1c45bbefc7b1087dad9330e486499e50d9e2a0f4184032e4ace16c8a86aeb1e2 +SIZE (araujobsd-libhyve-remote-0.1.2_GH0.tar.gz) = 11645