blob: d4e0fc36bb5a20d59c6d32e9106d2b9dff8c11cb (
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: mcrypt
# Date created: Mon Jun 28 18:02:04 PDT 1999
# Whom: nsayer@freebsd.org
#
# $FreeBSD$
#
PORTNAME= libmcrypt
PORTVERSION= 2.5.3
CATEGORIES= security
MASTER_SITES= ftp://mcrypt.hellug.gr/pub/mcrypt/libmcrypt/ \
ftp://ftp.ntua.gr/pub/security/mcrypt/libmcrypt/
MAINTAINER= ports@FreeBSD.org
PORTCOMMENT= Multi-cipher cryptographic library (used in PHP3)
BUILD_DEPENDS= autoconf:${PORTSDIR}/devel/autoconf
LIB_DEPENDS= ltdl.1:${PORTSDIR}/devel/libtool
RESTRICTED= "yes - cryptography"
USE_PERL5= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
INSTALLS_SHLIB= yes
MAN3= mcrypt.3
post-extract:
# so we need not audit the configure scripts
${FIND} ${WRKSRC} -name configure -exec ${RM} -f \{\} \;
pre-patch:
@${FIND} ${WRKSRC}/modules -name '*.[ch]' | ${XARGS} ${REINPLACE_CMD} -e \
's|#ifdef USE_LTDL|#if defined(USE_LTDL) && !defined(__FreeBSD__)|g'
post-patch:
@cd ${WRKSRC}/libltdl && ${LOCALBASE}/bin/autoconf
pre-configure:
# because we removed the configure scripts
cd ${WRKSRC} && autoconf
.include <bsd.port.mk>
|