1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

Add staging support

This commit is contained in:
Pawel Pekala 2014-06-12 22:44:25 +00:00
parent 49bc989c46
commit 377e81b103
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=357639

View File

@ -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>