summaryrefslogtreecommitdiff
path: root/www/php4-apc/Makefile
blob: 2043dbfe794740df4caaa7611ca88183bfbcde51 (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
29
30
31
32
33
34
35
36
37
# $NetBSD: Makefile,v 1.16 2004/12/17 15:44:12 taca Exp $

DISTNAME=	APC-${VERSION}
PKGNAME=	php-apc-${VERSION}
MODNAME=	apc
CATEGORIES+=	sysutils
MASTER_SITES=	http://pecl.php.net/get/
EXTRACT_SUFX=	.tgz

MAINTAINER=	tech-pkg@NetBSD.org
HOMEPAGE=	http://apc.communityconnect.com/
COMMENT=	Alternative PHP Cache for PHP4

EXTRACT_ELEMENTS=	# empty

VERSION=		2.0.4
WRKSRC=			${WRKDIR}/${DISTNAME}
USE_BUILDLINK3=		YES

CONFIGURE_ARGS+=	--enable-${MODNAME}

PLIST_SRC+=		${.CURDIR}/PLIST.extras
PLIST_SUBST+=		PKGBASE="${PKGBASE}"
DOCDIR=			${PREFIX}/share/doc/${PKGBASE}

post-install:
	${INSTALL_DATA_DIR} ${DOCDIR}
	cd ${WRKSRC}; ${INSTALL_DATA} \
		INSTALL LICENSE NOTICE ${DOCDIR}

PHP_VERSION_REQD=	4		# PHP 4.x only

.include "../../lang/php/ext.mk"
# override with local distinfo file
DISTINFO_FILE=	${.CURDIR}/distinfo

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