aboutsummaryrefslogtreecommitdiffstats
path: root/mail/roundcube-mobilecube/Makefile
blob: 967be11d2a3ea7310d40003807d1a0e41f19ceaa (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
# Created by: Alexey V. Degtyarev <alexey@renatasystems.org>
# $FreeBSD$

PORTNAME=   mobilecube
PORTVERSION=    ${THEME_VERSION}.${THEME_BUILD}
CATEGORIES= mail
MASTER_SITES=   SF/${PORTNAME}/${THEME_VERSION}%20Beta/Build%20%23${THEME_BUILD}/
PKGNAMEPREFIX=  roundcube-
DISTNAME=   MobileCubeBeta%23${THEME_BUILD}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Theme for RoundCube Web Mail

RUN_DEPENDS=    roundcube>=0.3:${PORTSDIR}/mail/roundcube

THEME_VERSION?= 3.1.0
THEME_BUILD?=   030110A

USES=       zip
NO_BUILD=   yes

WRKSRC=     ${WRKDIR}/MobileCubeBeta\#${THEME_BUILD}
WWWDIR?=    ${PREFIX}/www/roundcube/skins/MobileCube

# This target is only meant to be used by the port maintainer.
x-generate-plist: build
    cd ${WRKSRC}/MobileCube; \
    ${FIND} . ! -type d ! -name '*.orig' | ${SORT} | \
        ${SED} -e "s,^\.,%%WWWDIR%%," >${.CURDIR}/pkg-plist.tmp ; \
    ${FIND} . -type d | ${SORT} -r | ${SED} \
        -e "s,^\.$$,@dirrmtry %%WWWDIR%%," \
        -e "s,^\.,@dirrm %%WWWDIR%%," >>${.CURDIR}/pkg-plist.tmp
NO_STAGE=   yes
post-patch:
    ${FIND} ${WRKSRC} -type f -name '*.orig' -or -name '.DS_Store' -delete

do-install:
    ${MKDIR} ${WWWDIR}
    cd ${WRKSRC}/MobileCube && ${PAX} -r -w . ${WWWDIR}

.include <bsd.port.mk>