aboutsummaryrefslogtreecommitdiffstats
path: root/security/pbc/Makefile
blob: 5978f62ae580b082601fe3e63e346199957d2e14 (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
# Created by: Wen Heping <wenheping@gmail.com>
# $FreeBSD$

PORTNAME=   pbc
PORTVERSION=    0.5.14
PORTREVISION=   1
CATEGORIES= security
MASTER_SITES=   http://crypto.stanford.edu/pbc/files/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Library of pairing-based cryptosystems

LICENSE=    LGPL3
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libgmp.so:${PORTSDIR}/math/gmp

USES=       bison libtool
GNU_CONFIGURE=  yes
USE_LDCONFIG=   yes
INSTALL_TARGET= install-strip

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

post-patch:
    @${REINPLACE_CMD} -e \
        's|^CFLAGS=$$|| ; \
         s|-O3||' ${WRKSRC}/configure

.include <bsd.port.mk>