View | Details | Raw Unified | Return to bug 181055 | Differences between
and this patch

Collapse All | Expand All

(-)misc/gkrellm-helium/Makefile (-10 / +15 lines)
Lines 3-11 Link Here
3
3
4
PORTNAME=	gkrellm-helium
4
PORTNAME=	gkrellm-helium
5
PORTVERSION=	2.3.1
5
PORTVERSION=	2.3.1
6
PORTREVISION=	11
6
PORTREVISION=	12
7
CATEGORIES=	misc
7
CATEGORIES=	misc
8
MASTER_SITES=	http://makovick.googlepages.com/
8
MASTER_SITES=	https://sites.google.com/site/makovick/projects/
9
EXTRACT_SUFX=	.tgz
9
EXTRACT_SUFX=	.tgz
10
10
11
MAINTAINER=	ports@FreeBSD.org
11
MAINTAINER=	ports@FreeBSD.org
Lines 15-30 Link Here
15
LIB_DEPENDS=	curl:${PORTSDIR}/ftp/curl
15
LIB_DEPENDS=	curl:${PORTSDIR}/ftp/curl
16
RUN_DEPENDS=	gkrellm:${PORTSDIR}/sysutils/gkrellm2
16
RUN_DEPENDS=	gkrellm:${PORTSDIR}/sysutils/gkrellm2
17
17
18
USES=		pkgconfig
18
FETCH_ARGS=	-Fpr
19
PLIST_FILES=	libexec/gkrellm2/plugins/helium.so
19
20
USES=		pkgcnfig
20
21
21
CFLAGS+=	-fPIC -I${LOCALBASE}/include
22
PLIST_FILES=	libexec/gkrellm2/plugins/helium.so
22
MAKE_ARGS=	CFLAGS="${CFLAGS}"
23
23
24
post-patch:
24
post-patch:
25
	@${REINPLACE_CMD} -e 's|/usr/local/lib/gkrellm2/plugins|${PREFIX}/libexec/gkrellm2/plugins| ; \
25
	@${REINPLACE_CMD} -e \
26
		s|CFLAGS =|CFLAGS?=| ; s|-lcurl|-lcurl -L${LOCALBASE}/lib|' ${WRKSRC}/Makefile
26
		's|/usr/local/lib/gkrellm2|${PREFIX}/libexec/gkrellm2| ; \
27
	@${REINPLACE_CMD} -e 's|ulong|u_long|' ${WRKSRC}/*.c
27
		 /^CFLAGS/s| =.*| += -fPIC `pkg-config libcurl --cflags`| ; \
28
	@${REINPLACE_CMD} -e '/<curl\/types.h>/d' ${WRKSRC}/http_net.c
28
		 s|gcc |$$(CC) | ; \
29
		 s|-lcurl|`pkg-config libcurl --libs`|' ${WRKSRC}/Makefile
30
	@${REINPLACE_CMD} -e \
31
		's|ulong|u_long|' ${WRKSRC}/*.c
32
	@${REINPLACE_CMD} -e \
33
		'/<curl\/types.h>/d' ${WRKSRC}/http_net.c
29
34
30
.include <bsd.port.mk>
35
.include <bsd.port.mk>
(-)misc/gkrellm-helium/pkg-descr (-1 / +1 lines)
Lines 2-5 Link Here
2
at Strahov, Prague, Czech republic. Great for all Prague citizens. Probably
2
at Strahov, Prague, Czech republic. Great for all Prague citizens. Probably
3
useless for anybody else, sorry folks.
3
useless for anybody else, sorry folks.
4
4
5
WWW: http://makovick.googlepages.com/gkrellmplugins
5
WWW: https://sites.google.com/site/makovick/gkrellm-plugins

Return to bug 181055