summaryrefslogtreecommitdiffstats
path: root/net/gtk-gnutella/Makefile
blob: a64ba12146e128dfa72d41bd918d38c3c26a0773 (plain)
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
97
98
99
# New ports collection makefile for:	gtk-gnutella
# Date created:				19 May, 2000
# Whom:					rbt@zort.on.ca
#
# $FreeBSD$
#

#
# A quick note on configurable make symbols:
#
# INTERACTIVE_CONFIGURE: Launches Configure in its default mode,
#	which is *very* interactive. Disabled here by default to conform to
#	FreeBSD guidelines, this mode is useful if you have problems with the
#	default Configure.
#
# WITH_GTK2: Configure and build for gtk2.
#
# WITH_PORTABILITY: Configure code to use the PATH variable at run-time
#	at a cost in performance. Useful if you intend to move the executable
#	to multiple machines.
#
# WITH_DEBUG: Compile with debugging symbols. Useful if you intend to make
#	a bug report.
#

PORTNAME=	gtk-gnutella
DISTVERSION=	0.96b
CATEGORIES=	net
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE} \
		http://gtk-gnutella.sourceforge.net/download/ \
		ftp://gtk-gnutella.sourceforge.net/pub/gtk-gnutella/
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	jonas@schiebtsich.net
COMMENT=	GTK based Gnutella client

USE_PERL5=	yes
USE_X_PREFIX=	yes
USE_BZIP2=	yes
USE_BISON=	yes
USE_GNOME=	libxml2
INSTALL_TARGET=	install install.man
HAS_CONFIGURE=	yes
CONFIGURE_SCRIPT=	Configure
CONFIGURE_ARGS=	-Dyacc='bison -y' -Dofficial='true' -Dprefix=${PREFIX} \
		-Dprivlib=${PREFIX}/share/gtk-gnutella \
		-Dsysman=${PREFIX}/man/man1 -Dlocale=${PREFIX}/share/locale \
		-Dcc='${CC}' -Dccflags='${CFLAGS} -I${LOCALBASE}/include' \
		-Doptimize='undef' -Dlibpth='/usr/lib ${LOCALBASE}/lib' \
		-Dd_enablenls='define'

MAN1=		gtk-gnutella.1

OPTIONS=	GTK2 "Build with gtk2 frontend" on \
		TLS "enable GNU TLS encryption support" off \
		IPV6 "enable IPv6 support" off \
		DBUS "enable DBUS support" off \
		DEBUG "Build with debugging symbols" off \
		PORTABILITY "Use the PATH variable at run-time" off

.include <bsd.port.pre.mk>

.if !defined(INTERACTIVE_CONFIGURE)
CONFIGURE_ARGS+=	-d -e
.endif

.if defined(WITH_DEBUG)
CONFIGURE_ARGS+=	-Doptimize=-g  -Uofficial=
.endif

.if defined(WITH_GTK2)
CONFIGURE_ARGS+=	-Dgtkversion=2
USE_GNOME+=		gtk20
.else
CONFIGURE_ARGS+=	-Dgtkversion=1
USE_GNOME+=		gtk12
.endif

.if defined(WITH_PORTABILITY)
CONFIGURE_ARGS+=	-Dd_portable=true
.endif

.if defined(WITH_TLS)
LIB_DEPENDS+=		gnutls:${PORTSDIR}/security/gnutls
.else
CONFIGURE_ARGS+=	-Dd_gnutls=undef
.endif

.if !defined(WITH_IPV6)
CONFIGURE_ARGS+=	-D ipv6=false
.endif

.if defined(WITH_DBUS)
LIB_DEPENDS+=		dbus:${PORTSDIR}/devel/dbus
.else
CONFIGURE_ARGS+=	-D dbus=false
.endif

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud