Bug 185349 - misc/gkrellmlaunch2: Support CC properly
Summary: misc/gkrellmlaunch2: Support CC properly
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-30 21:10 UTC by tkato432
Modified: 2014-01-25 17:10 UTC (History)
0 users

See Also:


Attachments
file.diff (1.17 KB, patch)
2013-12-30 21:10 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2013-12-30 21:10:12 UTC
- Support CC properly
Comment 1 Martin Wilke freebsd_committer freebsd_triage 2014-01-23 15:48:24 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

I'll take it.
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2014-01-25 17:00:17 UTC
State Changed
From-To: open->closed

- Committed
Comment 3 dfilter service freebsd_committer freebsd_triage 2014-01-25 17:00:22 UTC
Author: miwi
Date: Sat Jan 25 17:00:15 2014
New Revision: 341060
URL: http://svnweb.freebsd.org/changeset/ports/341060
QAT: https://qat.redports.org/buildarchive/r341060/

Log:
  - Support CC properly
  - Stage support
  - Add License
  
  PR:		185349
  Submitted by:	Ports Fury

Modified:
  head/misc/gkrellmlaunch2/Makefile

Modified: head/misc/gkrellmlaunch2/Makefile
==============================================================================
--- head/misc/gkrellmlaunch2/Makefile	Sat Jan 25 16:58:46 2014	(r341059)
+++ head/misc/gkrellmlaunch2/Makefile	Sat Jan 25 17:00:15 2014	(r341060)
@@ -11,15 +11,26 @@ PKGNAMESUFFIX=	2
 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>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"