blob: 071574da24c84d6f7b1231d18a7a785e618a859c (
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
|
# New ports collection makefile for: opencdk
# Date created: 15 Jan 2003
# Whom: Sergei Kolobov <sergei@kolobov.com>
#
# $FreeBSD$
#
PORTNAME= opencdk
PORTVERSION= 0.4.1
CATEGORIES= security
MASTER_SITES= http://gd.tuwien.ac.at/privacy/gnupg/alpha/gnutls/opencdk/ \
http://www.mirrors.wiretapped.net/security/network-security/gnutls/opencdk/ \
ftp://ftp.gnupg.org/pub/gcrypt/alpha/gnutls/opencdk/ \
ftp://ftp.mirrors.wiretapped.net/security/network-security/gnutls/opencdk/ \
ftp://ftp.gnutls.org/pub/gnutls/opencdk/
MAINTAINER= sergei@kolobov.com
LIB_DEPENDS= gcrypt.6:${PORTSDIR}/security/libgcrypt
USE_LIBTOOL= yes
INSTALLS_SHLIB= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-libgcrypt-prefix=${LOCALBASE}
USE_REINPLACE= yes
DOCS= AUTHORS NEWS README THANKS
post-patch:
${REINPLACE_CMD} -e 's,#include <malloc.h>,#include<stdlib.h>,' \
${WRKSRC}/src/encrypt.c ${WRKSRC}/src/main.c
post-install:
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/tests/*.c ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/tests/*.gpg ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
${INSTALL_DATA} ${WRKSRC}/doc/opencdk-api.html ${DOCSDIR}
.endif
.include <bsd.port.mk>
|