aboutsummaryrefslogtreecommitdiffstats
path: root/databases/phppgadmin/Makefile
blob: e55e48dcda37ea0624f7d237c6272996484e359a (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
# New ports collection makefile for: phpPgAdmin
# Date created:     19 Jan 2001
# Whom:         nbm
#
# $FreeBSD$
#

PORTNAME=   phppgadmin
PORTVERSION=    4.0.1
CATEGORIES= databases www
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME=   phpPgAdmin-${PORTVERSION}

MAINTAINER= dinoex@FreeBSD.org
COMMENT=    Web Based Postgres Administration

USE_BZIP2=  yes
.if !defined(WITHOUT_PHP_DEPENDS)
USE_PHP=    pgsql pcre session
.endif
NO_BUILD=   YES
PGADMDIR?=  www/data-dist/phpPgAdmin
PLIST_SUB+= PGADMDIR=${PGADMDIR}

do-configure:
    ${REINPLACE_CMD} -e "s|/usr/bin/pg|${LOCALBASE}/bin/pg|" \
        ${WRKSRC}/conf/config.inc.php-dist
    ${RM} -f ${WRKSRC}/conf/config.inc.php \
        ${WRKSRC}/conf/config.inc.php-dist.bak

do-install:
    ${MKDIR} ${PREFIX}/${PGADMDIR}
    ${CP} -Rp ${WRKSRC}/ ${PREFIX}/${PGADMDIR}/
    ${CP} -np ${PREFIX}/${PGADMDIR}/conf/config.inc.php-dist \
        ${PREFIX}/${PGADMDIR}/conf/config.inc.php

.include <bsd.port.mk>