|
Lines 9-21
Link Here
|
| 9 |
# FreeBSD guidelines, this mode is useful if you have problems with the |
9 |
# FreeBSD guidelines, this mode is useful if you have problems with the |
| 10 |
# default Configure. |
10 |
# default Configure. |
| 11 |
# |
11 |
# |
| 12 |
# WITH_X11: Disable this to build a headless version of Gtk-Gnutella. The |
12 |
# WITH_GUI: Disable this to build a headless version of Gtk-Gnutella. |
| 13 |
# resulting executable won't use or depend on any Gtk version and |
13 |
# Therefore, monitoring of operations for Gtk-Gnutella will have to be |
| 14 |
# Gtk-Gnutella can only be controlled through the remote shell. |
14 |
# done without relying on any GUI, and the configuration is done via |
| 15 |
# Use with caution! |
15 |
# files only. |
| 16 |
# |
|
|
| 17 |
# WITH_GTK2: Enable to configure and build with GTK 2, disable to configure and |
| 18 |
# build with GTK 1.2. Will be ignored if WITH_X11 is disabled! |
| 19 |
# |
16 |
# |
| 20 |
# WITH_TLS: Enable support for scrambling GNet connections. Currently supported |
17 |
# WITH_TLS: Enable support for scrambling GNet connections. Currently supported |
| 21 |
# only by Gtk-Gnutella. |
18 |
# only by Gtk-Gnutella. |
|
Lines 39-72
Link Here
|
| 39 |
# |
36 |
# |
| 40 |
|
37 |
|
| 41 |
PORTNAME= gtk-gnutella |
38 |
PORTNAME= gtk-gnutella |
| 42 |
PORTVERSION= 0.96.9 |
39 |
PORTVERSION= 0.98.4 |
| 43 |
PORTREVISION= 2 |
|
|
| 44 |
CATEGORIES= net-p2p ipv6 |
40 |
CATEGORIES= net-p2p ipv6 |
| 45 |
MASTER_SITES= SF |
41 |
MASTER_SITES= SF |
| 46 |
|
42 |
|
| 47 |
MAINTAINER= ports@FreeBSD.org |
43 |
MAINTAINER= ports@FreeBSD.org |
| 48 |
COMMENT= GTK based Gnutella client |
44 |
COMMENT= GTK based Gnutella client |
| 49 |
|
45 |
|
| 50 |
USE_PERL5= yes |
46 |
LICENSE= GPLv2 # (or later) |
|
|
47 |
|
| 48 |
OPTIONS_DEFINE= GUI TLS NLS IPV6 DBUS SQLITE DEBUG PORTABILITY |
| 49 |
OPTIONS_DEFAULT=GUI TLS |
| 50 |
PORTABILITY_DESC= Use the PATH variable at run-time |
| 51 |
|
| 52 |
ONLY_FOR_ARCHS= i386 amd64 |
| 53 |
|
| 51 |
USE_BZIP2= yes |
54 |
USE_BZIP2= yes |
|
|
55 |
USE_GNOME= glib20 libxml2 |
| 56 |
USE_PERL5= yes |
| 52 |
USE_BISON= build |
57 |
USE_BISON= build |
| 53 |
MAKE_JOBS_UNSAFE= yes |
|
|
| 54 |
USE_GNOME= libxml2 glib20 |
| 55 |
INSTALL_TARGET= install install.man |
| 56 |
HAS_CONFIGURE= yes |
58 |
HAS_CONFIGURE= yes |
| 57 |
CONFIGURE_SCRIPT= Configure |
59 |
CONFIGURE_SCRIPT= Configure |
| 58 |
CONFIGURE_ARGS= -O -Dyacc='bison -y' -Dprefix=${PREFIX} \ |
60 |
CONFIGURE_ARGS= -O -Dyacc='bison -y' -Dprefix=${PREFIX} \ |
| 59 |
-Dprivlib=${PREFIX}/share/gtk-gnutella \ |
61 |
-Dprivlib=${DATADIR} -Dsysman=${MANPREFIX}/man/man1 \ |
| 60 |
-Dsysman=${PREFIX}/man/man1 -Dlocale=${PREFIX}/share/locale \ |
62 |
-Dlocale=${PREFIX}/share/locale -Dcc='${CC}' \ |
| 61 |
-Dcc='${CC}' -Dccflags='${CFLAGS} -I${LOCALBASE}/include' \ |
63 |
-Dccflags='${CFLAGS} -I${LOCALBASE}/include' \ |
| 62 |
-Doptimize='undef' |
64 |
-Doptimize='undef' |
| 63 |
ONLY_FOR_ARCHS= i386 amd64 |
65 |
INSTALL_TARGET= install install.man |
|
|
66 |
MAKE_JOBS_UNSAFE= yes |
| 64 |
|
67 |
|
| 65 |
MAN1= gtk-gnutella.1 |
68 |
PLIST_SUB= ARCH="${ARCH}" |
| 66 |
|
69 |
|
| 67 |
OPTIONS_DEFINE= X11 GTK2 GNUTLS NLS IPV6 DBUS SQLITE DEBUG PORTABILITY |
70 |
MAN1= gtk-gnutella.1 |
| 68 |
OPTIONS_DEFAULT= X11 GTK2 GNUTLS |
|
|
| 69 |
PORTABILITY_DESC= Use the PATH variable at run-time |
| 70 |
|
71 |
|
| 71 |
.include <bsd.port.options.mk> |
72 |
.include <bsd.port.options.mk> |
| 72 |
|
73 |
|
|
Lines 80-94
Link Here
|
| 80 |
CONFIGURE_ARGS+= -D official=true |
81 |
CONFIGURE_ARGS+= -D official=true |
| 81 |
.endif |
82 |
.endif |
| 82 |
|
83 |
|
| 83 |
.if ${PORT_OPTIONS:MX11} |
84 |
.if ${PORT_OPTIONS:MGUI} |
| 84 |
USE_XORG= x11 |
|
|
| 85 |
.if ${PORT_OPTIONS:MGTK2} |
| 86 |
CONFIGURE_ARGS+= -D gtkversion=2 |
| 87 |
USE_GNOME+= gtk20 |
85 |
USE_GNOME+= gtk20 |
| 88 |
.else |
86 |
CONFIGURE_ARGS+= -D gtkversion=2 |
| 89 |
CONFIGURE_ARGS+= -D gtkversion=1 |
|
|
| 90 |
USE_GNOME+= gtk12 |
| 91 |
.endif |
| 92 |
.else |
87 |
.else |
| 93 |
CONFIGURE_ARGS+= -D d_headless |
88 |
CONFIGURE_ARGS+= -D d_headless |
| 94 |
.endif |
89 |
.endif |
|
Lines 97-135
Link Here
|
| 97 |
CONFIGURE_ARGS+= -D d_portable |
92 |
CONFIGURE_ARGS+= -D d_portable |
| 98 |
.endif |
93 |
.endif |
| 99 |
|
94 |
|
| 100 |
.if ${PORT_OPTIONS:MGNUTLS} |
95 |
.if ${PORT_OPTIONS:MTLS} |
| 101 |
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls |
96 |
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls |
| 102 |
.else |
97 |
.else |
| 103 |
CONFIGURE_ARGS+= -U d_gnutls |
98 |
CONFIGURE_ARGS+= -U d_gnutls |
| 104 |
.endif |
99 |
.endif |
| 105 |
|
100 |
|
| 106 |
.if ${PORT_OPTIONS:MNLS} |
101 |
.if ${PORT_OPTIONS:MNLS} |
| 107 |
CONFIGURE_ARGS+= -D d_nls |
|
|
| 108 |
USE_GETTEXT= yes |
102 |
USE_GETTEXT= yes |
| 109 |
PLIST_FILES= share/locale/de/LC_MESSAGES/gtk-gnutella.mo \ |
103 |
CONFIGURE_ARGS+= -D d_nls |
| 110 |
share/locale/el/LC_MESSAGES/gtk-gnutella.mo \ |
104 |
PLIST_SUB+= NLS="" |
| 111 |
share/locale/es/LC_MESSAGES/gtk-gnutella.mo \ |
|
|
| 112 |
share/locale/fr/LC_MESSAGES/gtk-gnutella.mo \ |
| 113 |
share/locale/hu/LC_MESSAGES/gtk-gnutella.mo \ |
| 114 |
share/locale/it/LC_MESSAGES/gtk-gnutella.mo \ |
| 115 |
share/locale/ja/LC_MESSAGES/gtk-gnutella.mo \ |
| 116 |
share/locale/nb/LC_MESSAGES/gtk-gnutella.mo \ |
| 117 |
share/locale/nl/LC_MESSAGES/gtk-gnutella.mo \ |
| 118 |
share/locale/tr/LC_MESSAGES/gtk-gnutella.mo \ |
| 119 |
share/locale/uk/LC_MESSAGES/gtk-gnutella.mo \ |
| 120 |
share/locale/zh_CN/LC_MESSAGES/gtk-gnutella.mo |
| 121 |
.else |
105 |
.else |
| 122 |
CONFIGURE_ARGS+= -U d_nls |
106 |
CONFIGURE_ARGS+= -U d_nls |
|
|
107 |
PLIST_SUB+= NLS="@comment " |
| 123 |
.endif |
108 |
.endif |
| 124 |
|
109 |
|
| 125 |
.if ${PORT_OPTIONS:MIPB6} |
110 |
.if empty(PORT_OPTIONS:MIPV6) |
| 126 |
CONFIGURE_ARGS+= -D ipv6=false |
111 |
CONFIGURE_ARGS+= -D ipv6=false |
| 127 |
.endif |
112 |
.endif |
| 128 |
|
113 |
|
| 129 |
.if ${PORT_OPTIONS:MDBUS} |
114 |
.if ${PORT_OPTIONS:MDBUS} |
| 130 |
LIB_DEPENDS+= dbus:${PORTSDIR}/devel/dbus |
115 |
LIB_DEPENDS+= dbus:${PORTSDIR}/devel/dbus |
| 131 |
.else |
116 |
.else |
| 132 |
CONFIGURE_ARGS+= -D dbus=false |
117 |
CONFIGURE_ARGS+= -U d_dbus |
| 133 |
.endif |
118 |
.endif |
| 134 |
|
119 |
|
| 135 |
.if ${PORT_OPTIONS:MSQLITE} |
120 |
.if ${PORT_OPTIONS:MSQLITE} |
|
Lines 138-153
Link Here
|
| 138 |
CONFIGURE_ARGS+= -U d_sqlite |
123 |
CONFIGURE_ARGS+= -U d_sqlite |
| 139 |
.endif |
124 |
.endif |
| 140 |
|
125 |
|
| 141 |
.if ${ARCH} == i386 |
|
|
| 142 |
PLIST_SUB+= I386="" |
| 143 |
.else |
| 144 |
PLIST_SUB+= I386="@comment " |
| 145 |
.endif |
| 146 |
|
| 147 |
.if ${ARCH} == amd64 |
| 148 |
PLIST_SUB+= AMD64="" |
| 149 |
.else |
| 150 |
PLIST_SUB+= AMD64="@comment " |
| 151 |
.endif |
| 152 |
|
| 153 |
.include <bsd.port.mk> |
126 |
.include <bsd.port.mk> |