aboutsummaryrefslogtreecommitdiff
path: root/security/beecrypt/Makefile
blob: b6d77e39e7fb3a1865529abb1857ccf755dd87ab (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
# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>

PORTNAME=	beecrypt
PORTVERSION=	4.2.1
PORTREVISION=	2
CATEGORIES=	security
MASTER_SITES=	SF

PATCHFILES=	mpntrbits.patch
PATCH_SITES=	http://sourceforge.net/p/beecrypt/patches/_discuss/thread/bff89ba1/5387/attachment/

MAINTAINER=	mi@aldan.algebra.com
COMMENT=	Open source cryptographic library

LICENSE=	LGPL21+
LICENSE_FILE=	${WRKSRC}/COPYING.LIB

BROKEN_powerpc64=	Does not build: Error: unsupported relocation against r3

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--without-java --without-python
INSTALL_TARGET=	install-strip
USES=		libtool
USE_LDCONFIG=	yes
TEST_TARGET=	check

OPTIONS_DEFINE=	OPENMP
OPENMP_CONFIGURE_ENABLE=	openmp

.include <bsd.port.options.mk>

post-patch:
.if ${PORT_OPTIONS:MOPENMP}
	@${ECHO_MSG} "Configuring for OpenMP support"
	@${ECHO_MSG} "Any ports depending on beecrypt must be configured for OpenMP too."
.endif

# Configure tries to guess our CPU-features using Linux-centric logic.
# Help it here:
.for o in sse3 sse2 sse mmx
.if ${MACHINE_CPU:M$o} != ""
CPPFLAGS+=	-DOPTIMIZE_${o:tu}
.endif
.endfor

.include <bsd.port.mk>