summaryrefslogtreecommitdiff
path: root/www/ap-php4/Makefile
blob: 5fc7a4e555973fee6ba081afb943dff58cdac6cc (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.14 2001/05/14 14:12:27 jlam Exp $

.include "../../www/php4/Makefile.common"

PKGNAME=		ap-php-${PHP_MODULE_VERS}

PHP_PKG_VERS=		# empty
PHP_MODULE_VERS=	${PHP_BASE_VERS}${PHP_PKG_VERS}

COMMENT=		PHP4: Hypertext Preprocessor (Apache module)

DEPENDS+=		php-${PHP_VERS}:../../www/php4
DEPENDS+=		apache>=1.3:../../www/apache

# For "apxs":
BUILD_DEPENDS+=		perl>=${PERL5_REQD}:../../lang/perl5

CONFIGURE_ARGS+=	--with-apxs=${LOCALBASE}/sbin/apxs

# Ensure we export symbols in the linked shared object.
LDFLAGS+=		-Wl,--export-dynamic

do-install:
	${INSTALL_DATA} ${WRKSRC}/.libs/libphp4.so 			\
		${PREFIX}/lib/httpd/mod_php4.so

.include "../../mk/bsd.pkg.mk"