aboutsummaryrefslogtreecommitdiffstats
path: root/security/gnutls-devel/Makefile
blob: d9ca061fdc4d658755f39267e2704cb09f5c449f (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
65
66
67
68
69
70
71
72
# New ports collection makefile for:    gnutls
# Date created:             13 Nov 2002
# Whom:                 Sergei Kolobov <sergei@kolobov.com>
#
# $FreeBSD$
#

PORTNAME=   gnutls-devel
PORTVERSION=    1.3.2
CATEGORIES= security net
MASTER_SITES=   http://josefsson.org/gnutls/releases/ \
        ${MASTER_SITE_GNUPG} \
        http://www.mirrors.wiretapped.net/security/network-security/gnutls/ \
        ftp://ftp.mirrors.wiretapped.net/security/network-security/gnutls/ \
        ftp://ftp.gnutls.org/pub/gnutls/
MASTER_SITE_SUBDIR= alpha/gnutls
DISTNAME=   gnutls-${PORTVERSION}

MAINTAINER= novel@FreeBSD.org
COMMENT=    GNU Transport Layer Security library

BUILD_DEPENDS=  ${LOCALBASE}/bin/makeinfo:${PORTSDIR}/print/texinfo
LIB_DEPENDS=    gcrypt.13:${PORTSDIR}/security/libgcrypt \
        gpg-error.1:${PORTSDIR}/security/libgpg-error

.if defined(WITH_OPENCDK) || exists(${LOCALBASE}/lib/libopencdk.so.8)
LIB_DEPENDS+=   opencdk.8:${PORTSDIR}/security/opencdk
.endif

.if defined(WITH_LIBTASN1) || exists(${LOCALBASE}/lib/libtasn1.so.2)
LIB_DEPENDS+=   tasn1.2:${PORTSDIR}/security/libtasn1
.endif

CONFLICTS=  gnutls-[0-9]*

USE_BZIP2=  yes
USE_ICONV=  yes
USE_GETTEXT=    yes
USE_GNOME=  pkgconfig
USE_REINPLACE=  yes
USE_AUTOTOOLS=  libtool:15:inc
INSTALLS_SHLIB= yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
MAKE_ARGS=  MAKEINFO="${LOCALBASE}/bin/makeinfo"
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
        MAKEINFO="${LOCALBASE}/bin/makeinfo"
CONFIGURE_TARGET=   --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-included-lzo --disable-static
MANCOMPRESSED=  no

.if !defined(NOPORTDOCS)
PORTDOCS=   AUTHORS NEWS README THANKS
.endif
EXAMPLES=   doc/examples/*.c

post-patch:
    @${REINPLACE_CMD} -e 's,(libdir)/pkgconfig,(prefix)/libdata/pkgconfig,' \
        ${WRKSRC}/lib/Makefile.in ${WRKSRC}/libextra/Makefile.in

post-install:
    @${MKDIR} ${EXAMPLESDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
    @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

.include "Makefile.man"
.include <bsd.port.mk>