aboutsummaryrefslogtreecommitdiffstats
path: root/devel/gwenhywfar/Makefile
blob: b30cc7c5c182ca04deead732d92c087f990a6ce3 (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# New ports collection makefile for:    gwenhywfar
# Date created:     2005-05-05
# Whom:         Peter Cornelius <pcc.at.gmx.net>
#
# $FreeBSD$
#

PORTNAME=   gwenhywfar
PORTVERSION=    4.0.9
CATEGORIES= devel net security
MASTER_SITES=   http://www2.aquamaniac.de/sites/download/
DISTFILES=  download.php\?package=01\&release=60\&file=01\&dummy=${DISTNAME}${EXTRACT_SUFX}

MAINTAINER= bsdkaffee@gmail.com
COMMENT=    Multi-platform helper library for networking and security applications

LIB_DEPENDS=    gnutls.40:${PORTSDIR}/security/gnutls

USE_GMAKE=  yes
USE_GETTEXT=    yes
USE_OPENSSL=    yes
USE_AUTOTOOLS=  libtool
USE_GNOME=  gnomehack pkgconfig

LICENSE=    LGPL21
LICENSE_FILE=   ${WRKSRC}/COPYING

OPTIONS=    APIDOC "Full API documentation (requires Doxygen)" off \
        MEMDEBUG "Enable memory debugger statistic" off \
        FOX16 "Build FOX 1.6 GUI" off \
        GTK2 "Build GTK 2.x GUI (for GnuCash)" on \
        QT4 "Build Qt 4.x GUI (for KMyMoney)" on

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --enable-release="yes" \
        --with-guis="${_GWEN_GUIS}"
CPPFLAGS+=  -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+=   -L${LOCALBASE}/lib ${PTHREAD_LIBS}
MAKE_JOBS_SAFE= yes

PLIST_SUB=  GWEN_SHLIB_VER="${GWEN_SHLIB_VER}"
USE_LDCONFIG=   yes

GWEN_SHLIB_VER= 60

.include <bsd.port.options.mk>

.if !defined(NOPORTDOCS) && defined(WITH_APIDOC)
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
CONFIGURE_ARGS+=--enable-full-doc
PORTDOCS=   apidoc
.endif

.if defined(WITH_MEMDEBUG)
CONFIGURE_ARGS+=--enable-memtrace
.endif

.if defined(WITH_FOX16)
LIB_DEPENDS+=   FOX-1.6:${PORTSDIR}/x11-toolkits/fox16
PLIST_SUB+= WITH_FOX16=""
_GWEN_GUIS+=    fox16
.else
PLIST_SUB+= WITH_FOX16="@comment "
.endif

.if defined(WITH_GTK2)
USE_GNOME+= gtk20
PLIST_SUB+= WITH_GTK2=""
_GWEN_GUIS+=    gtk2
.else
PLIST_SUB+= WITH_GTK2="@comment "
.endif

.if defined(WITH_QT4)
USE_QT_VER= 4
QT_COMPONENTS=  gui moc_build uic_build
QT_NONSTANDARD= yes
PLIST_SUB+= WITH_QT4=""
_GWEN_GUIS+=    qt4
.else
PLIST_SUB+= WITH_QT4="@comment "
.endif

post-build:
.if !defined(NOPORTDOCS) && defined(WITH_APIDOC)
    @cd ${WRKSRC} && ${GMAKE} srcdoc
.endif

post-install:
.if !defined(NOPORTDOCS) && defined(WITH_APIDOC)
    ${MKDIR} ${DOCSDIR}/apidoc
    cd ${WRKSRC}/apidoc && \
        ${COPYTREE_SHARE} \* ${DOCSDIR}/apidoc
.endif

.include <bsd.port.mk>