1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Add staging support

- Respect CFLAGS
This commit is contained in:
Pawel Pekala 2014-06-12 22:42:39 +00:00
parent cb00e89e4a
commit 49bc989c46
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=357638

View File

@ -11,18 +11,23 @@ PKGNAMESUFFIX= 2
MAINTAINER= ports@FreeBSD.org
COMMENT= Screen locking and screen capture plugin for GKrellM 2
USES= pkgconfig
BUILD_DEPENDS= ${LOCALBASE}/include/gkrellm2/gkrellm.h:${PORTSDIR}/sysutils/gkrellm2
RUN_DEPENDS= gkrellm:${PORTSDIR}/sysutils/gkrellm2 \
import:${PORTSDIR}/graphics/ImageMagick
USES= pkgconfig
PLIST_FILES= libexec/gkrellm2/plugins/gkrellshoot.so
WRKSRC= ${WRKDIR}/gkrellShoot-${PORTVERSION}
ALL_TARGET= ${PORTNAME}.so
PLUGINDIR= ${STAGEDIR}${PREFIX}/libexec/gkrellm2/plugins
post-patch:
@${REINPLACE_CMD} '/^CFLAGS/ s|= |= ${CFLAGS} |' ${WRKSRC}/Makefile
NO_STAGE= yes
do-install:
@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.so ${PREFIX}/libexec/gkrellm2/plugins
@${MKDIR} ${PLUGINDIR}
${INSTALL_LIB} ${WRKSRC}/${PORTNAME}.so ${PLUGINDIR}
.include <bsd.port.mk>