Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Dec 2013 05:48:02 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/185349: misc/gkrellmlaunch2: Support CC properly
Message-ID:  <20131231054802.e3a6cfd5ce5a34d75a1322be@yahoo.com>
Resent-Message-ID: <201312302110.rBULACg0098955@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         185349
>Category:       ports
>Synopsis:       misc/gkrellmlaunch2: Support CC properly
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 30 21:10:12 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE-p4 i386
>Organization:
>Environment:
>Description:
- Support CC properly

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/misc/gkrellmlaunch2/Makefile misc/gkrellmlaunch2/Makefile
--- /usr/ports/misc/gkrellmlaunch2/Makefile	2013-11-06 21:59:51.000000000 +0900
+++ misc/gkrellmlaunch2/Makefile	2013-12-31 00:00:00.000000000 +0900
@@ -11,15 +11,26 @@
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Application launcher plugin for GKrellM2
 
-BUILD_DEPENDS=	${LOCALBASE}/include/gkrellm2/gkrellm.h:${PORTSDIR}/sysutils/gkrellm2
-RUN_DEPENDS=	gkrellm:${PORTSDIR}/sysutils/gkrellm2
+LICENSE=	GPLv2 # (or later)
+
+BUILD_DEPENDS=	gkrellm2>0:${PORTSDIR}/sysutils/gkrellm2
+RUN_DEPENDS=	gkrellm2>0:${PORTSDIR}/sysutils/gkrellm2
 
 USES=		pkgconfig
+ALL_TARGET=	gkrellmlaunch.so
+
 PLIST_FILES=	libexec/gkrellm2/plugins/gkrellmlaunch.so
-ALL_TARGET=	${PORTNAME}.so
 
-NO_STAGE=	yes
+post-patch:
+	@${REINPLACE_CMD} -e \
+		'/^FLAGS/s|-O[0-9]|| ; \
+		 /^FLAGS/s|-g|| ; \
+		 /^CC/s| =| +=| ; \
+		 /^CC/s|gcc||' ${WRKSRC}/Makefile
+
 do-install:
-	${INSTALL_DATA} ${WRKSRC}/gkrellmlaunch.so ${PREFIX}/libexec/gkrellm2/plugins
+	@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/gkrellm2/plugins
+	(cd ${WRKSRC} && ${INSTALL_LIB} gkrellmlaunch.so \
+		${STAGEDIR}${PREFIX}/libexec/gkrellm2/plugins)
 
 .include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131231054802.e3a6cfd5ce5a34d75a1322be>