1 # Created by: rbt@zort.on.ca
2 # $FreeBSD: net-p2p/gtk-gnutella/Makefile 324181 2013-08-03 08:45:51Z az $
5 # A quick note on configurable make symbols:
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
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
17 # WITH_TLS: Enable support for scrambling GNet connections. Currently supported
18 # only by Gtk-Gnutella.
20 # WITH_NLS: Enable National Language Support for translation of User Interface.
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.
25 # WITH_DBUS: Enable D-Bus IPC support. No further information available.
27 # WITH_SQLITE: Enable to support storage of run-time information to a SQLite
28 # database file. Should ideally save some memory.
30 # WITH_DEBUG: Compile with debugging symbols. Useful if you intend to make
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.
38 PORTNAME= gtk-gnutella
41 CATEGORIES= net-p2p ipv6
44 MAINTAINER= ports@FreeBSD.org
45 COMMENT= GTK based Gnutella client
47 LICENSE= GPLv2 # (or later)
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
53 ONLY_FOR_ARCHS= i386 amd64
56 USE_GNOME= glib20 libxml2
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' \
65 INSTALL_TARGET= install install.man
68 PLIST_SUB= ARCH="${ARCH}"
72 .include <bsd.port.options.mk>
74 .if !defined(INTERACTIVE_CONFIGURE)
75 CONFIGURE_ARGS+= -ders
78 .if ${PORT_OPTIONS:MDEBUG}
79 CONFIGURE_ARGS+= -D optimize=-g -D official=false
81 CONFIGURE_ARGS+= -D official=true
84 .if ${PORT_OPTIONS:MGUI}
86 CONFIGURE_ARGS+= -D gtkversion=2
88 CONFIGURE_ARGS+= -D d_headless
91 .if ${PORT_OPTIONS:MPORTABILITY}
92 CONFIGURE_ARGS+= -D d_portable
95 .if ${PORT_OPTIONS:MTLS}
96 LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls
98 CONFIGURE_ARGS+= -U d_gnutls
101 .if ${PORT_OPTIONS:MNLS}
103 CONFIGURE_ARGS+= -D d_nls
106 CONFIGURE_ARGS+= -U d_nls
107 PLIST_SUB+= NLS="@comment "
110 .if empty(PORT_OPTIONS:MIPV6)
111 CONFIGURE_ARGS+= -D ipv6=false
114 .if ${PORT_OPTIONS:MDBUS}
115 LIB_DEPENDS+= dbus:${PORTSDIR}/devel/dbus
117 CONFIGURE_ARGS+= -U d_dbus
120 .if ${PORT_OPTIONS:MSQLITE}
123 CONFIGURE_ARGS+= -U d_sqlite
126 .include <bsd.port.mk>