aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/eiskaltdcpp-gtk/Makefile
blob: d26dde3e697f8eff60746fddab8f1beb374b370d (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
# Created by: Stas Timokhin <stast@bsdportal.ru>
# $FreeBSD$

PORTNAME=	eiskaltdcpp-gtk
PORTVERSION=	2.2.4
PORTREVISION=	3
CATEGORIES=	net-p2p
MASTER_SITES=	GOOGLE_CODE
DISTNAME=	eiskaltdcpp-${DISTVERSION}

MAINTAINER=	fjoe@FreeBSD.org
COMMENT=	EiskaltDC++ Direct Connect client GTK GUI

LICENSE=	GPLv3

RUN_DEPENDS=	${LOCALBASE}/share/eiskaltdcpp/keep_me:${PORTSDIR}/net-p2p/eiskaltdcpp-data
LIB_DEPENDS=	eiskaltdcpp:${PORTSDIR}/net-p2p/eiskaltdcpp-lib
BUILD_DEPENDS+=	chrpath:${PORTSDIR}/devel/chrpath

CMAKE_ARGS+=	-DBUILD_LIB:BOOL=OFF
PROJECTHOST=	eiskaltdc

USE_XZ=		yes
USE_GCC=	yes
USES=		cmake gettext
USE_OPENSSL=	yes

MAN1=		${PORTNAME}.1
MANCOMPRESSED=	yes

OPTIONS_DEFINE=	MINIUPNP LIBGNOME2 LIBNOTIFY
OPTIONS_DEFAULT=	MINIUPNP LIBNOTIFY
MINIUPNP_DESC=	UPnP support
LIBGNOME2_DESC=	Sound notification support
LIBNOTIFY_DESC=	Popup notification support

USE_GNOME=	pango gtk20 glib20

CMAKE_ARGS+=	-DUSE_QT:BOOL=OFF
CMAKE_ARGS+=	-DUSE_GTK:BOOL=ON
CMAKE_ARGS+=	-DEISKALTDCPP_INCLUDE_DIR:STRING="${LOCALBASE}/include/eiskaltdcpp"
CMAKE_ARGS+=	-DCREATE_MO:BOOL=ON
CMAKE_ARGS+=	-DCMAKE_LIBRARY_PATH:PATH="${LOCALBASE}/lib:${PREFIX}/lib"
CMAKE_ARGS+=	-DCMAKE_SKIP_RPATH:BOOL=ON
CMAKE_ARGS+=	-DINSTALL_DATA:BOOL=OFF

NO_STAGE=	yes
.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MMINIUPNP}
LIB_DEPENDS+=	miniupnpc:${PORTSDIR}/net/miniupnpc
CMAKE_ARGS+=	-DUSE_MINIUPNP:BOOL=ON -DLOCAL_MINIUPNP:BOOL=OFF
.else
CMAKE_ARGS+=	-DUSE_MINIUPNP:BOOL=OFF
.endif

.if ${PORT_OPTIONS:MLIBGNOME2}
USE_GNOME+=	libgnome
CMAKE_ARGS+=	-DUSE_LIBGNOME2:BOOL=ON
.else
CMAKE_ARGS+=	-DUSE_LIBGNOME2:BOOL=OFF
.endif

.if ${PORT_OPTIONS:MLIBNOTIFY}
LIB_DEPENDS+=	notify:${PORTSDIR}/devel/libnotify
CMAKE_ARGS+=	-DUSE_LIBNOTIFY:BOOL=ON
.else
CMAKE_ARGS+=	-DUSE_LIBNOTIFY:BOOL=OFF
.endif

post-build:
	${LOCALBASE}/bin/chrpath -r "${_GCC_RUNTIME}" "${WRKSRC}/${PORTNAME}/${PORTNAME}"

.include <bsd.port.mk>