From 377e81b1030a0a9755cce27c10b7a365ba9e1c5c Mon Sep 17 00:00:00 2001 From: Pawel Pekala Date: Thu, 12 Jun 2014 22:44:25 +0000 Subject: [PATCH] Add staging support --- misc/gkx86info2/Makefile | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/misc/gkx86info2/Makefile b/misc/gkx86info2/Makefile index e0c0a7938923..940e868535d3 100644 --- a/misc/gkx86info2/Makefile +++ b/misc/gkx86info2/Makefile @@ -19,13 +19,10 @@ USES= pkgconfig USE_GNOME= gtk20 WRKSRC= ${WRKDIR}/gkx86info${PORTVERSION} - -NO_STAGE= yes +PLUGINDIR= ${STAGEDIR}${PREFIX}/libexec/gkrellm2/plugins OPTIONS_DEFINE= DOCS -.include - do-build: @cd ${WRKSRC} && eval ${CC} ${CFLAGS} -fPIC -o MHz.o -c MHz.c @cd ${WRKSRC} && eval ${CC} ${CFLAGS} -fPIC \ @@ -34,13 +31,9 @@ do-build: -o ${PORTNAME}.so MHz.o gkx86info.o do-install: - @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}.so \ - ${PREFIX}/libexec/gkrellm2/plugins/ - -post-install: -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - @${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR} -.endif + @${MKDIR} ${PLUGINDIR} + ${INSTALL_LIB} ${WRKSRC}/${PORTNAME}.so ${PLUGINDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} .include