Annotation of pkgsrc/databases/phpmyadmin/Makefile, revision 1.124

1.124   ! tron        1: # $NetBSD: Makefile,v 1.123 2014/02/22 11:14:57 tron Exp $
1.1       tron        2: 
1.54      tron        3: DISTNAME=      phpMyAdmin-${DIST_VERSION}-all-languages
1.21      tron        4: PKGNAME=       phpmyadmin-${DIST_VERSION:S/-//}
1.1       tron        5: CATEGORIES=    databases www
                      6: MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=phpmyadmin/}
1.100     tron        7: EXTRACT_SUFX=  .tar.xz
1.1       tron        8: 
1.70      tron        9: OWNER=         tron@NetBSD.org
1.23      jdolecek   10: HOMEPAGE=      http://www.phpmyadmin.net/
1.1       tron       11: COMMENT=       Set of PHP-scripts to adminstrate MySQL over the WWW
1.80      tron       12: LICENSE=       gnu-gpl-v2
1.1       tron       13: 
1.123     tron       14: DEPENDS+=      ${PHP_PKG_PREFIX}-bz2>=5.3.0:../../archivers/php-bz2
                     15: DEPENDS+=      ${PHP_PKG_PREFIX}-zip>=5.3.0:../../archivers/php-zip
                     16: DEPENDS+=      ${PHP_PKG_PREFIX}-zlib>=5.3.0:../../archivers/php-zlib
                     17: DEPENDS+=      ${PHP_PKG_PREFIX}-mbstring>=5.3.0:../../converters/php-mbstring
                     18: DEPENDS+=      ${PHP_PKG_PREFIX}-gettext>=5.3.0:../../devel/php-gettext
                     19: DEPENDS+=      ${PHP_PKG_PREFIX}-mysql>=5.3.0:../../databases/php-mysql
                     20: DEPENDS+=      ${PHP_PKG_PREFIX}-mysqli>=5.3.0:../../databases/php-mysqli
                     21: DEPENDS+=      ${PHP_PKG_PREFIX}-gd>=5.3.0:../../graphics/php-gd
                     22: DEPENDS+=      ${PHP_PKG_PREFIX}-mcrypt>=5.3.0:../../security/php-mcrypt
                     23: DEPENDS+=      ${PHP_PKG_PREFIX}-json>=5.3.0:../../textproc/php-json
1.24      jdolecek   24: 
1.106     tron       25: FILES_SUBST+=  APACHE_GROUP=${APACHE_GROUP} APACHE_USER=${APACHE_USER}
                     26: FILES_SUBST+=  PMSETUPDIR=${PMSETUPDIR} PMSETUPFILE=${PMSETUPFILE}
1.63      tron       27: PLIST_SUBST+=  DIST_VERSION=${DIST_VERSION:Q}
                     28: MESSAGE_SUBST+=        CONF_INC_PHP=${CONF_INC_PHP} PMCONFFILE=${PMCONFFILE:Q} \
1.45      tron       29:                EXDIR=${EXDIR:Q}
1.1       tron       30: 
1.106     tron       31: CONF_INC_PHP=  ${PREFIX}/share/phpmyadmin/config.inc.php
1.124   ! tron       32: DIST_VERSION=  4.1.9
1.118     tron       33: DOC_FILES=     ChangeLog LICENSE README RELEASE-DATE-${DIST_VERSION}
1.17      adrianp    34: 
1.22      adrianp    35: APACHE_USER?=  www
1.56      tron       36: APACHE_GROUP?= www
                     37: PKG_GROUPS=    ${APACHE_GROUP}
                     38: PKG_USERS=     ${APACHE_USER}:${APACHE_GROUP}
1.63      tron       39: BUILD_DEFS+=   APACHE_USER APACHE_GROUP
1.61      jlam       40: 
                     41: PKG_USERS_VARS+=       APACHE_USER
                     42: PKG_GROUPS_VARS+=      APACHE_GROUP
1.56      tron       43: 
1.9       tron       44: EXDIR=         ${PREFIX}/share/examples/phpmyadmin
1.17      adrianp    45: PMCONFFILE=    ${PKG_SYSCONFDIR}/config.inc.php
1.106     tron       46: PMSETUPDIR=    ${VARBASE}/phpmyadmin
                     47: PMSETUPFILE=   ${PMSETUPDIR}/config.inc.php
1.9       tron       48: PMDIR=         ${PREFIX}/share/phpmyadmin
1.59      jlam       49: 
1.17      adrianp    50: PKG_SYSCONFSUBDIR?=    phpmyadmin
                     51: 
1.35      rillig     52: NO_BUILD=              yes
1.19      jdolecek   53: 
1.89      tron       54: INSTALLATION_DIRS+=    ${PREFIX}/share/doc/phpmyadmin \
                     55:                        ${PREFIX}/share/examples/phpmyadmin \
                     56:                        ${PMDIR} ${PMDIR}/scripts
                     57: 
1.118     tron       58: INSTALL_DIRS=  doc/html
                     59: INSTALL_DIRS+= js
1.100     tron       60: INSTALL_DIRS+= js/canvg
1.123     tron       61: INSTALL_DIRS+= js/jqplot
                     62: INSTALL_DIRS+= js/jqplot/plugins
1.100     tron       63: INSTALL_DIRS+= js/codemirror
1.123     tron       64: INSTALL_DIRS+= js/codemirror/addon
                     65: INSTALL_DIRS+= js/codemirror/addon/runmode
1.100     tron       66: INSTALL_DIRS+= js/codemirror/lib
                     67: INSTALL_DIRS+= js/codemirror/mode
1.123     tron       68: INSTALL_DIRS+= js/codemirror/mode/sql
1.100     tron       69: INSTALL_DIRS+= js/jquery
1.123     tron       70: INSTALL_DIRS+= js/jquery/src
                     71: INSTALL_DIRS+= js/jquery/src/jquery-ui
                     72: INSTALL_DIRS+= js/jquery/src/jquery
                     73: INSTALL_DIRS+= js/jquery/src/jquery/ajax
1.100     tron       74: INSTALL_DIRS+= js/openlayers
                     75: INSTALL_DIRS+= js/openlayers/img
                     76: INSTALL_DIRS+= js/openlayers/theme
                     77: INSTALL_DIRS+= js/openlayers/theme/default
                     78: INSTALL_DIRS+= js/openlayers/theme/default/img
                     79: INSTALL_DIRS+= js/pmd
1.123     tron       80: INSTALL_DIRS+= js/tracekit
1.89      tron       81: INSTALL_DIRS+= libraries
                     82: INSTALL_DIRS+= libraries/PHPExcel
                     83: INSTALL_DIRS+= libraries/PHPExcel/PHPExcel
                     84: INSTALL_DIRS+= libraries/PHPExcel/PHPExcel/CachedObjectStorage
                     85: INSTALL_DIRS+= libraries/PHPExcel/PHPExcel/Calculation
                     86: INSTALL_DIRS+= libraries/PHPExcel/PHPExcel/Cell
                     87: INSTALL_DIRS+= libraries/PHPExcel/PHPExcel/Reader
                     88: INSTALL_DIRS+= libraries/PHPExcel/PHPExcel/Reader/Excel2007
                     89: INSTALL_DIRS+= libraries/PHPExcel/PHPExcel/Reader/Excel5
                     90: INSTALL_DIRS+= libraries/PHPExcel/PHPExcel/RichText
                     91: INSTALL_DIRS+= libraries/PHPExcel/PHPExcel/Shared
                     92: INSTALL_DIRS+= libraries/PHPExcel/PHPExcel/Shared/Escher
                     93: INSTALL_DIRS+= libraries/PHPExcel/PHPExcel/Shared/Escher/DgContainer
                     94: INSTALL_DIRS+= libraries/PHPExcel/PHPExcel/Shared/Escher/DgContainer/SpgrContainer
                     95: INSTALL_DIRS+= libraries/PHPExcel/PHPExcel/Shared/Escher/DggContainer
                     96: INSTALL_DIRS+= libraries/PHPExcel/PHPExcel/Shared/Escher/DggContainer/BstoreContainer
                     97: INSTALL_DIRS+= libraries/PHPExcel/PHPExcel/Shared/Escher/DggContainer/BstoreContainer/BSE
                     98: INSTALL_DIRS+= libraries/PHPExcel/PHPExcel/Shared/JAMA
                     99: INSTALL_DIRS+= libraries/PHPExcel/PHPExcel/Shared/JAMA/utils
                    100: INSTALL_DIRS+= libraries/PHPExcel/PHPExcel/Shared/OLE
                    101: INSTALL_DIRS+= libraries/PHPExcel/PHPExcel/Shared/OLE/PPS
                    102: INSTALL_DIRS+= libraries/PHPExcel/PHPExcel/Shared/PCLZip
                    103: INSTALL_DIRS+= libraries/PHPExcel/PHPExcel/Shared/trend
                    104: INSTALL_DIRS+= libraries/PHPExcel/PHPExcel/Style
                    105: INSTALL_DIRS+= libraries/PHPExcel/PHPExcel/Worksheet
                    106: INSTALL_DIRS+= libraries/PHPExcel/PHPExcel/Worksheet/Drawing
                    107: INSTALL_DIRS+= libraries/PHPExcel/PHPExcel/Writer
                    108: INSTALL_DIRS+= libraries/PHPExcel/PHPExcel/Writer/Excel2007
                    109: INSTALL_DIRS+= libraries/auth
                    110: INSTALL_DIRS+= libraries/auth/swekey
1.100     tron      111: INSTALL_DIRS+= libraries/bfShapeFiles
1.89      tron      112: INSTALL_DIRS+= libraries/chart
                    113: INSTALL_DIRS+= libraries/chart/pChart
                    114: INSTALL_DIRS+= libraries/chart/pChart/fonts
                    115: INSTALL_DIRS+= libraries/config
                    116: INSTALL_DIRS+= libraries/dbi
                    117: INSTALL_DIRS+= libraries/engines
                    118: INSTALL_DIRS+= libraries/export
1.118     tron      119: INSTALL_DIRS+= libraries/gis
1.89      tron      120: INSTALL_DIRS+= libraries/import
                    121: INSTALL_DIRS+= libraries/import/upload
1.118     tron      122: INSTALL_DIRS+= libraries/navigation
                    123: INSTALL_DIRS+= libraries/navigation/Nodes
1.89      tron      124: INSTALL_DIRS+= libraries/php-gettext
1.118     tron      125: INSTALL_DIRS+= libraries/phpseclib/Crypt
                    126: INSTALL_DIRS+= libraries/plugins
                    127: INSTALL_DIRS+= libraries/plugins/auth
                    128: INSTALL_DIRS+= libraries/plugins/auth/swekey
                    129: INSTALL_DIRS+= libraries/plugins/export
                    130: INSTALL_DIRS+= libraries/plugins/import
                    131: INSTALL_DIRS+= libraries/plugins/import/upload
                    132: INSTALL_DIRS+= libraries/plugins/transformations
                    133: INSTALL_DIRS+= libraries/plugins/transformations/abstract
                    134: INSTALL_DIRS+= libraries/properties
                    135: INSTALL_DIRS+= libraries/properties/options
                    136: INSTALL_DIRS+= libraries/properties/options/groups
                    137: INSTALL_DIRS+= libraries/properties/options/items
                    138: INSTALL_DIRS+= libraries/properties/plugins
1.100     tron      139: INSTALL_DIRS+= libraries/rte
1.89      tron      140: INSTALL_DIRS+= libraries/schema
                    141: INSTALL_DIRS+= libraries/tcpdf
                    142: INSTALL_DIRS+= libraries/tcpdf/cache
                    143: INSTALL_DIRS+= libraries/tcpdf/config
                    144: INSTALL_DIRS+= libraries/tcpdf/config/lang
                    145: INSTALL_DIRS+= libraries/tcpdf/fonts
                    146: INSTALL_DIRS+= libraries/tcpdf/fonts/dejavu-fonts-ttf-2.32
1.100     tron      147: INSTALL_DIRS+= libraries/tcpdf/fonts/dejavu-fonts-ttf-2.33
1.123     tron      148: INSTALL_DIRS+= libraries/tcpdf/include
1.89      tron      149: INSTALL_DIRS+= libraries/transformations
                    150: INSTALL_DIRS+= locale
                    151: INSTALL_DIRS+= locale/ar
                    152: INSTALL_DIRS+= locale/ar/LC_MESSAGES
                    153: INSTALL_DIRS+= locale/be
                    154: INSTALL_DIRS+= locale/be/LC_MESSAGES
                    155: INSTALL_DIRS+= locale/be@latin
                    156: INSTALL_DIRS+= locale/be@latin/LC_MESSAGES
                    157: INSTALL_DIRS+= locale/bg
                    158: INSTALL_DIRS+= locale/bg/LC_MESSAGES
                    159: INSTALL_DIRS+= locale/bn
                    160: INSTALL_DIRS+= locale/bn/LC_MESSAGES
                    161: INSTALL_DIRS+= locale/ca
                    162: INSTALL_DIRS+= locale/ca/LC_MESSAGES
                    163: INSTALL_DIRS+= locale/cs
                    164: INSTALL_DIRS+= locale/cs/LC_MESSAGES
                    165: INSTALL_DIRS+= locale/da
                    166: INSTALL_DIRS+= locale/da/LC_MESSAGES
                    167: INSTALL_DIRS+= locale/de
                    168: INSTALL_DIRS+= locale/de/LC_MESSAGES
                    169: INSTALL_DIRS+= locale/el
                    170: INSTALL_DIRS+= locale/el/LC_MESSAGES
                    171: INSTALL_DIRS+= locale/en_GB
                    172: INSTALL_DIRS+= locale/en_GB/LC_MESSAGES
                    173: INSTALL_DIRS+= locale/es
                    174: INSTALL_DIRS+= locale/es/LC_MESSAGES
                    175: INSTALL_DIRS+= locale/et
                    176: INSTALL_DIRS+= locale/et/LC_MESSAGES
                    177: INSTALL_DIRS+= locale/fi
                    178: INSTALL_DIRS+= locale/fi/LC_MESSAGES
                    179: INSTALL_DIRS+= locale/fr
                    180: INSTALL_DIRS+= locale/fr/LC_MESSAGES
                    181: INSTALL_DIRS+= locale/gl
                    182: INSTALL_DIRS+= locale/gl/LC_MESSAGES
                    183: INSTALL_DIRS+= locale/hi
                    184: INSTALL_DIRS+= locale/hi/LC_MESSAGES
                    185: INSTALL_DIRS+= locale/hr
                    186: INSTALL_DIRS+= locale/hr/LC_MESSAGES
                    187: INSTALL_DIRS+= locale/hu
                    188: INSTALL_DIRS+= locale/hu/LC_MESSAGES
                    189: INSTALL_DIRS+= locale/id
                    190: INSTALL_DIRS+= locale/id/LC_MESSAGES
                    191: INSTALL_DIRS+= locale/it
                    192: INSTALL_DIRS+= locale/it/LC_MESSAGES
                    193: INSTALL_DIRS+= locale/ja
                    194: INSTALL_DIRS+= locale/ja/LC_MESSAGES
                    195: INSTALL_DIRS+= locale/ka
                    196: INSTALL_DIRS+= locale/ka/LC_MESSAGES
                    197: INSTALL_DIRS+= locale/lt
                    198: INSTALL_DIRS+= locale/lt/LC_MESSAGES
                    199: INSTALL_DIRS+= locale/mn
                    200: INSTALL_DIRS+= locale/mn/LC_MESSAGES
                    201: INSTALL_DIRS+= locale/nb
                    202: INSTALL_DIRS+= locale/nb/LC_MESSAGES
                    203: INSTALL_DIRS+= locale/nl
                    204: INSTALL_DIRS+= locale/nl/LC_MESSAGES
                    205: INSTALL_DIRS+= locale/pl
                    206: INSTALL_DIRS+= locale/pl/LC_MESSAGES
                    207: INSTALL_DIRS+= locale/pt_BR
                    208: INSTALL_DIRS+= locale/pt_BR/LC_MESSAGES
                    209: INSTALL_DIRS+= locale/ro
                    210: INSTALL_DIRS+= locale/ro/LC_MESSAGES
                    211: INSTALL_DIRS+= locale/ru
                    212: INSTALL_DIRS+= locale/ru/LC_MESSAGES
                    213: INSTALL_DIRS+= locale/si
                    214: INSTALL_DIRS+= locale/si/LC_MESSAGES
                    215: INSTALL_DIRS+= locale/sk
                    216: INSTALL_DIRS+= locale/sk/LC_MESSAGES
                    217: INSTALL_DIRS+= locale/sl
                    218: INSTALL_DIRS+= locale/sl/LC_MESSAGES
                    219: INSTALL_DIRS+= locale/sr
                    220: INSTALL_DIRS+= locale/sr/LC_MESSAGES
                    221: INSTALL_DIRS+= locale/sr@latin
                    222: INSTALL_DIRS+= locale/sr@latin/LC_MESSAGES
                    223: INSTALL_DIRS+= locale/sv
                    224: INSTALL_DIRS+= locale/sv/LC_MESSAGES
                    225: INSTALL_DIRS+= locale/tr
                    226: INSTALL_DIRS+= locale/tr/LC_MESSAGES
1.100     tron      227: INSTALL_DIRS+= locale/uk
                    228: INSTALL_DIRS+= locale/uk/LC_MESSAGES
1.89      tron      229: INSTALL_DIRS+= locale/uz
                    230: INSTALL_DIRS+= locale/uz/LC_MESSAGES
                    231: INSTALL_DIRS+= locale/uz@latin
                    232: INSTALL_DIRS+= locale/uz@latin/LC_MESSAGES
                    233: INSTALL_DIRS+= locale/zh_CN
                    234: INSTALL_DIRS+= locale/zh_CN/LC_MESSAGES
                    235: INSTALL_DIRS+= locale/zh_TW
                    236: INSTALL_DIRS+= locale/zh_TW/LC_MESSAGES
1.100     tron      237: INSTALL_DIRS+= scripts
1.105     tron      238: INSTALL_DIRS+= setup
1.100     tron      239: INSTALL_DIRS+= setup/frames
                    240: INSTALL_DIRS+= setup/lib
1.89      tron      241: INSTALL_DIRS+= themes
                    242: INSTALL_DIRS+= themes/original
                    243: INSTALL_DIRS+= themes/original/css
                    244: INSTALL_DIRS+= themes/original/img
1.100     tron      245: INSTALL_DIRS+= themes/original/img/pmd
1.89      tron      246: INSTALL_DIRS+= themes/original/jquery
                    247: INSTALL_DIRS+= themes/original/jquery/images
                    248: INSTALL_DIRS+= themes/pmahomme
                    249: INSTALL_DIRS+= themes/pmahomme/css
                    250: INSTALL_DIRS+= themes/pmahomme/img
1.100     tron      251: INSTALL_DIRS+= themes/pmahomme/img/pmd
1.89      tron      252: INSTALL_DIRS+= themes/pmahomme/jquery
                    253: INSTALL_DIRS+= themes/pmahomme/jquery/images
                    254: 
                    255: .for dir in $(INSTALL_DIRS)
                    256: INSTALLATION_DIRS+=    ${PMDIR}/${dir}
                    257: .endfor
1.86      tron      258: 
1.32      jlam      259: do-configure:
1.51      tron      260:        ${SED} -e "s|@PMDIR@|${PMDIR}|g" ${FILESDIR}/phpmyadmin.conf    \
1.105     tron      261:          >${WRKDIR}/phpmyadmin.conf
                    262:        cd ${WRKSRC}/libraries;                                         \
1.106     tron      263:        ${SED} -e "s#@@PMSETUPFILE@@#${PMSETUPFILE}#" vendor_config.php \
1.105     tron      264:          >vendor_config.php.pkgsrc
1.1       tron      265: 
                    266: do-install:
1.89      tron      267:        ${INSTALL_DATA} ${WRKSRC}/*.css ${DESTDIR}${PMDIR}
                    268:        ${INSTALL_DATA} ${WRKSRC}/*.ico ${DESTDIR}${PMDIR}
                    269:        ${INSTALL_DATA} ${WRKSRC}/*.php ${DESTDIR}${PMDIR}
                    270:        ${INSTALL_DATA} ${WRKSRC}/*.txt ${DESTDIR}${PMDIR}
1.17      adrianp   271: 
1.67      obache    272:        ${MV} ${DESTDIR}${PREFIX}/share/phpmyadmin/config.sample.inc.php \
1.64      jlam      273:          ${DESTDIR}${EXDIR}/config.inc.php
1.106     tron      274:        ${INSTALL_DATA} ${WRKSRC}/examples/* ${DESTDIR}${EXDIR}
1.17      adrianp   275: 
1.19      jdolecek  276:        for dir in ${INSTALL_DIRS}; do                                  \
1.62      tron      277:                for file in ${WRKSRC}/$$dir/*; do                       \
                    278:                        case "$$file" in                                \
1.89      tron      279:                        *.orig|*.sh)                                    \
1.62      tron      280:                                ;;                                      \
                    281:                        *)                                              \
                    282:                                if [ -f "$$file" ]; then                \
                    283:                                        ${INSTALL_DATA} "$$file"        \
1.64      jlam      284:                                          ${DESTDIR}${PMDIR}/$$dir;     \
1.62      tron      285:                                fi                                      \
                    286:                                ;;                                      \
                    287:                        esac;                                           \
1.19      jdolecek  288:                done                                                    \
                    289:        done
                    290: 
1.17      adrianp   291:        cd ${WRKSRC} && \
1.64      jlam      292:        ${INSTALL_DATA} ${DOC_FILES} ${DESTDIR}${PREFIX}/share/doc/phpmyadmin
                    293:        ${INSTALL_DATA} ${WRKDIR}/phpmyadmin.conf ${DESTDIR}${EXDIR}/apache.conf
1.106     tron      294:        ${LN} -s ${PMCONFFILE} ${DESTDIR}${CONF_INC_PHP}
1.105     tron      295:        cd ${DESTDIR}${PREFIX}/share/phpmyadmin/libraries; \
                    296:        ${MV} -f vendor_config.php.pkgsrc vendor_config.php
1.48      tron      297: 
1.50      joerg     298: .include "../../lang/php/phpversion.mk"
1.1       tron      299: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>