svn commit: r357613 - head/misc/gkrellmbgchg2

Pawel Pekala pawel at FreeBSD.org
Thu Jun 12 16:35:08 UTC 2014


Author: pawel
Date: Thu Jun 12 16:35:07 2014
New Revision: 357613
URL: http://svnweb.freebsd.org/changeset/ports/357613
QAT: https://qat.redports.org/buildarchive/r357613/

Log:
  - Add staging support
  - Use gmake as build dependency to eliminate do-build target

Modified:
  head/misc/gkrellmbgchg2/Makefile

Modified: head/misc/gkrellmbgchg2/Makefile
==============================================================================
--- head/misc/gkrellmbgchg2/Makefile	Thu Jun 12 16:32:03 2014	(r357612)
+++ head/misc/gkrellmbgchg2/Makefile	Thu Jun 12 16:35:07 2014	(r357613)
@@ -15,22 +15,15 @@ LICENSE=	GPLv2
 BUILD_DEPENDS=	${LOCALBASE}/include/gkrellm2/gkrellm.h:${PORTSDIR}/sysutils/gkrellm2
 RUN_DEPENDS=	gkrellm:${PORTSDIR}/sysutils/gkrellm2
 
-USES=		pkgconfig
+USES=		gmake pkgconfig
 USE_GNOME=	gtk20
 
 PLIST_FILES=	libexec/gkrellm2/plugins/gkrellmbgchg.so
 
-NO_STAGE=	yes
-.include <bsd.port.pre.mk>
-
-do-build:
-	cd ${BUILD_WRKSRC} && ${CC} -shared ${CFLAGS} -fPIC \
-		`pkg-config --cflags --libs gkrellm` gkrellmbgchg.c \
-		-o gkrellmbgchg.so
+PLUGINDIR=	${STAGEDIR}${PREFIX}/libexec/gkrellm2/plugins
 
 do-install:
-	@${MKDIR} ${PREFIX}/libexec/gkrellm2/plugins
-	${INSTALL_DATA} ${WRKSRC}/gkrellmbgchg.so \
-		${PREFIX}/libexec/gkrellm2/plugins
+	@${MKDIR} ${PLUGINDIR}
+	${INSTALL_LIB} ${WRKSRC}/gkrellmbgchg.so ${PLUGINDIR}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>


More information about the svn-ports-all mailing list