svn commit: r332480 - head/misc/gkrellm-helium

Pawel Pekala pawel at FreeBSD.org
Sat Nov 2 13:27:05 UTC 2013


Author: pawel
Date: Sat Nov  2 13:27:04 2013
New Revision: 332480
URL: http://svnweb.freebsd.org/changeset/ports/332480

Log:
  - Update MASTER_SITES, WWW homepage
  - Use new LIB_DEPENDS format
  - Support staging
  
  PR:		ports/181055
  Submitted by:	KATO Tsuguru <tkato432 at yahoo.com>

Modified:
  head/misc/gkrellm-helium/Makefile
  head/misc/gkrellm-helium/pkg-descr   (contents, props changed)

Modified: head/misc/gkrellm-helium/Makefile
==============================================================================
--- head/misc/gkrellm-helium/Makefile	Sat Nov  2 13:11:21 2013	(r332479)
+++ head/misc/gkrellm-helium/Makefile	Sat Nov  2 13:27:04 2013	(r332480)
@@ -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 at 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>

Modified: head/misc/gkrellm-helium/pkg-descr
==============================================================================
--- head/misc/gkrellm-helium/pkg-descr	Sat Nov  2 13:11:21 2013	(r332479)
+++ head/misc/gkrellm-helium/pkg-descr	Sat Nov  2 13:27:04 2013	(r332480)
@@ -2,4 +2,4 @@ Tiny GKrellM plugin for reading temperat
 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


More information about the svn-ports-head mailing list