[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / www / ap-php

Annotation of pkgsrc/www/ap-php/Makefile, Revision 1.43

1.43    ! manu        1: # $NetBSD: Makefile,v 1.42 2018/07/26 12:39:19 manu Exp $
1.1       jdolecek    2:
1.33      taca        3: PKGNAME=               ${APACHE_PKG_PREFIX}-${PHP_PKG_PREFIX}-${PHP_VERSION}
1.1       jdolecek    4: COMMENT=               Apache (${PKG_APACHE}) module for ${PKG_PHP}
                      5:
1.10      joerg       6: CONFLICTS=             ap-php-[0-9]*
                      7:
1.29      jperkin     8: USE_TOOLS+=            lex pkg-config
1.20      rillig      9:
1.1       jdolecek   10: APACHE_MODULE=         YES
                     11:
1.38      jperkin    12: FORTIFY_SUPPORTED=     no
                     13: SSP_SUPPORTED=         no
1.37      hauke      14:
1.1       jdolecek   15: .include "../../lang/php/phpversion.mk"
                     16: .include "${PHPPKGSRCDIR}/Makefile.php"
                     17:
1.26      adam       18: MESSAGE_SUBST+=                PKG_PHP_MAJOR_VERS=${PKG_PHP_MAJOR_VERS}
                     19:
1.1       jdolecek   20: # Ensure we export symbols in the linked shared object.
1.26      adam       21: CONFIGURE_ENV+=                EXTRA_LDFLAGS=${EXPORT_SYMBOLS_LDFLAGS:M*:Q}
1.1       jdolecek   22:
1.3       jlam       23: INSTALLATION_DIRS=     lib/httpd
                     24:
1.1       jdolecek   25: do-install:
1.23      taca       26:        if [ -f ${WRKSRC}/.libs/libphp${PKG_PHP_MAJOR_VERS}.so ]; then  \
                     27:                ${INSTALL_DATA} ${WRKSRC}/.libs/libphp${PKG_PHP_MAJOR_VERS}.so \
                     28:                        ${DESTDIR}${PREFIX}/lib/httpd/mod_php${PKG_PHP_MAJOR_VERS}.so;   \
                     29:        elif [ -f ${WRKSRC}/libs/libphp${PKG_PHP_MAJOR_VERS}.so ]; then \
                     30:                ${INSTALL_DATA} ${WRKSRC}/libs/libphp${PKG_PHP_MAJOR_VERS}.so  \
                     31:                        ${DESTDIR}${PREFIX}/lib/httpd/mod_php${PKG_PHP_MAJOR_VERS}.so;   \
1.1       jdolecek   32:        fi
                     33:
                     34: .include "${PHPPKGSRCDIR}/buildlink3.mk"
                     35: .include "../../mk/apache.mk"
                     36: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>