view prometheus-client-c-libprom/Makefile @ 7:19458de35e56

Move old libprom into prometheus-client-c-libprom/ directory. Also remove its .hgignore because there is a new common .hgignore now already.
author Franz Glasner <fzglas.hg@dom66.de>
date Wed, 19 Mar 2025 08:46:04 +0100
parents Makefile@c7761c5a5389
children
line wrap: on
line source

PORTNAME=	prometheus-client-c-libprom
DISTVERSION=	0.1.3
CATEGORIES=	net-mgmt

MAINTAINER=	freebsd-dev@dom66.de
COMMENT=	This is libprom -- the 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}

# Currently compilation errors on incompatible types with clang
USE_LDCONFIG=	yes

CMAKE_SOURCE_PATH=	${WRKSRC}/prom

do-install:
	(cd ${CMAKE_SOURCE_PATH}/include && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/include)
	${INSTALL_LIB} ${BUILD_WRKSRC}/libprom.so ${STAGEDIR}${PREFIX}/lib/libprom.so

.include <bsd.port.mk>