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