aboutsummaryrefslogtreecommitdiffstats
path: root/astro/gkrellmseti/Makefile
blob: 98bef9013e4dfd2904452d75cfaf91884d6b596c (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
37
38
39
40
41
42
43
44
45
46
47
# New ports collection makefile for:    gkrellmseti
# Date created:     Sat Oct 13 01:27:47 BRT 2001
# Whom:         Hammurabi Mendes <hmendes@brturbo.com> et al
#
# $FreeBSD$
#

PORTNAME=   seti
PORTVERSION=    0.7.0
PORTREVISION=   1
CATEGORIES= astro
MASTER_SITES=   http://xavier.serpaggi.free.fr/seti/
PKGNAMEPREFIX=  gkrellm
DISTNAME=   ${PORTNAME}-${PORTVERSION}b

MAINTAINER= hmendes@brturbo.com
COMMENT=    A SETI@home plugin for GKrellM

BUILD_DEPENDS=  ${X11BASE}/include/gkrellm/gkrellm.h:${PORTSDIR}/sysutils/gkrellm
RUN_DEPENDS=    gkrellm:${PORTSDIR}/sysutils/gkrellm

USE_BZIP2=  yes
USE_REINPLACE=  yes
USE_X_PREFIX=   yes
USE_GNOME=  imlib
USE_XPM=    yes

DOC_FILES=  AUTHORS README TODO

post-patch:
    @${REINPLACE_CMD} -e "s|gtk-config|${GTK_CONFIG}|; s|imlib-config|${IMLIB_CONFIG}|; \
        s|DBGFLAGS= -O3||; s|gcc|${CC}|; s|CFLAGS=|CFLAGS+=|; \
        s|LDFLAGS=|LDFLAGS+=|; s|/usr/X11R6|${PREFIX}|" \
        ${WRKSRC}/Makefile
    @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|" ${WRKSRC}/seti.c

do-install:
    @${INSTALL_PROGRAM} ${WRKSRC}/seti.so \
        ${PREFIX}/libexec/gkrellm/plugins
.ifndef(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for file in ${DOC_FILES}
    @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>