aboutsummaryrefslogtreecommitdiff
path: root/mail/roundcube-mobilecube/Makefile
blob: 436bb8a78328e545bd2419cadaa1f4fd05366cd5 (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
# New ports collection makefile for:	mobilecube
# Date created:				Wed 24 Mar 2010
# Whom:					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=	alexey@renatasystems.org
COMMENT=	Theme for RoundCube Web Mail

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

THEME_VERSION?=	3.1.0
THEME_BUILD?=	030110A

USE_ZIP=	yes
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
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>