aboutsummaryrefslogtreecommitdiff
path: root/www/phpmyfaq/Makefile
blob: 55ea4ffc7c74137ec5f9122b15222b829df515e7 (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
PORTNAME=	phpmyfaq
PORTVERSION=	3.1.4
CATEGORIES=	www
MASTER_SITES=	https://download.phpmyfaq.de/files/

MAINTAINER=	flo@FreeBSD.org
COMMENT=	Multilingual, completely database-driven FAQ-system
WWW=		https://www.phpmyfaq.de/

LICENSE=	MPL20

WRKSRC=		${WRKDIR}/${PORTNAME}

USES=		cpe php:web
USE_PHP=	filter json mysqli pcre session xml xmlrpc xmlwriter zlib
FAQ_DIR=	attachments data images inc pdf xml
NO_BUILD=	YES
NO_ARCH=	YES

do-install:
	@${MKDIR} ${STAGEDIR}${WWWDIR}
	@cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${WWWDIR}
.for i in ${FAQ_DIR}
	@${MKDIR} ${STAGEDIR}${WWWDIR}/${i}
.endfor

.include <bsd.port.pre.mk>

.if ${PHP_VER} < 80
USE_PHP+=	pdf
.endif

.include <bsd.port.post.mk>