33865d3e2f
protobuf-c (1.1.0) [ Robert Edmonds ] * Release 1.1.0. [ Ilya Lipnitskiy ] * Fix a bug when merging optional byte fields. * Documentation updates. * Implement oneof support (Issue #174). Protobuf 2.6.0 or newer is now required to build protobuf-c. * Print leading comments for enum, message, and field definitions into generated header files (Issue #175). Github does not speak http (only https), so mirror the distfile on LOCAL (suggested by mat@). Use PORTDOCS=* instead of listing DOXYGEN generated files in pkg-plist. Use options helpers instead of .if (suggested by mat@). Differential Revision: https://reviews.freebsd.org/D1448 Approved by: mat (mentor) Sponsored by: Farsight Security, Inc.
49 lines
1.2 KiB
Makefile
49 lines
1.2 KiB
Makefile
# Created by: Aaron Hurt <ahurt@anbcs.com>
|
|
# $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 <bsd.port.options.mk>
|
|
|
|
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 <bsd.port.mk>
|