2012-10-08 22:00:29 +02:00
|
|
|
# Created by: nbm
|
2001-01-19 13:53:37 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2002-03-23 13:24:12 +01:00
|
|
|
PORTNAME= phpMyAdmin
|
2015-05-16 23:13:02 +02:00
|
|
|
DISTVERSION= 4.4.7
|
2001-01-19 13:53:37 +01:00
|
|
|
CATEGORIES= databases www
|
2014-05-05 11:45:36 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME:tl}/${PORTNAME}/${DISTVERSION}
|
2008-06-29 01:45:06 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${DISTVERSION}-all-languages
|
2001-01-19 13:53:37 +01:00
|
|
|
|
2012-02-09 18:09:51 +01:00
|
|
|
MAINTAINER= matthew@FreeBSD.org
|
2014-06-10 09:39:01 +02:00
|
|
|
COMMENT= Set of PHP-scripts to manage MySQL over the web
|
2001-01-19 13:53:37 +01:00
|
|
|
|
2013-12-08 23:38:52 +01:00
|
|
|
NO_ARCH= yes
|
2010-06-30 03:38:20 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2014-07-13 07:44:40 +02:00
|
|
|
USES= cpe shebangfix tar:xz
|
|
|
|
CPE_PRODUCT= ${PORTNAME:tl}
|
|
|
|
|
2002-03-23 13:24:12 +01:00
|
|
|
NO_BUILD= yes
|
2007-01-18 07:56:59 +01:00
|
|
|
.if !defined(WITHOUT_PHP_DEPENDS)
|
2013-12-12 23:48:04 +01:00
|
|
|
IGNORE_WITH_PHP=52
|
2014-05-09 08:27:17 +02:00
|
|
|
USE_PHP= ctype session filter mbstring json spl mysqli
|
2007-01-18 07:56:59 +01:00
|
|
|
.endif
|
2002-03-23 13:24:12 +01:00
|
|
|
|
2011-03-19 20:58:15 +01:00
|
|
|
# Note: default settings will pull in X11 client support. If you don't
|
|
|
|
# want this, either turn off GD in the config dialog, or else turn off
|
|
|
|
# FONTCONFIG in the graphics/gd port options.
|
|
|
|
|
2013-12-17 14:56:24 +01:00
|
|
|
OPTIONS_DEFINE= APC BZ2 GD MCRYPT OPENSSL PDF XML ZIP ZLIB
|
2014-06-21 00:09:16 +02:00
|
|
|
OPTIONS_DEFAULT= BZ2 GD MCRYPT OPENSSL XML ZIP ZLIB
|
2012-06-04 21:25:56 +02:00
|
|
|
|
|
|
|
APC_DESC= PHP APC (animated progress bar) support
|
|
|
|
BZ2_DESC= PHP bzip2 library support
|
|
|
|
GD_DESC= PHP GD library support (requires X11)
|
|
|
|
MCRYPT_DESC= PHP MCrypt library support
|
|
|
|
OPENSSL_DESC= PHP OpenSSL support
|
|
|
|
PDF_DESC= PHP PDFlib support
|
2013-05-04 08:24:53 +02:00
|
|
|
XML_DESC= PHP XML support (Export to OpenDoc)
|
2012-06-04 21:25:56 +02:00
|
|
|
ZIP_DESC= PHP Zip compression support
|
|
|
|
ZLIB_DESC= PHP ZLIB support
|
2009-12-22 12:48:41 +01:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
2004-10-12 03:06:15 +02:00
|
|
|
|
2004-05-20 18:29:49 +02:00
|
|
|
WANT_PHP_WEB= yes
|
|
|
|
|
2009-12-22 12:48:41 +01:00
|
|
|
GROUPS?= ${WWWGRP}
|
2013-09-27 18:08:12 +02:00
|
|
|
CFG_FILE= config.inc.php
|
2008-01-21 11:58:20 +01:00
|
|
|
|
|
|
|
PLIST= ${WRKDIR}/plist
|
2009-12-22 12:48:41 +01:00
|
|
|
PLIST_SUB+= PMA_GRP=${GROUPS}
|
2008-01-21 11:58:20 +01:00
|
|
|
|
2014-06-21 00:37:42 +02:00
|
|
|
SUB_LIST+= PKGNAME=${PKGNAME} \
|
2013-12-17 14:56:24 +01:00
|
|
|
CFG_FILE=${WWWDIR}/${CFG_FILE}
|
|
|
|
SUB_FILES+= pkg-message
|
2008-01-21 11:58:20 +01:00
|
|
|
|
2013-11-05 08:05:53 +01:00
|
|
|
SHEBANG_FILES= libraries/plugins/transformations/generator_main_class.sh \
|
|
|
|
libraries/plugins/transformations/generator_plugin.sh
|
2004-10-12 03:06:15 +02:00
|
|
|
|
2007-01-18 07:56:59 +01:00
|
|
|
.if !defined(WITHOUT_PHP_DEPENDS)
|
2010-05-16 11:28:51 +02:00
|
|
|
|
2013-12-17 14:56:24 +01:00
|
|
|
.for opt in ${OPTIONS_DEFINE} ${OPTIONS_MULTI_DB_connect}
|
2012-06-04 21:25:56 +02:00
|
|
|
. if ${PORT_OPTIONS:M${opt}}
|
2014-05-05 11:45:36 +02:00
|
|
|
USE_PHP+= ${opt:tl}
|
2004-10-12 03:06:15 +02:00
|
|
|
. endif
|
|
|
|
.endfor
|
|
|
|
|
2007-01-18 07:56:59 +01:00
|
|
|
.endif
|
2004-10-13 10:54:07 +02:00
|
|
|
|
2004-05-20 18:29:49 +02:00
|
|
|
.SILENT:
|
|
|
|
|
2007-03-07 22:34:20 +01:00
|
|
|
# When creating a package, empty directories will not be generated
|
2009-12-22 12:48:41 +01:00
|
|
|
# from the pkg tarball. Therefore make sure no directories are empty.
|
2007-03-07 22:34:20 +01:00
|
|
|
|
2002-03-23 13:24:12 +01:00
|
|
|
post-patch:
|
2007-03-07 22:34:20 +01:00
|
|
|
cd ${WRKSRC} ; \
|
2013-09-27 18:08:12 +02:00
|
|
|
${CP} ${FILESDIR}/${CFG_FILE}.sample ${WRKSRC}/${CFG_FILE}.sample ; \
|
|
|
|
${FIND} . ! -type d ! -name ${CFG_FILE}.sample ! -name '*.bak' | \
|
2010-03-09 00:24:47 +01:00
|
|
|
${SORT} | ${SED} -e "s,^\.,%%WWWDIR%%," >${PLIST} ; \
|
2009-12-22 12:48:41 +01:00
|
|
|
${CAT} ${PKGDIR}/pkg-plist-chunk >>${PLIST} ; \
|
2015-02-21 20:39:20 +01:00
|
|
|
for emptydir in $$( ${FIND} . -type d -empty -print ) ; do \
|
|
|
|
${ECHO} "@dir(,,)$${emptydir}" >>${PLIST} ; \
|
|
|
|
done ; \
|
|
|
|
|
2004-05-20 18:29:49 +02:00
|
|
|
|
2014-09-14 21:31:03 +02:00
|
|
|
do-install:
|
2004-05-20 18:29:49 +02:00
|
|
|
cd ${WRKSRC} ; \
|
2010-03-09 00:24:47 +01:00
|
|
|
for src in $$( ${FIND} . ! -name .cvsignore ! -name '*.bak' ) ; do \
|
2013-09-27 18:08:12 +02:00
|
|
|
dst=${STAGEDIR}${WWWDIR}$${src#.} ; \
|
2010-03-09 00:24:47 +01:00
|
|
|
if ${TEST} -d "$$src" ; then \
|
|
|
|
${MKDIR} "$$dst" ; \
|
2004-05-20 18:29:49 +02:00
|
|
|
else \
|
2010-03-09 00:24:47 +01:00
|
|
|
${INSTALL_DATA} "$$src" "$$dst" ; \
|
2004-05-20 18:29:49 +02:00
|
|
|
fi \
|
|
|
|
done
|
|
|
|
|
2012-02-15 17:42:56 +01:00
|
|
|
.include <bsd.port.mk>
|