2013-09-22 09:12:31 +00:00
|
|
|
# Created by: Stephane Legrand <stephane@lituus.fr>
|
1999-08-31 01:53:22 +00:00
|
|
|
# $FreeBSD$
|
1998-07-05 23:58:41 +00:00
|
|
|
|
2003-10-12 17:47:26 +00:00
|
|
|
PORTNAME= bugs
|
|
|
|
PORTVERSION= 4.1.1
|
2008-06-23 07:50:24 +00:00
|
|
|
PORTREVISION= 2
|
2003-10-12 17:47:26 +00:00
|
|
|
CATEGORIES= security
|
2011-08-08 16:08:42 +00:00
|
|
|
MASTER_SITES= SUNSITE/apps/crypto
|
2003-10-12 17:47:26 +00:00
|
|
|
|
2007-05-25 00:39:40 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-09-22 09:12:31 +00:00
|
|
|
COMMENT= Great cryptographic library and sample programs
|
1998-07-05 23:58:41 +00:00
|
|
|
|
2011-08-08 16:08:42 +00:00
|
|
|
LICENSE= GPLv2
|
2001-02-26 04:55:21 +00:00
|
|
|
|
2014-07-29 19:11:51 +00:00
|
|
|
USES= gmake tar:tgz
|
2013-09-22 09:12:31 +00:00
|
|
|
MAKE_ARGS= CC="${CC}" BFLAG="${CFLAGS}" \
|
|
|
|
INSTALL_PATH="${PREFIX}/${DISTNAME}"
|
2002-07-28 05:10:22 +00:00
|
|
|
|
2011-08-08 16:08:42 +00:00
|
|
|
PLIST_SUB= PORTVERSION="${PORTVERSION}"
|
1998-07-05 23:58:41 +00:00
|
|
|
|
2011-08-08 16:08:42 +00:00
|
|
|
DOCSDIR= ${PREFIX}/${DISTNAME}/doc
|
2003-10-13 01:40:27 +00:00
|
|
|
|
2013-09-22 09:12:31 +00:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
# Sanitize permissions so "make clean" can work
|
|
|
|
@${CHMOD} +x ${WRKSRC}/lib/unix ${WRKSRC}/lib/windows
|
|
|
|
# Allow parallel builds (-jX): fix make(1) syntax, register dependencies
|
|
|
|
@${REINPLACE_CMD} -E 's+cd (.*); make+$$(MAKE) -C \1+' \
|
|
|
|
${WRKSRC}/Makefile.bsd
|
|
|
|
@${ECHO_CMD} 'apps: lib' >> ${WRKSRC}/Makefile.bsd
|
|
|
|
@${REINPLACE_CMD} -E '/^(bcrypt|bchat|bpass|blogin|bkey|bpassdel|bmore|block|bunlock|shell):/s+ *$$+ extra.o+' \
|
|
|
|
${WRKSRC}/apps/Makefile.bsd
|
|
|
|
|
1998-07-05 23:58:41 +00:00
|
|
|
post-configure:
|
2013-09-22 09:12:31 +00:00
|
|
|
${MAKE_CMD} -C ${WRKSRC} bsd
|
|
|
|
@${REINPLACE_CMD} -e 's/^install: instchoice all/install: instchoice/' ${WRKSRC}/Makefile;
|
|
|
|
@${REINPLACE_CMD} -e 's+\(@echo "Copying docs.*\)+# \1+' ${WRKSRC}/Makefile;
|
|
|
|
@${REINPLACE_CMD} -e 's+\(@cp -rf ./doc/.*\)+# \1+' ${WRKSRC}/Makefile
|
|
|
|
@${REINPLACE_CMD} -e 's+\(@cp -rf ./doc/.*\)+# \1+' ${WRKSRC}/Makefile
|
1998-07-05 23:58:41 +00:00
|
|
|
|
2001-02-26 04:55:21 +00:00
|
|
|
post-build:
|
2011-08-08 16:08:42 +00:00
|
|
|
@${LN} -sf ${WRKSRC}/lib/unix/*.a ${WRKSRC}/lib/
|
2001-02-26 04:55:21 +00:00
|
|
|
|
1998-07-05 23:58:41 +00:00
|
|
|
post-install:
|
2014-06-10 15:20:59 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/${DISTNAME}/include
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/include/*.h ${STAGEDIR}${PREFIX}/${DISTNAME}/include
|
2011-08-08 16:08:42 +00:00
|
|
|
.for file in bchat bcrypt bhide bkey block blogin bmore bpass bpassdel bunlock
|
2014-06-10 15:20:59 +00:00
|
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/${DISTNAME}/${file}
|
2011-08-08 16:08:42 +00:00
|
|
|
.endfor
|
2013-09-22 09:12:31 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2014-06-10 15:20:59 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
|
1998-07-05 23:58:41 +00:00
|
|
|
.endif
|
|
|
|
|
2013-09-22 09:12:31 +00:00
|
|
|
test: build
|
|
|
|
${MAKE_CMD} -C ${WRKSRC} test
|
|
|
|
|
|
|
|
regression-test: test
|
|
|
|
|
1998-07-05 23:58:41 +00:00
|
|
|
.include <bsd.port.mk>
|