Tweak net-p2p/gtk-gnutella version 0.98.4_1
[dports.git] / net-p2p / gtk-gnutella / Makefile
1 # Created by: rbt@zort.on.ca
2 # $FreeBSD: net-p2p/gtk-gnutella/Makefile 324181 2013-08-03 08:45:51Z az $
3
4 #
5 # A quick note on configurable make symbols:
6 #
7 # INTERACTIVE_CONFIGURE: Launches Configure in its default mode,
8 #       which is *very* interactive. Disabled here by default to conform to
9 #       FreeBSD guidelines, this mode is useful if you have problems with the
10 #       default Configure.
11 #
12 # WITH_GUI: Disable this to build a headless version of Gtk-Gnutella.
13 #       Therefore, monitoring of operations for Gtk-Gnutella will have to be
14 #       done without relying on any GUI, and the configuration is done via
15 #       files only.
16 #
17 # WITH_TLS: Enable support for scrambling GNet connections. Currently supported
18 #       only by Gtk-Gnutella.
19 #
20 # WITH_NLS: Enable National Language Support for translation of User Interface.
21 #
22 # WITH_IPV6: Enable to support IPv6 connections. The real configuration takes
23 #       place at run-time so keeping it enabled will not force IPv6 usage.
24 #
25 # WITH_DBUS: Enable D-Bus IPC support. No further information available.
26 #
27 # WITH_SQLITE: Enable to support storage of run-time information to a SQLite
28 #       database file. Should ideally save some memory.
29 #
30 # WITH_DEBUG: Compile with debugging symbols. Useful if you intend to make
31 #       a bug report.
32 #
33 # WITH_PORTABILITY: Configure code to use the PATH variable at run-time
34 #       at a cost in performance. Useful if you intend to move the executable
35 #       to multiple machines.
36 #
37
38 PORTNAME=       gtk-gnutella
39 PORTVERSION=    0.98.4
40 PORTREVISION=   1
41 CATEGORIES=     net-p2p ipv6
42 MASTER_SITES=   SF
43
44 MAINTAINER=     ports@FreeBSD.org
45 COMMENT=        GTK based Gnutella client
46
47 LICENSE=        GPLv2 # (or later)
48
49 OPTIONS_DEFINE= GUI TLS NLS IPV6 DBUS SQLITE DEBUG PORTABILITY
50 OPTIONS_DEFAULT=GUI TLS
51 PORTABILITY_DESC=       Use the PATH variable at run-time
52
53 ONLY_FOR_ARCHS= i386 amd64
54
55 USE_BZIP2=      yes
56 USE_GNOME=      glib20 libxml2
57 USES=           bison perl5
58 HAS_CONFIGURE=  yes
59 CONFIGURE_SCRIPT=       Configure
60 CONFIGURE_ARGS= -O -Dyacc='bison -y' -Dprefix=${PREFIX} \
61                 -Dprivlib=${DATADIR} -Dsysman=${MANPREFIX}/man/man1 \
62                 -Dlocale=${PREFIX}/share/locale -Dcc='${CC}' \
63                 -Dccflags='${CFLAGS} -I${LOCALBASE}/include' \
64                 -Doptimize='undef'
65 INSTALL_TARGET= install install.man
66 MAKE_JOBS_UNSAFE=       yes
67
68 PLIST_SUB=      ARCH="${ARCH}"
69
70 MAN1=           gtk-gnutella.1
71
72 .include <bsd.port.options.mk>
73
74 .if !defined(INTERACTIVE_CONFIGURE)
75 CONFIGURE_ARGS+=        -ders
76 .endif
77
78 .if ${PORT_OPTIONS:MDEBUG}
79 CONFIGURE_ARGS+=        -D optimize=-g  -D official=false
80 .else
81 CONFIGURE_ARGS+=        -D official=true
82 .endif
83
84 .if ${PORT_OPTIONS:MGUI}
85 USE_GNOME+=             gtk20
86 CONFIGURE_ARGS+=        -D gtkversion=2
87 .else
88 CONFIGURE_ARGS+=        -D d_headless
89 .endif
90
91 .if ${PORT_OPTIONS:MPORTABILITY}
92 CONFIGURE_ARGS+=        -D d_portable
93 .endif
94
95 .if ${PORT_OPTIONS:MTLS}
96 LIB_DEPENDS+=           gnutls:${PORTSDIR}/security/gnutls
97 .else
98 CONFIGURE_ARGS+=        -U d_gnutls
99 .endif
100
101 .if ${PORT_OPTIONS:MNLS}
102 USES+=          gettext
103 CONFIGURE_ARGS+=        -D d_nls
104 PLIST_SUB+=             NLS=""
105 .else
106 CONFIGURE_ARGS+=        -U d_nls
107 PLIST_SUB+=             NLS="@comment "
108 .endif
109
110 .if empty(PORT_OPTIONS:MIPV6)
111 CONFIGURE_ARGS+=        -D ipv6=false
112 .endif
113
114 .if ${PORT_OPTIONS:MDBUS}
115 LIB_DEPENDS+=           dbus:${PORTSDIR}/devel/dbus
116 .else
117 CONFIGURE_ARGS+=        -U d_dbus
118 .endif
119
120 .if ${PORT_OPTIONS:MSQLITE}
121 USE_SQLITE=             yes
122 .else
123 CONFIGURE_ARGS+=        -U d_sqlite
124 .endif
125
126 .include <bsd.port.mk>