aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/superkaramba-lwp/Makefile
blob: f3056c42658716a2f89ba1ed23d5e72133e5aa40 (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
48
49
50
51
# New ports collection makefile for:    superkaramba-lwp
# Date created:             Sun, May 28, 2006
# Whom:                 Jason E. Hale <bsdkaffee@gmail.com>
#
# $FreeBSD$

PORTNAME=       lwp
PORTVERSION=        12.3
CATEGORIES=     deskutils kde
MASTER_SITES=       http://www.message.co.nz/~matt-sarah/ \
            http://mirror1.liquidweather.net/ \
            http://mirrors.borgnet.us/matt-lw/ \
            http://liquidweather.net/
PKGNAMEPREFIX=      superkaramba-
EXTRACT_SUFX=       .skz

MAINTAINER=     bsdkaffee@gmail.com
COMMENT=        Liquid Weather ++ a Superkaramba weather applet

EXTRACT_DEPENDS=    unzip:${PORTSDIR}/archivers/unzip
BUILD_DEPENDS=      zip:${PORTSDIR}/archivers/zip
RUN_DEPENDS=        convert:${PORTSDIR}/graphics/ImageMagick \
            superkaramba:${PORTSDIR}/misc/kdeutils3 \
            pyuic:${PORTSDIR}/x11-toolkits/py-qt

WRKSRC=         ${WRKDIR}/${DISTNAME}

EXTRACT_CMD=        ${UNZIP_CMD}
EXTRACT_BEFORE_ARGS=    -q -d ${DISTNAME}
EXTRACT_AFTER_ARGS= # empty

NO_BUILD=       yes

PLIST_SUB=      LWPVER=${DISTFILES}

.include <bsd.port.pre.mk>

post-extract:
    @cd ${WRKSRC} && ${RM} -f *~ locale/*/LC_MESSAGES/*.po*
    @cd ${WRKSRC} && ${REINPLACE_CMD} -e 's|/usr/bin|${LOCALBASE}/bin|' \
        create_po.py debug.py test_gui.py

pre-install:
    @cd ${WRKSRC} && zip -qr ${DISTFILES} *

do-install:
    @${MKDIR} ${PREFIX}/share/apps/superkaramba/themes
    @cd ${WRKSRC} && ${INSTALL_DATA} ${DISTFILES} \
        ${PREFIX}/share/apps/superkaramba/themes

.include <bsd.port.post.mk>