diff options
author | Pawel Pekala <pawel@FreeBSD.org> | 2013-11-02 13:27:04 +0000 |
---|---|---|
committer | Pawel Pekala <pawel@FreeBSD.org> | 2013-11-02 13:27:04 +0000 |
commit | 019b5ca164881804d8c5f6f5293b96fe10fb5f4d (patch) | |
tree | 70bd7678bacd12ce6875d12139d85dad966d14db /misc/gkrellm-helium | |
parent | b554c4f8f5ff5e18ad8a546d027cea95cf792e1d (diff) |
Notes
Diffstat (limited to 'misc/gkrellm-helium')
-rw-r--r-- | misc/gkrellm-helium/Makefile | 24 | ||||
-rw-r--r-- | misc/gkrellm-helium/pkg-descr | 2 |
2 files changed, 15 insertions, 11 deletions
diff --git a/misc/gkrellm-helium/Makefile b/misc/gkrellm-helium/Makefile index 6b8cab5c1c7d..56efb2d865bd 100644 --- a/misc/gkrellm-helium/Makefile +++ b/misc/gkrellm-helium/Makefile @@ -5,27 +5,31 @@ PORTNAME= gkrellm-helium PORTVERSION= 2.3.1 PORTREVISION= 11 CATEGORIES= misc -MASTER_SITES= http://makovick.googlepages.com/ +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= curl:${PORTSDIR}/ftp/curl +LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl RUN_DEPENDS= gkrellm:${PORTSDIR}/sysutils/gkrellm2 +FETCH_ARGS= -Fpr + USES= pkgconfig -PLIST_FILES= libexec/gkrellm2/plugins/helium.so -CFLAGS+= -fPIC -I${LOCALBASE}/include -MAKE_ARGS= CFLAGS="${CFLAGS}" +PLIST_FILES= libexec/gkrellm2/plugins/helium.so -NO_STAGE= yes post-patch: - @${REINPLACE_CMD} -e 's|/usr/local/lib/gkrellm2/plugins|${PREFIX}/libexec/gkrellm2/plugins| ; \ - s|CFLAGS =|CFLAGS?=| ; s|-lcurl|-lcurl -L${LOCALBASE}/lib|' ${WRKSRC}/Makefile - @${REINPLACE_CMD} -e 's|ulong|u_long|' ${WRKSRC}/*.c - @${REINPLACE_CMD} -e '/<curl\/types.h>/d' ${WRKSRC}/http_net.c + @${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> diff --git a/misc/gkrellm-helium/pkg-descr b/misc/gkrellm-helium/pkg-descr index 55dce6f927af..af2307391e6e 100644 --- a/misc/gkrellm-helium/pkg-descr +++ b/misc/gkrellm-helium/pkg-descr @@ -2,4 +2,4 @@ Tiny GKrellM plugin for reading temperature data from the helium thermometer at Strahov, Prague, Czech republic. Great for all Prague citizens. Probably useless for anybody else, sorry folks. -WWW: http://makovick.googlepages.com/gkrellmplugins +WWW: https://sites.google.com/site/makovick/gkrellm-plugins |