aboutsummaryrefslogtreecommitdiffstats
path: root/misc/gkrellmlaunch2/Makefile
blob: 59a36f3ade0a59527e4b104af6e6d4d9b66e816e (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
34
35
36
# Created by: Zach Thompson <hideo@lastamericanempire.com>
# $FreeBSD$

PORTNAME=   gkrellmlaunch
PORTVERSION=    0.5
PORTREVISION=   8
CATEGORIES= misc
MASTER_SITES=   SF
PKGNAMESUFFIX=  2

MAINTAINER= ports@FreeBSD.org
COMMENT=    Application launcher plugin for GKrellM2

LICENSE=    GPLv2 # (or later)

BUILD_DEPENDS=  gkrellm2>0:${PORTSDIR}/sysutils/gkrellm2
RUN_DEPENDS=    gkrellm2>0:${PORTSDIR}/sysutils/gkrellm2

USES=       pkgconfig
ALL_TARGET= gkrellmlaunch.so

PLIST_FILES=    libexec/gkrellm2/plugins/gkrellmlaunch.so

post-patch:
    @${REINPLACE_CMD} -e \
        '/^FLAGS/s|-O[0-9]|| ; \
         /^FLAGS/s|-g|| ; \
         /^CC/s| =| +=| ; \
         /^CC/s|gcc||' ${WRKSRC}/Makefile

do-install:
    @${MKDIR} ${STAGEDIR}${PREFIX}/libexec/gkrellm2/plugins
    (cd ${WRKSRC} && ${INSTALL_LIB} gkrellmlaunch.so \
        ${STAGEDIR}${PREFIX}/libexec/gkrellm2/plugins)

.include <bsd.port.mk>