2013-03-16 08:21:18 +01:00
|
|
|
# $NetBSD: Makefile,v 1.29 2013/03/16 07:21:19 obache Exp $
|
2002-07-23 14:13:34 +02:00
|
|
|
|
2012-07-18 11:03:37 +02:00
|
|
|
DISTNAME= phpPgAdmin-5.0.4
|
2004-10-09 18:23:43 +02:00
|
|
|
PKGNAME= ${DISTNAME:S/PgAdmin/pgadmin/}
|
2013-03-16 08:21:18 +01:00
|
|
|
PKGREVISION= 1
|
2002-07-23 14:13:34 +02:00
|
|
|
CATEGORIES= databases www
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=phppgadmin/}
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
2012-04-16 00:00:58 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2002-07-23 14:13:34 +02:00
|
|
|
HOMEPAGE= http://phppgadmin.sourceforge.net/
|
2004-02-21 07:46:56 +01:00
|
|
|
COMMENT= Set of PHP-scripts to administer PostgreSQL over the WWW
|
2002-07-23 14:13:34 +02:00
|
|
|
|
2006-06-02 20:27:54 +02:00
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-pgsql>=4.2.0:../../databases/php-pgsql
|
2002-07-23 14:13:34 +02:00
|
|
|
|
2004-10-09 18:23:43 +02:00
|
|
|
MESSAGE_SUBST+= EGDIR=${EGDIR}
|
|
|
|
|
2002-07-23 14:13:34 +02:00
|
|
|
NO_BUILD= YES
|
2004-10-09 18:23:43 +02:00
|
|
|
|
|
|
|
PHPPGBASE= ${PREFIX}/share/phppgadmin
|
2012-07-18 11:03:37 +02:00
|
|
|
PHPPGHIER= conf classes/database classes/plugins help \
|
|
|
|
images/themes/cappuccino images/themes/default \
|
|
|
|
js lang/recoded \
|
|
|
|
libraries/adodb/drivers libraries/adodb/lang libraries/js \
|
|
|
|
sql themes/cappuccino themes/default themes/gotar \
|
|
|
|
xloadtree
|
2002-07-23 14:13:34 +02:00
|
|
|
|
2004-10-09 18:23:43 +02:00
|
|
|
EGDIR= ${PREFIX}/share/examples/phppgadmin
|
2004-10-09 18:26:26 +02:00
|
|
|
DOCDIR= ${PREFIX}/share/doc/phppgadmin
|
2005-09-06 08:07:28 +02:00
|
|
|
CONF_FILES= ${EGDIR}/config.inc.php-dist ${PHPPGBASE}/conf/config.inc.php
|
2004-10-09 18:23:43 +02:00
|
|
|
DOC_FILES= CREDITS DEVELOPERS FAQ HISTORY INSTALL LICENSE TODO \
|
|
|
|
TRANSLATORS
|
|
|
|
|
2011-02-09 00:09:17 +01:00
|
|
|
REPLACE_INTERPRETER+= pkgsrc-php
|
|
|
|
REPLACE.pkgsrc-php.old= .*php
|
|
|
|
REPLACE.pkgsrc-php.new= ${PREFIX}/bin/php
|
|
|
|
REPLACE_FILES.pkgsrc-php= build_tests.php
|
|
|
|
|
2004-10-09 18:23:43 +02:00
|
|
|
do-configure:
|
2009-01-13 15:40:40 +01:00
|
|
|
${SED} -e "s#/usr/bin/pg#${PREFIX}/bin/pg#" \
|
2005-08-06 23:36:56 +02:00
|
|
|
${WRKSRC}/conf/config.inc.php-dist > \
|
|
|
|
${WRKSRC}/conf/config.inc.php-dist.tmp
|
2009-01-13 15:40:40 +01:00
|
|
|
${MV} ${WRKSRC}/conf/config.inc.php-dist.tmp \
|
2005-08-06 23:36:56 +02:00
|
|
|
${WRKSRC}/conf/config.inc.php-dist
|
2009-01-13 15:40:40 +01:00
|
|
|
${SED} -e "s#@PHPPGBASE@#${PHPPGBASE}#g" ${FILESDIR}/apache.conf-dist \
|
2004-10-09 18:23:43 +02:00
|
|
|
> ${WRKDIR}/apache.conf
|
2002-07-23 14:13:34 +02:00
|
|
|
|
|
|
|
do-install:
|
2008-01-30 11:07:34 +01:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PHPPGBASE}
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
|
2004-10-09 18:23:43 +02:00
|
|
|
|
2005-08-06 23:36:56 +02:00
|
|
|
for d in ${PHPPGHIER}; do \
|
2008-01-30 11:07:34 +01:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PHPPGBASE}/$$d; \
|
2004-10-09 18:23:43 +02:00
|
|
|
done
|
|
|
|
|
2008-01-30 11:07:34 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/*.* ${DESTDIR}${PHPPGBASE}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/classes/*.* ${DESTDIR}${PHPPGBASE}/classes
|
2005-08-06 23:36:56 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/classes/database/* \
|
2008-01-30 11:07:34 +01:00
|
|
|
${DESTDIR}${PHPPGBASE}/classes/database
|
2012-07-18 11:03:37 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/classes/plugins/* \
|
|
|
|
${DESTDIR}${PHPPGBASE}/classes/plugins
|
2008-01-30 11:07:34 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/help/* ${DESTDIR}${PHPPGBASE}/help
|
2012-07-18 11:03:37 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/images/themes/cappuccino/*.png \
|
|
|
|
${DESTDIR}${PHPPGBASE}/images/themes/cappuccino
|
2005-08-06 23:36:56 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/images/themes/default/*.png \
|
2008-01-30 11:07:34 +01:00
|
|
|
${DESTDIR}${PHPPGBASE}/images/themes/default
|
2012-07-18 11:03:37 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/js/*.js \
|
|
|
|
${DESTDIR}${PHPPGBASE}/js
|
2008-01-30 11:07:34 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/lang/*.* ${DESTDIR}${PHPPGBASE}/lang
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/lang/recoded/*.* ${DESTDIR}${PHPPGBASE}/lang/recoded
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/libraries/*.php ${DESTDIR}${PHPPGBASE}/libraries
|
2005-08-06 23:36:56 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/libraries/adodb/*.php \
|
2008-01-30 11:07:34 +01:00
|
|
|
${DESTDIR}${PHPPGBASE}/libraries/adodb
|
2005-08-06 23:36:56 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/libraries/adodb/*.txt \
|
2008-01-30 11:07:34 +01:00
|
|
|
${DESTDIR}${PHPPGBASE}/libraries/adodb
|
2005-08-06 23:36:56 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/libraries/adodb/drivers/* \
|
2008-01-30 11:07:34 +01:00
|
|
|
${DESTDIR}${PHPPGBASE}/libraries/adodb/drivers
|
2012-07-18 11:03:37 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/libraries/adodb/lang/* \
|
|
|
|
${DESTDIR}${PHPPGBASE}/libraries/adodb/lang
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/libraries/js/*.js \
|
|
|
|
${DESTDIR}${PHPPGBASE}/libraries/js
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sql/* ${DESTDIR}${PHPPGBASE}/sql
|
|
|
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/themes/global.css \
|
|
|
|
${DESTDIR}${PHPPGBASE}/themes
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/themes/*.php \
|
|
|
|
${DESTDIR}${PHPPGBASE}/themes
|
|
|
|
for theme in cappuccino default gotar; do \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/themes/$$theme/global.css \
|
|
|
|
${DESTDIR}${PHPPGBASE}/themes/$$theme; done
|
2009-01-13 15:40:40 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/xloadtree/*.* \
|
|
|
|
${DESTDIR}${PHPPGBASE}/xloadtree
|
2012-07-18 11:03:37 +02:00
|
|
|
|
2008-01-30 11:07:34 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/conf/config.inc.php-dist ${DESTDIR}${EGDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/apache.conf ${DESTDIR}${EGDIR}
|
2004-10-09 18:23:43 +02:00
|
|
|
|
2008-01-30 11:07:34 +01:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
|
2005-08-06 23:36:56 +02:00
|
|
|
for f in ${DOC_FILES}; do \
|
2008-01-30 11:07:34 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/$$f ${DESTDIR}${DOCDIR}; \
|
2002-07-23 14:13:34 +02:00
|
|
|
done
|
|
|
|
|
2006-06-02 20:27:54 +02:00
|
|
|
.include "../../lang/php/phpversion.mk"
|
2002-07-23 14:13:34 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|