summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2014-01-25 17:00:15 +0000
committermiwi <miwi@FreeBSD.org>2014-01-25 17:00:15 +0000
commit8d477e10ca25ac388a358a8bbe9ac10256335eaa (patch)
tree687273e06490d9a839c82d34779dbc16addd50fd
parentce13e21c5c5cc336c2c4e730855ba8e943c0a078 (diff)
downloadFreeBSD-ports-8d477e10ca25ac388a358a8bbe9ac10256335eaa.zip
FreeBSD-ports-8d477e10ca25ac388a358a8bbe9ac10256335eaa.tar.gz
- Support CC properly
- Stage support - Add License PR: 185349 Submitted by: Ports Fury
-rw-r--r--misc/gkrellmlaunch2/Makefile21
1 files changed, 16 insertions, 5 deletions
diff --git a/misc/gkrellmlaunch2/Makefile b/misc/gkrellmlaunch2/Makefile
index ffb6032..59a36f3 100644
--- a/misc/gkrellmlaunch2/Makefile
+++ b/misc/gkrellmlaunch2/Makefile
@@ -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>
OpenPOWER on IntegriCloud