aboutsummaryrefslogtreecommitdiffstats
path: root/www/phpmp/Makefile
blob: 364c2f9ac8243c5f30cd7a997579579fc7009eda (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
# New ports collection makefile for:    phpmp
# Date created:     2007-02-27
# Whom:         Kevin Lo <kevlo@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   phpmp
PORTVERSION=    0.12.0
CATEGORIES= www
MASTER_SITES=   http://www.bayofrum.net/dist/${PORTNAME}/

MAINTAINER= kevlo@FreeBSD.org
COMMENT=    A web interface for music player daemon

LICENSE=    GPLv2

NO_BUILD=   YES
USE_PHP=    pcre sockets

PHPMP?=     ${WWWDIR_REL}
PLIST_SUB+= PHPMP=${PHPMP}

do-install:
    @${MKDIR} ${PREFIX}/${PHPMP}
    @${CP} -R ${WRKSRC}/ ${PREFIX}/${PHPMP}
    @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${PHPMP}
    @${CHMOD} -R 755 ${PREFIX}/${PHPMP}

post-install:
    @${CAT} ${PKGMESSAGE}
    @if [ ! -f ${PREFIX}/${PHPMP}/config.php ]; then \
        ${CP} -p ${PREFIX}/${PHPMP}/config.php.sample \
            ${PREFIX}/${PHPMP}/config.php ; \
    fi

.include <bsd.port.mk>