aboutsummaryrefslogtreecommitdiffstats
path: root/polish/libgadu/Makefile
blob: 96dfa009f30afd7e1b7ca1a265345559f412eac6 (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
# New ports collection makefile for:    libgadu
# Date created:     29 December 2005
# Whom:         Aleksander Fafula <alex@BSDGuru.org>
#
# $FreeBSD$

PORTNAME=   libgadu
DISTVERSION=    1.11.2
PORTEPOCH=  1
CATEGORIES= polish net
MASTER_SITES=   http://toxygen.net/libgadu/files/

MAINTAINER= pawel@FreeBSD.org
COMMENT=    This library is used by many IMs with Gadu-Gadu support

LICENSE=    LGPL21

CONFLICTS=  pl-ekg-1.[0-6]*

USE_GNOME=  gnomehack pkgconfig
GNU_CONFIGURE=  yes

CONFIGURE_ARGS= --enable-shared --disable-static --with-pthread \
        --disable-tests --without-gnutls

USE_LDCONFIG=   yes

PLIST_FILES=    include/libgadu.h \
        lib/libgadu.la \
        lib/libgadu.so \
        lib/libgadu.so.3 \
        libdata/pkgconfig/libgadu.pc

OPTIONS_DEFINE= OPENSSL
OPTIONS_DEFAULT=OPENSSL

.include <bsd.port.pre.mk>

.if ${PORT_OPTIONS:MOPENSSL}
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
.else
CONFIGURE_ARGS+=    --without-openssl
.endif

post-patch:
    @${REINPLACE_CMD} -Ee 's/@SUBDIRS_DOXYGEN@//' ${WRKSRC}/Makefile.in

pre-install:
# OpenSSL from base system lacks .pc file for pkgconfig
.if ${PORT_OPTIONS:MOPENSSL}
    @${REINPLACE_CMD} -e 's|openssl| |g' ${WRKSRC}/pkgconfig/libgadu.pc
.endif

.include <bsd.port.post.mk>