freebsd-ports/databases/phppgadmin/Makefile

40 lines
996 B
Makefile
Raw Normal View History

2013-01-26 17:34:39 +01:00
# Created by: nbm
# $FreeBSD$
PORTNAME= phppgadmin
2013-04-17 21:35:23 +02:00
PORTVERSION= 5.1
CATEGORIES= databases www
2013-04-17 21:35:23 +02:00
MASTER_SITES= SF/${PORTNAME}/phpPgAdmin%20%5Bstable%5D/phpPgAdmin-5.1
DISTNAME= phpPgAdmin-${PORTVERSION}
MAINTAINER= dinoex@FreeBSD.org
COMMENT= Web Based Postgres Administration
LICENSE= GPLv2
USE_BZIP2= YES
.if !defined(WITHOUT_PHP_DEPENDS)
2005-07-30 20:46:49 +02:00
USE_PHP= pgsql pcre session
.endif
NO_BUILD= YES
PGADMDIR?= www/phpPgAdmin
2004-03-22 21:57:26 +01:00
PLIST_SUB+= PGADMDIR=${PGADMDIR}
PGADMOLDDIR?= www/data-dist/phpPgAdmin
PLIST_SUB+= PGADMOLDDIR=${PGADMOLDDIR}
pre-everything::
@${ECHO_CMD} "# you can customize the installation directory"
@${ECHO_CMD} "# by setting PGADMDIR in /etc/make.conf"
do-configure:
${REINPLACE_CMD} -e "s|/usr/bin/pg|${LOCALBASE}/bin/pg|" \
2004-03-22 21:57:26 +01:00
${WRKSRC}/conf/config.inc.php-dist
${RM} -f ${WRKSRC}/conf/config.inc.php \
${WRKSRC}/conf/config.inc.php-dist.bak
do-install:
2013-11-27 07:09:40 +01:00
${MKDIR} ${STAGEDIR}${PREFIX}/${PGADMDIR}
${CP} -Rp ${WRKSRC}/ ${STAGEDIR}${PREFIX}/${PGADMDIR}/
2013-11-27 07:09:40 +01:00
.include <bsd.port.mk>