blob: 17cfef35fb4201564b6bade287781b1e6534c26e (
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
55
56
57
58
59
60
61
62
63
64
|
# Created by: Stephane Legrand <stephane@lituus.fr>
# $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
LICENSE_FILE= ${WRKSRC}/COPYING
USES= gmake tar:tgz
MAKE_ARGS= CC="${CC}" BFLAG="${CFLAGS}" \
INSTALL_PATH="${PREFIX}/${DISTNAME}"
TEST_TARGET= test
PLIST_SUB= PORTVERSION="${PORTVERSION}"
DOCSDIR= ${PREFIX}/${DISTNAME}/doc
OPTIONS_DEFINE= DOCS
post-patch:
# 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:
@${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
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/${DISTNAME}/${file}
.endfor
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100077
# chmod -R bug
post-extract:
${CHMOD} +x ${WRKSRC}/lib/unix ${WRKSRC}/lib/windows
.endif
.include <bsd.port.post.mk>
|