summaryrefslogtreecommitdiff
path: root/security/mcrypt/Makefile
blob: eb15bcf3dcd1f52d1ad84018dc5deb9cca90d1be (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
49
50
51
52
53
54
# New ports collection makefile for:	mcrypt
# Date created:        			2000-12-31
# Whom:					trevor
# based on the OpenBSD port
#
# $OpenBSD: Makefile,v 1.1.1.1 2000/11/27 15:56:03 avsm Exp $
# $FreeBSD$
#

PORTNAME=	mcrypt
PORTVERSION=	2.5.5
CATEGORIES=    	security
MASTER_SITES=	ftp://argeas.cs-net.gr/pub/unix/mcrypt/ \
		ftp://ftp.ntua.gr/pub/security/mcrypt/
#		http://mcrypt.hellug.gr/mcrypt/

MAINTAINER=	trevor@FreeBSD.org

LIB_DEPENDS=	mcrypt.4:${PORTSDIR}/security/libmcrypt/ \
		mhash.2:${PORTSDIR}/security/mhash/ \
		intl.1:${PORTSDIR}/devel/gettext/

post-patch:
	${RM} -f ${WRKSRC}/configure

GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	${CONFIGURE_SHARED}
CONFIGURE_ARGS+=	--enable-static --with-catgets
CONFIGURE_ENV+=		CPPFLAGS="-I${LOCALBASE}/include" \
			LDFLAGS="-L${LOCALBASE}/lib -lintl -lltdl"
MAN1=			mcrypt.1
PLIST=			${WRKDIR}/pkg-plist
USE_AUTOCONF=		yes
USE_LIBTOOL=		yes

pre-install:
	${ECHO} bin/${PORTNAME} > ${PLIST}
	${ECHO} bin/mdecrypt >> ${PLIST}
.for i in cz el pl
	${ECHO} share/locale/${i}/LC_MESSAGES/mcrypt.mo >> ${PLIST}
.endfor
.if !defined(NOPORTDOCS)
	${ECHO} share/examples/${PORTNAME}/sample.mcryptrc >> ${PLIST}
	${ECHO} @dirrm share/examples/${PORTNAME} >> ${PLIST}
.endif

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${PREFIX}/share/examples/${PORTNAME}
	${INSTALL_DATA} ${WRKSRC}/doc/sample.mcryptrc \
		${PREFIX}/share/examples/${PORTNAME}/
.endif

.include <bsd.port.mk>