aboutsummaryrefslogtreecommitdiffstats
path: root/mail/squirrelmail-translations/Makefile
blob: 5fa33bfec78b76d8a9821ac92a802f9de107b631 (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
# Created by: Adam Weinberger <adamw@FreeBSD.org>
# $FreeBSD$

PORTNAME=       squirrelmail-translations
PORTVERSION=    20131229
CATEGORIES=     mail www
MASTER_SITES=   ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= adamw/squirrelmail
DISTNAME=       squirrelmail-${PORTVERSION}_0200-SVN.locales
DIST_SUBDIR=    squirrelmail

MAINTAINER=     adamw@FreeBSD.org
COMMENT=        NLS translations for Squirrelmail (mail/squirrelmail)

LICENSE=        GPLv2

RUN_DEPENDS=    ${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail

USE_BZIP2=      yes

WRKSRC=         ${WRKDIR}/squirrelmail.locales

# if you were using WITHOUT_WWWDIR, use SQUIRRELDIR=${PREFIX}/squirrelmail
SQUIRRELDIR?=   ${PREFIX}/www/squirrelmail
PLIST_SUB=      SQUIRRELDIR="${SQUIRRELDIR:S,^${PREFIX}/,,}"

do-build:
# The en_US help files are included with the main tarball
    @${RM} -r ${WRKSRC}/help/en_US

do-install:
    ${MKDIR} ${STAGEDIR}${SQUIRRELDIR}
.for DIR in help images locale
    cd ${WRKSRC} && ${FIND} ${DIR} | ${CPIO} -pdmu --quiet ${STAGEDIR}${SQUIRRELDIR}
.endfor

.include <bsd.port.mk>