Mercurial > hgrepos > FreeBSD > ports > net-mgmt > prometheus-client-c
comparison Makefile @ 9:4746e1c5cb56
Build of libpromhttp for version 0.1.3.
It needs the separate prometheus-client-c-libpromhttp and libmicrohttpd
packages.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Tue, 18 Mar 2025 18:17:59 +0100 |
| parents | |
| children | 40cf179a620e |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 9:4746e1c5cb56 |
|---|---|
| 1 PORTNAME= prometheus-client-c-libpromhttp | |
| 2 DISTVERSION= 0.1.3 | |
| 3 CATEGORIES= net-mgmt | |
| 4 | |
| 5 MAINTAINER= freebsd-dev@dom66.de | |
| 6 COMMENT= This is libpromhttp -- a C-client library for Prometheus | |
| 7 WWW= https://github.com/digitalocean/prometheus-client-c | |
| 8 | |
| 9 LICENSE= APACHE20 | |
| 10 LICENSE_FILE= ${WRKSRC}/LICENSE | |
| 11 | |
| 12 USES= cmake:noninja compiler:c11 | |
| 13 | |
| 14 USE_GITHUB= yes | |
| 15 GH_ACCOUNT= digitalocean | |
| 16 GH_PROJECT= prometheus-client-c | |
| 17 GH_TAGNAME= v${DISTVERSION} | |
| 18 | |
| 19 LIB_DEPENDS= libprom.so:net-mgmt/prometheus-client-c-libprom \ | |
| 20 libmicrohttpd.so:www/libmicrohttpd | |
| 21 | |
| 22 # Currently compilation errors on incompatible types with clang | |
| 23 USE_GCC= yes | |
| 24 USE_LDCONFIG= yes | |
| 25 | |
| 26 CMAKE_SOURCE_PATH= ${WRKSRC}/promhttp | |
| 27 | |
| 28 do-install: | |
| 29 (cd ${CMAKE_SOURCE_PATH}/include && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/include) | |
| 30 ${INSTALL_LIB} ${BUILD_WRKSRC}/libpromhttp.so ${STAGEDIR}${PREFIX}/lib/libpromhttp.so | |
| 31 | |
| 32 .include <bsd.port.mk> |
