Tweak databases/p5-Amazon-SimpleDB version 0.03_1
[dports.git] / databases / phpmyadmin / Makefile
1 # Created by: nbm
2 # $FreeBSD$
3
4 PORTNAME=       phpMyAdmin
5 DISTVERSION=    4.9.5
6 CATEGORIES=     databases www
7 MASTER_SITES=   https://files.phpmyadmin.net/${PORTNAME}/${DISTVERSION}/
8 DISTNAME=       ${PORTNAME}-${DISTVERSION}-all-languages
9 PKGNAMESUFFIX=  ${PHP_PKGNAMESUFFIX}
10
11 MAINTAINER=     joneum@FreeBSD.org
12 COMMENT=        Set of PHP-scripts to manage MySQL over the web
13
14 LICENSE=        GPLv2
15 LICENSE_FILE=   ${WRKSRC}/LICENSE
16
17 CONFLICTS_INSTALL=      phpmyadmin5
18
19 USES=           cpe php:web,flavors tar:xz
20 CPE_PRODUCT=    ${PORTNAME:tl}
21
22 NO_ARCH=        yes
23 NO_BUILD=       yes
24 .if !defined(WITHOUT_PHP_DEPENDS)
25
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.
31
32 USE_PHP=        ctype filter hash json mysqli session spl xml
33 .endif
34
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.
38
39 OPTIONS_DEFINE=         BZ2 CURL GD GMP MBSTRING OPCACHE OPENSSL PDF \
40                         SODIUM ZIP ZLIB
41 OPTIONS_DEFAULT=        BZ2 GD MBSTRING OPENSSL ZIP ZLIB
42
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
54
55 .include <bsd.port.options.mk>
56
57 GROUPS?=        ${WWWGRP}
58 CFG_FILE=       config.inc.php
59
60 PLIST=          ${WRKDIR}/plist
61 PLIST_SUB+=     PMA_GRP=${GROUPS}
62
63 SUB_LIST+=      PKGNAME=${PKGNAME}              \
64                 CFG_FILE=${WWWDIR}/${CFG_FILE}
65 SUB_FILES+=     pkg-message
66
67 .if !defined(WITHOUT_PHP_DEPENDS)
68
69 .for opt in ${OPTIONS_DEFINE}
70 .    if ${PORT_OPTIONS:M${opt}}
71 USE_PHP+=       ${opt:tl}
72 .    endif
73 .endfor
74
75 .endif
76
77 .SILENT:
78
79 post-patch:
80         cd ${WRKSRC} ; \
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} ; \
88         done ; \
89
90 do-install:
91         cd ${WRKSRC} ; \
92         for src in $$( ${FIND} . ! -name .cvsignore ! -name '*.bak' ) ; do \
93             dst=${STAGEDIR}${WWWDIR}$${src#.} ; \
94             if ${TEST} -d "$$src" ; then \
95                 ${MKDIR} "$$dst" ; \
96             else \
97                 ${INSTALL_DATA} "$$src" "$$dst" ; \
98             fi \
99         done
100         @${MKDIR} ${STAGEDIR}${WWWDIR}/tmp
101
102 .include <bsd.port.mk>