aboutsummaryrefslogtreecommitdiffstats
path: root/www/encode-explorer/Makefile
blob: a68a82cd04ef5146229ba8bc7cb3f5460d8495fb (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
45
46
# New ports collection makefile for:    encode-explorer
# Date created:         Thu Apr 22 11:24:23 CEST 2010
# Whom:             Frank Wall <fw@moov.de>
#
# $FreeBSD$
#

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

MAINTAINER= fw@moov.de
COMMENT=    A PHP script to browse, create folders, upload files etc

USE_PHP=    yes
WANT_PHP_WEB=   yes

USE_ZIP=    yes
NO_BUILD=   yes

OPTIONS=    EXPERIMENTAL "Enable experimental features" off

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

.include <bsd.port.pre.mk>

.if defined(WITH_EXPERIMENTAL)
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-index-php-experimental
.endif

do-install:
    ${MKDIR} ${WWWDIR}
    ${INSTALL} ${WRKSRC}/index.php ${WWWDIR}

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${CP} ${WRKSRC}/README.txt ${DOCSDIR}
.endif

.include <bsd.port.post.mk>