Mercurial > hgrepos > FreeBSD > ports > net > turnserver
comparison Makefile @ 49:e4f5fd3b2975
Allow proper build if the PROMETHEUS option is enabled.
We now have a package for libprom.so in net-mgmt/prometheus-client-c-libprom.
It is not yet enabled by default.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Tue, 18 Mar 2025 19:09:31 +0100 |
| parents | 72de9aba5808 |
| children | 13ad33e959c3 |
comparison
equal
deleted
inserted
replaced
| 48:3dff81855b9a | 49:e4f5fd3b2975 |
|---|---|
| 119 | 119 |
| 120 SQLITE_USES= sqlite | 120 SQLITE_USES= sqlite |
| 121 SQLITE_CONFIGURE_ENV_OFF= TURN_NO_SQLITE=1 | 121 SQLITE_CONFIGURE_ENV_OFF= TURN_NO_SQLITE=1 |
| 122 | 122 |
| 123 PROMETHEUS_DESC= Prometheus monitoring and alerting support | 123 PROMETHEUS_DESC= Prometheus monitoring and alerting support |
| 124 # | |
| 124 # We need a Prometheus C client to be linked with (-lprom) | 125 # We need a Prometheus C client to be linked with (-lprom) |
| 125 # e.g https://github.com/digitalocean/prometheus-client-c | 126 # e.g https://github.com/digitalocean/prometheus-client-c |
| 126 # If enabled it will be automatically disabled again at configure time. | 127 # libpromhttp ist not needed: equivalent code is already included. |
| 128 # | |
| 129 PROMETHEUS_LIB_DEPENDS= libprom.so:net-mgmt/prometheus-client-c-libprom \ | |
| 130 libmicrohttpd.so:www/libmicrohttpd | |
| 127 PROMETHEUS_CONFIGURE_ENV_OFF= TURN_NO_PROMETHEUS=1 | 131 PROMETHEUS_CONFIGURE_ENV_OFF= TURN_NO_PROMETHEUS=1 |
| 128 | 132 |
| 129 do-install: | 133 do-install: |
| 130 ${INSTALL_PROGRAM} ${WRKSRC}/bin/turnserver ${STAGEDIR}${PREFIX}/bin/turnserver | 134 ${INSTALL_PROGRAM} ${WRKSRC}/bin/turnserver ${STAGEDIR}${PREFIX}/bin/turnserver |
| 131 ${INSTALL_PROGRAM} ${WRKSRC}/bin/turnadmin ${STAGEDIR}${PREFIX}/bin/turnadmin | 135 ${INSTALL_PROGRAM} ${WRKSRC}/bin/turnadmin ${STAGEDIR}${PREFIX}/bin/turnadmin |
