summaryrefslogtreecommitdiff
path: root/www/ap-php4/Makefile
blob: fc77089838e5d4bc378b84afa206f33f8c19c7bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# $NetBSD: Makefile,v 1.38 2004/10/03 00:18:24 tv Exp $
#

PKGNAME=		ap-php-${PHP_BASE_VERS}
COMMENT=		Apache (${PKG_APACHE}) module for PHP4

USE_BUILDLINK3=		YES
APACHE_MODULE=		YES
SHLIBTOOL_OVERRIDE=	libtool

.include "../../www/php4/Makefile.php"

# Ensure we export symbols in the linked shared object.
LDFLAGS+=		${EXPORT_SYMBOLS_LDFLAGS}

do-install:
	if [ -f ${WRKSRC}/.libs/libphp4.so ]; then		\
		${INSTALL_DATA} ${WRKSRC}/.libs/libphp4.so	\
			${PREFIX}/lib/httpd/mod_php4.so;	\
	elif [ -f ${WRKSRC}/libs/libphp4.so ]; then		\
		${INSTALL_DATA} ${WRKSRC}/libs/libphp4.so	\
			${PREFIX}/lib/httpd/mod_php4.so;	\
	fi

.include "../../www/php4/buildlink3.mk"
.include "../../mk/apache.mk"
.include "../../mk/bsd.pkg.mk"