1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/security/bugs/Makefile

64 lines
1.9 KiB
Makefile
Raw Normal View History

# Created by: Stephane Legrand <stephane@lituus.fr>
1999-08-31 01:53:22 +00:00
# $FreeBSD$
PORTNAME= bugs
PORTVERSION= 4.1.1
PORTREVISION= 2
CATEGORIES= security
MASTER_SITES= SUNSITE/apps/crypto
MAINTAINER= ports@FreeBSD.org
COMMENT= Great cryptographic library and sample programs
LICENSE= GPLv2
USES= gmake tar:tgz
MAKE_ARGS= CC="${CC}" BFLAG="${CFLAGS}" \
INSTALL_PATH="${PREFIX}/${DISTNAME}"
PLIST_SUB= PORTVERSION="${PORTVERSION}"
DOCSDIR= ${PREFIX}/${DISTNAME}/doc
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
post-configure:
${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
post-build:
@${LN} -sf ${WRKSRC}/lib/unix/*.a ${WRKSRC}/lib/
post-install:
2014-06-10 15:20:59 +00:00
@${MKDIR} ${STAGEDIR}${PREFIX}/${DISTNAME}/include
${INSTALL_DATA} ${WRKSRC}/include/*.h ${STAGEDIR}${PREFIX}/${DISTNAME}/include
.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}
.endfor
.if ${PORT_OPTIONS:MDOCS}
2014-06-10 15:20:59 +00:00
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
.endif
test: build
${MAKE_CMD} -C ${WRKSRC} test
regression-test: test
.include <bsd.port.mk>