2001-03-23 06:16:45 +01:00
|
|
|
# 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
|
2002-05-05 10:14:06 +02:00
|
|
|
PORTVERSION= 2.5.13
|
2001-03-23 06:16:45 +01:00
|
|
|
CATEGORIES= security
|
|
|
|
MASTER_SITES= ftp://argeas.cs-net.gr/pub/unix/mcrypt/ \
|
2001-06-01 17:03:42 +02:00
|
|
|
ftp://mcrypt.hellug.gr/pub/mcrypt/ \
|
2001-03-23 06:16:45 +01:00
|
|
|
ftp://ftp.ntua.gr/pub/security/mcrypt/
|
|
|
|
|
2001-03-24 12:29:07 +01:00
|
|
|
MAINTAINER= trevor@FreeBSD.org
|
2003-03-01 15:34:33 +01:00
|
|
|
COMMENT= Replacement for crypt(1)
|
2001-03-23 06:16:45 +01:00
|
|
|
|
2002-05-09 00:00:26 +02:00
|
|
|
BUILD_DEPENDS= autoconf:${PORTSDIR}/devel/autoconf \
|
|
|
|
automake:${PORTSDIR}/devel/automake
|
2003-01-03 20:24:34 +01:00
|
|
|
LIB_DEPENDS= mcrypt.8:${PORTSDIR}/security/libmcrypt/ \
|
2001-03-23 06:16:45 +01:00
|
|
|
mhash.2:${PORTSDIR}/security/mhash/ \
|
2002-08-01 18:22:41 +02:00
|
|
|
intl.4:${PORTSDIR}/devel/gettext
|
2001-03-23 06:16:45 +01:00
|
|
|
|
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
|
|
|
CONFIGURE_ARGS+= --enable-static --with-catgets
|
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -lintl -lltdl"
|
2002-05-09 00:00:26 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
DOCS= FORMAT magic
|
2001-03-23 06:16:45 +01:00
|
|
|
MAN1= mcrypt.1
|
2002-05-09 00:00:26 +02:00
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
2001-03-23 06:16:45 +01:00
|
|
|
PLIST= ${WRKDIR}/pkg-plist
|
2002-05-09 00:00:26 +02:00
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
cd ${WRKSRC} && automake -i && autoconf
|
2001-03-23 06:16:45 +01:00
|
|
|
|
|
|
|
pre-install:
|
2002-01-29 12:58:52 +01:00
|
|
|
${ECHO_CMD} bin/${PORTNAME} > ${PLIST}
|
2001-07-07 23:55:34 +02:00
|
|
|
.for i in cs el pl
|
2002-01-29 12:58:52 +01:00
|
|
|
${ECHO_CMD} share/locale/${i}/LC_MESSAGES/mcrypt.mo >> ${PLIST}
|
2001-03-23 06:16:45 +01:00
|
|
|
.endfor
|
|
|
|
.if !defined(NOPORTDOCS)
|
2002-01-29 12:58:52 +01:00
|
|
|
${ECHO_CMD} share/examples/${PORTNAME}/sample.mcryptrc >> ${PLIST}
|
|
|
|
${ECHO_CMD} @dirrm share/examples/${PORTNAME} >> ${PLIST}
|
2002-05-09 00:00:26 +02:00
|
|
|
.for i in ${DOCS}
|
|
|
|
${ECHO_CMD} share/doc/${PORTNAME}/${i} >> ${PLIST}
|
|
|
|
.endfor
|
|
|
|
${ECHO_CMD} @dirrm share/doc/${PORTNAME} >> ${PLIST}
|
2001-03-23 06:16:45 +01:00
|
|
|
.endif
|
2002-05-09 00:00:26 +02:00
|
|
|
${ECHO_CMD} "*** WARNING ***" > ${PKGMESSAGE}
|
|
|
|
${ECHO_CMD} \
|
|
|
|
"The source for this package has not been reviewed by the FreeBSD maintainer." \
|
|
|
|
>> ${PKGMESSAGE}
|
2001-03-23 06:16:45 +01:00
|
|
|
|
2002-05-09 00:00:26 +02:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/mcrypt ${PREFIX}/bin/
|
|
|
|
.for i in el cs pl
|
|
|
|
${MKDIR} ${PREFIX}/share/locale/${i}/LC_MESSAGES
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/po/${i}.gmo \
|
|
|
|
${PREFIX}/share/locale/${i}/LC_MESSAGES/mcrypt.mo
|
|
|
|
.endfor
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/sample.mcryptrc ${EXAMPLESDIR}/
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/${MAN1} ${PREFIX}/man/man1/
|
2001-03-23 06:16:45 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-05-09 00:00:26 +02:00
|
|
|
${MKDIR} ${PREFIX}/share/examples/${PORTNAME} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/sample.mcryptrc ${EXAMPLESDIR}/
|
|
|
|
.for i in ${DOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR}/
|
|
|
|
.endfor
|
2001-03-23 06:16:45 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|