6 CATEGORIES= databases www
7 MASTER_SITES= https://files.phpmyadmin.net/${PORTNAME}/${DISTVERSION}/
8 DISTNAME= ${PORTNAME}-${DISTVERSION}-all-languages
9 PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX}
11 MAINTAINER= joneum@FreeBSD.org
12 COMMENT= Set of PHP-scripts to manage MySQL over the web
15 LICENSE_FILE= ${WRKSRC}/LICENSE
17 CONFLICTS_INSTALL= phpmyadmin5
19 USES= cpe php:web,flavors tar:xz
20 CPE_PRODUCT= ${PORTNAME:tl}
24 .if !defined(WITHOUT_PHP_DEPENDS)
26 # Note: composer.json files in the source list pcre as a required
27 # extension, but pcre is compiled into PHP as standard on FreeBSD.
28 # spl, libsodium are only required in the bundled vendor code. PMA
29 # could, in principle, also use the PHP dbase extension, but it's not
30 # available for PHP >= 7.0 and of only minority interest.
32 USE_PHP= ctype filter hash json mysqli session spl xml
35 # Note: default settings will pull in X11 client support. If you don't
36 # want this, either turn off GD in the config dialog, or else turn off
37 # FONTCONFIG in the graphics/gd port options.
39 OPTIONS_DEFINE= BZ2 CURL GD GMP MBSTRING OPCACHE OPENSSL PDF \
41 OPTIONS_DEFAULT= BZ2 GD MBSTRING OPENSSL ZIP ZLIB
43 BZ2_DESC= PHP bzip2 library support
44 CURL_DESC= PHP curl support
45 GD_DESC= PHP GD library support (requires X11)
46 GMP_DESC= PHP GMP library support
47 MBSTRING_DESC= PHP Multi-byte String support
48 OPCACHE_DESC= PHP Opcache support
49 OPENSSL_DESC= PHP OpenSSL support
50 PDF_DESC= PHP PDFlib support
51 SODIUM_DESC= PHP libsodium support (only available for PHP >= 7.2)
52 ZIP_DESC= PHP Zip compression support
53 ZLIB_DESC= PHP ZLIB support
55 .include <bsd.port.options.mk>
58 CFG_FILE= config.inc.php
60 PLIST= ${WRKDIR}/plist
61 PLIST_SUB+= PMA_GRP=${GROUPS}
63 SUB_LIST+= PKGNAME=${PKGNAME} \
64 CFG_FILE=${WWWDIR}/${CFG_FILE}
65 SUB_FILES+= pkg-message
67 .if !defined(WITHOUT_PHP_DEPENDS)
69 .for opt in ${OPTIONS_DEFINE}
70 . if ${PORT_OPTIONS:M${opt}}
81 ${CP} ${FILESDIR}/${CFG_FILE}.sample ${WRKSRC}/${CFG_FILE}.sample ; \
82 ${FIND} . ! -type d ! -name ${CFG_FILE}.sample ! -name '*.bak' | \
83 ${SORT} | ${SED} -e "s,^\.,%%WWWDIR%%," >${PLIST} ; \
84 ${CAT} ${PKGDIR}/pkg-plist-chunk >>${PLIST} ; \
85 for emptydir in $$( ${FIND} . -type d -empty -print | \
86 ${SED} -e "s,^\.,%%WWWDIR%%," ) ; do \
87 ${ECHO} "@dir $${emptydir}" >>${PLIST} ; \
92 for src in $$( ${FIND} . ! -name .cvsignore ! -name '*.bak' ) ; do \
93 dst=${STAGEDIR}${WWWDIR}$${src#.} ; \
94 if ${TEST} -d "$$src" ; then \
97 ${INSTALL_DATA} "$$src" "$$dst" ; \
100 @${MKDIR} ${STAGEDIR}${WWWDIR}/tmp
102 .include <bsd.port.mk>