summaryrefslogtreecommitdiffstats
path: root/www/punbb/Makefile
blob: 5a0ca97ae3d56387f1d5d29864fd79db94442185 (plain)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# New ports collection makefile for:	punbb
# Date created:		2006-08-05
# Whom:			Gea-Suan Lin <gslin@gslin.org>
#
# $FreeBSD$
#

PORTNAME=	punbb
PORTVERSION=	1.2.12
PORTREVISION=	1
CATEGORIES=	www
MASTER_SITES=	http://www.punbb.org/download/ \
		http://punbb.pxtek.com/ \
		http://punbb.nhost.co.uk/ \
		http://mirror.ordo.dk/punbb.org/ \
		http://punbb.mirrors.typhon.net/ \
		http://punbb.4any.org/
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} \
		${LANGFILES}
EXTRACT_ONLY=	# none

MAINTAINER=	gslin@gslin.org
COMMENT=	A fast and lightweight PHP-powered discussion board

BROKEN=		Checksum mismatch

NO_BUILD=	yes
PUNBBDIR?=	${TARGETDIR}/www/punbb
USE_PHP=	yes
USE_ZIP=	yes
BUILD_DEPENDS+=	unzip:${PORTSDIR}/archivers/unzip

OPTIONS=	LANGUAGE_PACK "Install language packs" on

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_LANGUAGE_PACK)
LANGFILES+=	lang_packs-1.2/Arabic.zip \
		lang_packs-1.2/Bosnian.zip \
		lang_packs-1.2/Brazilian_Portuguese.zip \
		lang_packs-1.2/Bulgarian.zip \
		lang_packs-1.2/Bulgarian_UTF8.zip \
		lang_packs-1.2/Catalan.zip \
		lang_packs-1.2/Czech.zip \
		lang_packs-1.2/Danish.zip \
		lang_packs-1.2/Dutch.zip \
		lang_packs-1.2/Estonian.zip \
		lang_packs-1.2/Farsi.zip \
		lang_packs-1.2/Finnish.zip \
		lang_packs-1.2/French.zip \
		lang_packs-1.2/German.zip \
		lang_packs-1.2/Greek.zip \
		lang_packs-1.2/Hebrew.zip \
		lang_packs-1.2/Hrvatski.zip \
		lang_packs-1.2/Hungarian.zip \
		lang_packs-1.2/Icelandic.zip \
		lang_packs-1.2/Indonesian.zip \
		lang_packs-1.2/Italian.zip \
		lang_packs-1.2/Japanese.zip \
		lang_packs-1.2/Korean.zip \
		lang_packs-1.2/Kurdish.zip \
		lang_packs-1.2/Latvian.zip \
		lang_packs-1.2/Lithuanian.zip \
		lang_packs-1.2/Norwegian.zip \
		lang_packs-1.2/Polish.zip \
		lang_packs-1.2/Portuguese.zip \
		lang_packs-1.2/Romanian.zip \
		lang_packs-1.2/Russian.zip \
		lang_packs-1.2/Serbian.zip \
		lang_packs-1.2/Simplified_Chinese.zip \
		lang_packs-1.2/Slovak.zip \
		lang_packs-1.2/Slovenian.zip \
		lang_packs-1.2/Spanish.zip \
		lang_packs-1.2/Swedish.zip \
		lang_packs-1.2/Traditional_Chinese.zip \
		lang_packs-1.2/Turkish.zip \
		lang_packs-1.2/Ukrainian.zip \
		lang_packs-1.2/Vietnamese.zip
PLIST_SUB+=	LANGUAGE_PACK=""
.else
PLIST_SUB+=	LANGUAGE_PACK="@comment "
.endif

do-install:
	${MKDIR} ${PUNBBDIR}
	${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \
		${DISTDIR}/punbb-${DISTVERSION}.zip -d ${PUNBBDIR}
.for i in ${LANGFILES}
	${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${i} -d \
		${PUNBBDIR}/upload/lang
.endfor
	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PUNBBDIR}

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud