aboutsummaryrefslogtreecommitdiffstats
path: root/misc/gkrellweather2/Makefile
blob: 1df659f7de57d5d4337c2075898075652f0d50d8 (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
# New ports collection makefile for:    gkrellweather2
# Date Created:     24 Nov 2002
# Whom:         Jean-Yves Lefort <jylefort@brutele.be>
#
# $FreeBSD$
#

PORTNAME=   gkrellweather
PORTVERSION=    2.0.7
PORTREVISION=   1
CATEGORIES= misc
MASTER_SITES=   http://kmlinux.fjfi.cvut.cz/~makovick/gkrellm/
EXTRACT_SUFX=   .tgz

MAINTAINER= pav@FreeBSD.org
COMMENT=    GKrellWeather is a weather plugin for GKrellM

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

USE_GMAKE=  yes
USE_X_PREFIX=   yes
ALL_TARGET= gkrellweather.so

MAKE_ENV=   enable_nls=1 PTHREAD_LIBS=${PTHREAD_LIBS}

.include <bsd.port.pre.mk>

# uses C99 builtin lrintf
.if ${ARCH} != "amd64"
EXTRA_PATCHES=  ${FILESDIR}/extra-patch-lrintf
.endif

do-install:
    ${MKDIR} ${PREFIX}/libexec/gkrellm2/plugins
    ${INSTALL_DATA} ${WRKSRC}/gkrellweather.so ${PREFIX}/libexec/gkrellm2/plugins
    ${MKDIR} ${PREFIX}/share/locale/ru/
    ${INSTALL_DATA} ${WRKSRC}/po/ru.mo ${PREFIX}/share/locale/ru/LC_MESSAGES/gkrellweather.mo
    ${INSTALL_SCRIPT} ${WRKSRC}/GrabWeather ${PREFIX}/bin

.include <bsd.port.post.mk>