summaryrefslogtreecommitdiff
path: root/www/ap-php4/Makefile
blob: 1fd1d48adedfd3a5cc4956a86f5e4ca7f6038cc3 (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
28
# $NetBSD: Makefile,v 1.37 2004/04/24 23:03:25 xtraeme Exp $
#

PKGNAME=		ap-php-${PHP_BASE_VERS}
PKGREVISION=		# empty
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"