mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
d16f7bfb92
PR. Thanks for contributing. Since the acroread7 port is a somewhat important port for our users, I will hand it over to emulation@ if no _active_ *committer* takes it before the ports freeze. While I'm here: - fix a little nit in the csound port (I think the intention was to create no backup file instead of creating one with a "-e" extension) - set ARCH to i386 in the amd64 case for the acroread7 port. This is a work-around to be able to install everything when a dependency is not already installed (ARCH is read-only in sub-makes, so the dependencies can't change it). This should be removed when the dependencies are fixed or converted to use bsd.linux-rpm.mk. [1] Not objected to by: portmgr (explicit: krion; silence: rest) Maintainer timeout: ~4 months Submitted by: Sangwoo Shim <sangwoos@gmail.com> [1] PR: 87985 [1]
82 lines
2.5 KiB
Makefile
82 lines
2.5 KiB
Makefile
# 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.6.4
|
|
PORTREVISION= 3
|
|
CATEGORIES= security
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
|
ftp://argeas.cs-net.gr/pub/unix/mcrypt/attic/ \
|
|
ftp://ftp.ntua.gr/pub/security/mcrypt/ \
|
|
ftp://mcrypt.hellug.gr/pub/mcrypt/attic/
|
|
MASTER_SITE_SUBDIR= mcrypt
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Replacement for crypt(1)
|
|
|
|
LIB_DEPENDS= mcrypt.8:${PORTSDIR}/security/libmcrypt/ \
|
|
mhash.2:${PORTSDIR}/security/mhash/
|
|
|
|
USE_AUTOTOOLS= autoconf:259:env
|
|
USE_GETTEXT= yes
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
|
CONFIGURE_ARGS+= --enable-static --with-catgets
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib -lintl"
|
|
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
|
GNU_CONFIGURE= yes
|
|
DOCS= FORMAT magic
|
|
MAN1= mcrypt.1
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
PLIST= ${WRKDIR}/pkg-plist
|
|
|
|
# to avoid having to read the configure script
|
|
pre-configure:
|
|
cd ${WRKSRC} && ${RM} configure && ${AUTOCONF}
|
|
|
|
pre-install:
|
|
${ECHO_CMD} bin/${PORTNAME} > ${PLIST}
|
|
.for i in cs de el es_AR pl
|
|
${ECHO_CMD} share/locale/${i}/LC_MESSAGES/mcrypt.mo >> ${PLIST}
|
|
${ECHO_CMD} @dirrmtry share/locale/${i}/LC_MESSAGES >> ${PLIST}
|
|
${ECHO_CMD} @dirrmtry share/locale/${i} >> ${PLIST}
|
|
.endfor
|
|
.if !defined(NOPORTDOCS)
|
|
${ECHO_CMD} share/examples/${PORTNAME}/sample.mcryptrc >> ${PLIST}
|
|
${ECHO_CMD} @dirrm share/examples/${PORTNAME} >> ${PLIST}
|
|
.for i in ${DOCS}
|
|
${ECHO_CMD} share/doc/${PORTNAME}/${i} >> ${PLIST}
|
|
.endfor
|
|
${ECHO_CMD} @dirrm share/doc/${PORTNAME} >> ${PLIST}
|
|
.endif
|
|
${ECHO_CMD} "*** WARNING ***" > ${PKGMESSAGE}
|
|
${ECHO_CMD} \
|
|
"The source for this package has not been reviewed by the FreeBSD maintainer." \
|
|
>> ${PKGMESSAGE}
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/mcrypt ${PREFIX}/bin/
|
|
.for i in cs de el es_AR 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} ${MANPREFIX}/man/man1/
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${PREFIX}/share/examples/${PORTNAME} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/sample.mcryptrc ${EXAMPLESDIR}/
|
|
.for i in ${DOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR}/
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|