1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/www/carbonapi/Makefile
Tobias Kortkamp 3726f94254 Convert all Go ports to USES=go
This allows for port testing with lang/go-devel via GO_PORT, setting
up the Go build environment in a single place, and is step one in
simplifying Go ports that often define too complicated do-build
targets themselves.

USES=go gains new arguments 'run' to add lang/go to RUN_DEPENDS and
'no_targets' for ports with composite builds that call 'go' themselves
and do not need the do-build/do-install targets of USES=go.

PR:		238849
Submitted by:	dg@syrec.org (also D20745)
Reviewed by:	mat, tobik
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D20746
2019-06-29 03:51:13 +00:00

46 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= carbonapi
DISTVERSION= 0.11.0
CATEGORIES= www
MAINTAINER= a.andersson.thn@gmail.com
COMMENT= Go implementation of carbonapi
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= gmake go
USE_GITHUB= yes
GH_ACCOUNT= go-graphite
GH_SUBDIR= src/github.com/${GH_ACCOUNT}/${PORTNAME}
USE_RC_SUBR= ${PORTNAME}
USERS= carbon
GROUPS= carbon
OPTIONS_DEFINE= CAIRO
CAIRO_USES= pkgconfig
CAIRO_VARS= CARBON_API_ARGS=${PORTNAME}
CAIRO_VARS_OFF= CARBON_API_ARGS=nocairo
CAIRO_LIB_DEPENDS= libcairo.so:graphics/cairo
do-build:
@cd ${WRKSRC}/${GH_SUBDIR} && \
${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} VERSION=${DISTVERSION} \
${MAKE_CMD} ${CARBON_API_ARGS}
do-install:
@${MKDIR} ${STAGEDIR}/${PREFIX}/etc/carbonapi
@${MKDIR} ${STAGEDIR}/var/log/carbonapi
${INSTALL_PROGRAM} ${WRKSRC}/carbonapi ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/carbonapi.example.toml ${STAGEDIR}${PREFIX}/etc/carbonapi
${INSTALL_DATA} ${WRKSRC}/carbonapi.example.yaml ${STAGEDIR}${PREFIX}/etc/carbonapi
${INSTALL_DATA} ${WRKSRC}/graphiteWeb.example.yaml ${STAGEDIR}${PREFIX}/etc/carbonapi
${INSTALL_DATA} ${WRKSRC}/graphTemplates.example.toml ${STAGEDIR}${PREFIX}/etc/carbonapi
${INSTALL_DATA} ${WRKSRC}/graphTemplates.example.yaml ${STAGEDIR}${PREFIX}/etc/carbonapi
.include <bsd.port.mk>