# Created by: Aaron Hurt # $FreeBSD$ PORTNAME= protobuf-c PORTVERSION= 1.1.0 CATEGORIES= devel MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/v${PORTVERSION}/ \ LOCAL/truckman/farsight MAINTAINER= truckman@FreeBSD.org COMMENT= Code generator and libraries to use Protocol Buffers from pure C LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libprotobuf.so:${PORTSDIR}/devel/protobuf USES= gmake libtool pathfix pkgconfig GNU_CONFIGURE= yes USE_LDCONFIG= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib OPTIONS_DEFINE= DOXYGEN OPTIONS_DEFAULT= DOXYGEN PORTDOCS= * ALL_TARGET= all INSTALL_TARGET= install-strip DOXYGEN_BUILD_DEPENDS= doxygen:${PORTSDIR}/devel/doxygen DOXYGEN_ALL_TARGET= html-local .include post-patch: @${REINPLACE_CMD} -e 's|GREP "\\-L"|GREP "bin/ld"|g' ${WRKSRC}/configure .if ${PORT_OPTIONS:MDOXYGEN} post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR}/html ${INSTALL_DATA} ${WRKSRC}/html/* ${STAGEDIR}${DOCSDIR}/html .endif tests: build @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check) .include