aboutsummaryrefslogtreecommitdiffstats
path: root/misc/gkx86info2
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-06-13 06:44:25 +0800
committerpawel <pawel@FreeBSD.org>2014-06-13 06:44:25 +0800
commitdd31583d6308642c9d4ac3be5542bb40d9248d9c (patch)
treed9a6924820d9deb0a05937156dbb228e535963e3 /misc/gkx86info2
parent71a4bedf044a9172598013dd6d0a0ede2afdbce2 (diff)
downloadfreebsd-ports-gnome-dd31583d6308642c9d4ac3be5542bb40d9248d9c.tar.gz
freebsd-ports-gnome-dd31583d6308642c9d4ac3be5542bb40d9248d9c.tar.zst
freebsd-ports-gnome-dd31583d6308642c9d4ac3be5542bb40d9248d9c.zip
Add staging support
Diffstat (limited to 'misc/gkx86info2')
-rw-r--r--misc/gkx86info2/Makefile17
1 files 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 <bsd.port.options.mk>
-
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 <bsd.port.mk>