aboutsummaryrefslogtreecommitdiffstats
path: root/misc/gkrellshoot2/Makefile
blob: d87fa8f8724f9800b9b5950113cf57099a1e415f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Created by: Andrew Stuart <elitetek@tekrealm.net>
# $FreeBSD$

PORTNAME=   gkrellshoot
PORTVERSION=    0.4.4
PORTREVISION=   8
CATEGORIES= misc
MASTER_SITES=   SF/${PORTNAME}/GkrellM2.0%20Port/${PORTVERSION}
PKGNAMESUFFIX=  2

MAINTAINER= ports@FreeBSD.org
COMMENT=    Screen locking and screen capture plugin for GKrellM 2

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

do-install:
    @${MKDIR} ${PLUGINDIR}
    ${INSTALL_LIB} ${WRKSRC}/${PORTNAME}.so ${PLUGINDIR}

.include <bsd.port.mk>