summaryrefslogtreecommitdiff
path: root/security/php4-cryptopp/Makefile
blob: 3af9b58bbebfa42b1478a9b365ad3b6d7e0e4637 (plain) (blame)
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
38
39
40
41
42
43
44
45
46
47
48
# New ports collection makefile for:	php4-cryptopp
# Date created:				28 Jan 2004
# Whom:					tmelzer
#
# $FreeBSD$
#

PORTNAME=	cryptopp
PORTVERSION=	0.0.15
CATEGORIES=	security
MASTER_SITES=	http://bugs.tutorbuddy.com/download.php/
PKGNAMEPREFIX=	php4-
DISTNAME=	${PORTNAME}-php-${PORTVERSION}

MAINTAINER=	tmelzer@tomesoft.de
COMMENT=	A crypto++ php wrapper

BUILD_DEPENDS+=	${LOCALBASE}/lib/libcryptopp.a:${PORTSDIR}/security/cryptopp

WRKSRC=		${WRKDIR}/${PORTNAME}
DOCSDIR=	${PREFIX}/share/doc/${PKGNAME}

USE_PERL5=	yes
USE_PHP=	yes
USE_PHPEXT=	yes
USE_PHPIZE=	yes
USE_REINPLACE=	yes

CONFIGURE_ARGS=	--with-cryptopp

.if !defined(NOPORTDOCS)
PORTDOCS=	README ${PORTNAME}.doc
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|-march=pentium3 -O3 -g -pipe -fomit-frame-pointer|${CFLAGS}|' ${WRKSRC}/config.m4

post-build:
# convert sgml documentation to plain text
	@${PERL} -e '$$/=">";' -e 'while(<>){s/<.*>//;print;}' < ${WRKSRC}/docs/${PORTNAME}.sgml > ${WRKSRC}/${PORTNAME}.doc

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif

.include <bsd.port.mk>