blob: 372f05fded829a0f2eb1144ca1023238e9b35e3a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Created by: Pav Lucistnik <pav@oook.cz>
# $FreeBSD$
PORTNAME= gkrellm-helium
PORTVERSION= 2.3.1
PORTREVISION= 11
CATEGORIES= misc
MASTER_SITES= https://sites.google.com/site/makovick/projects/
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= GKrellM plugin reading data from helium thermometer at Strahov, Prague
BUILD_DEPENDS= ${LOCALBASE}/include/gkrellm2/gkrellm.h:${PORTSDIR}/sysutils/gkrellm2
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
RUN_DEPENDS= gkrellm:${PORTSDIR}/sysutils/gkrellm2
USES= pkgconfig
PLIST_FILES= libexec/gkrellm2/plugins/helium.so
post-patch:
@${REINPLACE_CMD} -e \
's|/usr/local/lib/gkrellm2|${STAGEDIR}${PREFIX}/libexec/gkrellm2| ; \
/^CFLAGS/s| =.*| += -fPIC `pkg-config libcurl --cflags`| ; \
s|gcc |$$(CC) | ; \
s|-lcurl|`pkg-config libcurl --libs`|' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e \
's|ulong|u_long|' ${WRKSRC}/*.c
@${REINPLACE_CMD} -e \
'/<curl\/types.h>/d' ${WRKSRC}/http_net.c
.include <bsd.port.mk>
|