aboutsummaryrefslogtreecommitdiffstats
path: root/devel/librelp/Makefile
blob: f4f6a833894cd2fe3cb0f238bf66d072396c7834 (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
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>

PORTNAME=   librelp
PORTVERSION=    1.10.0
CATEGORIES= devel
MASTER_SITES=   http://download.rsyslog.com/librelp/

MAINTAINER= matthew@FreeBSD.org
COMMENT=    Reliable event logging protocol library

LICENSE=    GPLv3

OPTIONS_MULTI=          SSLLIB
OPTIONS_MULTI_SSLLIB=       GNUTLS OPENSSL
OPTIONS_DEFAULT=        GNUTLS OPENSSL

GNUTLS_LIB_DEPENDS=     libgnutls.so:security/gnutls
GNUTLS_CONFIGURE_ENABLE=    tls

OPENSSL_USES=           ssl
OPENSSL_CONFIGURE_ENABLE=   tls-openssl
OPENSSL_CONFIGURE_ENV=      OPENSSL_LIBS="-L${OPENSSLLIB} -lssl -lcrypto" \
                OPENSSL_CFLAGS="-I ${OPENSSLINC}"

USES=       libtool pathfix pkgconfig
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
INSTALL_TARGET= install-strip

PLIST_FILES=    include/${PORTNAME}.h \
        lib/${PORTNAME}.a \
        lib/${PORTNAME}.so lib/${PORTNAME}.so.0 \
        lib/${PORTNAME}.so.0.5.1 \
        libdata/pkgconfig/relp.pc

PORT_VERBS= relp

post-patch:
    @${REINPLACE_CMD} -e '/CFLAGS/s| -g||g' \
        ${WRKSRC}/configure

.include <bsd.port.mk>