aboutsummaryrefslogtreecommitdiffstats
path: root/security/opencdk/Makefile
blob: 001d074257bfb0594c7639c57e636b6e2305ad87 (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
# Created by: Sergei Kolobov <sergei@kolobov.com>
# $FreeBSD$

PORTNAME=   opencdk
PORTVERSION=    0.6.6
PORTREVISION=   8
PORTEPOCH=  1
CATEGORIES= security
MASTER_SITES=   http://josefsson.org/gnutls/releases/opencdk/

MAINTAINER= novel@FreeBSD.org
COMMENT=    Open Crypto Development Kit

LICENSE=    GPLv2+
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libgcrypt.so:security/libgcrypt

GNU_CONFIGURE=  yes
USES=       libtool pathfix pkgconfig tar:bzip2
USE_LDCONFIG=   yes
CONFIGURE_ARGS= --with-libgcrypt-prefix=${LOCALBASE}

DOCS=       AUTHORS NEWS README THANKS doc/opencdk-api.html

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e '/^LDADD/ s/$$/ $$(LIBGCRYPT_LIBS)/' ${WRKSRC}/tests/Makefile.in

post-install:
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/tests/*.c ${STAGEDIR}${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/tests/*.gpg ${STAGEDIR}${EXAMPLESDIR}

post-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>