PORTNAME=	encode
PORTVERSION=	6.3
CATEGORIES=	www
MASTER_SITES=	SF/${PORTNAME}${PKGNAMESUFFIX}/${PORTNAME}${PKGNAMESUFFIX}/${PORTNAME}${PKGNAMESUFFIX}_${PORTVERSION}
PKGNAMESUFFIX=	-explorer
DISTNAME=	${PORTNAME}${PKGNAMESUFFIX}_${PORTVERSION}

MAINTAINER=	fw@moov.de
COMMENT=	PHP script to browse, create folders, upload files etc
WWW=		https://sourceforge.net/projects/encode-explorer/

USES=		php:web zip
NO_BUILD=	yes

OPTIONS_DEFINE=	DOCS

WRKSRC=		${WRKDIR}/${DISTNAME}
WWWDIR=		${PREFIX}/www/${PORTNAME}${PKGNAMESUFFIX}
DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}

.include <bsd.port.options.mk>

do-install:
	${MKDIR} ${STAGEDIR}${WWWDIR}
	${INSTALL} ${WRKSRC}/index.php ${STAGEDIR}${WWWDIR}
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	${CP} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>
