Mercurial > hgrepos > FreeBSD > ports > net-mgmt > prometheus-client-c
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile Tue Mar 18 18:17:59 2025 +0100 @@ -0,0 +1,32 @@ +PORTNAME= prometheus-client-c-libpromhttp +DISTVERSION= 0.1.3 +CATEGORIES= net-mgmt + +MAINTAINER= freebsd-dev@dom66.de +COMMENT= This is libpromhttp -- a C-client library for Prometheus +WWW= https://github.com/digitalocean/prometheus-client-c + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= cmake:noninja compiler:c11 + +USE_GITHUB= yes +GH_ACCOUNT= digitalocean +GH_PROJECT= prometheus-client-c +GH_TAGNAME= v${DISTVERSION} + +LIB_DEPENDS= libprom.so:net-mgmt/prometheus-client-c-libprom \ + libmicrohttpd.so:www/libmicrohttpd + +# Currently compilation errors on incompatible types with clang +USE_GCC= yes +USE_LDCONFIG= yes + +CMAKE_SOURCE_PATH= ${WRKSRC}/promhttp + +do-install: + (cd ${CMAKE_SOURCE_PATH}/include && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/include) + ${INSTALL_LIB} ${BUILD_WRKSRC}/libpromhttp.so ${STAGEDIR}${PREFIX}/lib/libpromhttp.so + +.include <bsd.port.mk>
