|
Lines 1-9
Link Here
|
| 1 |
# New ports collection makefile for: gtk-gnutella |
1 |
# Created by: rbt@zort.on.ca |
| 2 |
# Date created: 19 May, 2000 |
|
|
| 3 |
# Whom: rbt@zort.on.ca |
| 4 |
# |
| 5 |
# $FreeBSD: head/net-p2p/gtk-gnutella/Makefile 308272 2012-12-04 20:39:22Z zi $ |
2 |
# $FreeBSD: head/net-p2p/gtk-gnutella/Makefile 308272 2012-12-04 20:39:22Z zi $ |
| 6 |
# |
|
|
| 7 |
|
3 |
|
| 8 |
# |
4 |
# |
| 9 |
# A quick note on configurable make symbols: |
5 |
# A quick note on configurable make symbols: |
|
Lines 13-25
Link Here
|
| 13 |
# 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 |
| 14 |
# default Configure. |
10 |
# default Configure. |
| 15 |
# |
11 |
# |
| 16 |
# 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. |
| 17 |
# resulting executable won't use or depend on any Gtk version and |
13 |
# Therefore, monitoring of operations for Gtk-Gnutella will have to be |
| 18 |
# Gtk-Gnutella can only be controlled through the remote shell. |
14 |
# done without relying on any GUI, and the configuration is done via |
| 19 |
# Use with caution! |
15 |
# files only. |
| 20 |
# |
|
|
| 21 |
# WITH_GTK2: Enable to configure and build with GTK 2, disable to configure and |
| 22 |
# build with GTK 1.2. Will be ignored if WITH_X11 is disabled! |
| 23 |
# |
16 |
# |
| 24 |
# WITH_TLS: Enable support for scrambling GNet connections. Currently supported |
17 |
# WITH_TLS: Enable support for scrambling GNet connections. Currently supported |
| 25 |
# only by Gtk-Gnutella. |
18 |
# only by Gtk-Gnutella. |
|
Lines 43-163
Link Here
|
| 43 |
# |
36 |
# |
| 44 |
|
37 |
|
| 45 |
PORTNAME= gtk-gnutella |
38 |
PORTNAME= gtk-gnutella |
| 46 |
PORTVERSION= 0.96.9 |
39 |
PORTVERSION= 0.98.4 |
| 47 |
PORTREVISION= 2 |
|
|
| 48 |
CATEGORIES= net-p2p ipv6 |
40 |
CATEGORIES= net-p2p ipv6 |
| 49 |
MASTER_SITES= SF |
41 |
MASTER_SITES= SF |
| 50 |
|
42 |
|
| 51 |
MAINTAINER= ports@FreeBSD.org |
43 |
MAINTAINER= ports@FreeBSD.org |
| 52 |
COMMENT= GTK based Gnutella client |
44 |
COMMENT= GTK based Gnutella client |
| 53 |
|
45 |
|
| 54 |
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 |
|
| 55 |
USE_BZIP2= yes |
54 |
USE_BZIP2= yes |
|
|
55 |
USE_GNOME= glib20 libxml2 |
| 56 |
USE_PERL5= yes |
| 56 |
USE_BISON= build |
57 |
USE_BISON= build |
| 57 |
MAKE_JOBS_UNSAFE= yes |
|
|
| 58 |
USE_GNOME= libxml2 glib20 |
| 59 |
INSTALL_TARGET= install install.man |
| 60 |
HAS_CONFIGURE= yes |
58 |
HAS_CONFIGURE= yes |
| 61 |
CONFIGURE_SCRIPT= Configure |
59 |
CONFIGURE_SCRIPT= Configure |
| 62 |
CONFIGURE_ARGS= -O -Dyacc='bison -y' -Dprefix=${PREFIX} \ |
60 |
CONFIGURE_ARGS= -O -Dyacc='bison -y' -Dprefix=${PREFIX} \ |
| 63 |
-Dprivlib=${PREFIX}/share/gtk-gnutella \ |
61 |
-Dprivlib=${DATADIR} -Dsysman=${MANPREFIX}/man/man1 \ |
| 64 |
-Dsysman=${PREFIX}/man/man1 -Dlocale=${PREFIX}/share/locale \ |
62 |
-Dlocale=${PREFIX}/share/locale -Dcc='${CC}' \ |
| 65 |
-Dcc='${CC}' -Dccflags='${CFLAGS} -I${LOCALBASE}/include' \ |
63 |
-Dccflags='${CFLAGS} -I${LOCALBASE}/include' \ |
| 66 |
-Doptimize='undef' |
64 |
-Doptimize='undef' |
| 67 |
ONLY_FOR_ARCHS= i386 amd64 |
65 |
INSTALL_TARGET= install install.man |
|
|
66 |
MAKE_JOBS_UNSAFE= yes |
| 68 |
|
67 |
|
| 69 |
MAN1= gtk-gnutella.1 |
68 |
PLIST_SUB= ARCH="${ARCH}" |
| 70 |
|
69 |
|
| 71 |
OPTIONS= X11 "Build with GUI" on \ |
70 |
MAN1= gtk-gnutella.1 |
| 72 |
GTK2 "Build with GTK2 frontend" on \ |
|
|
| 73 |
TLS "Enable GNU TLS encryption support" on \ |
| 74 |
NLS "Enable national language support" on \ |
| 75 |
IPV6 "Enable IPv6 support" on \ |
| 76 |
DBUS "Enable D-BUS IPC support" off \ |
| 77 |
SQLITE "Enable SQLite support" off \ |
| 78 |
DEBUG "Build with debugging symbols" off \ |
| 79 |
PORTABILITY "Use the PATH variable at run-time" off |
| 80 |
|
71 |
|
| 81 |
.include <bsd.port.pre.mk> |
72 |
.include <bsd.port.options.mk> |
| 82 |
|
73 |
|
| 83 |
.if !defined(INTERACTIVE_CONFIGURE) |
74 |
.if !defined(INTERACTIVE_CONFIGURE) |
| 84 |
CONFIGURE_ARGS+= -ders |
75 |
CONFIGURE_ARGS+= -ders |
| 85 |
.endif |
76 |
.endif |
| 86 |
|
77 |
|
| 87 |
.if defined(WITH_DEBUG) |
78 |
.if ${PORT_OPTIONS:MDEBUG} |
| 88 |
CONFIGURE_ARGS+= -D optimize=-g -D official=false |
79 |
CONFIGURE_ARGS+= -D optimize=-g -D official=false |
| 89 |
.else |
80 |
.else |
| 90 |
CONFIGURE_ARGS+= -D official=true |
81 |
CONFIGURE_ARGS+= -D official=true |
| 91 |
.endif |
82 |
.endif |
| 92 |
|
83 |
|
| 93 |
.if !defined(WITHOUT_X11) |
84 |
.if ${PORT_OPTIONS:MGUI} |
| 94 |
USE_XORG= x11 |
|
|
| 95 |
.if defined(WITH_GTK2) |
| 96 |
CONFIGURE_ARGS+= -D gtkversion=2 |
| 97 |
USE_GNOME+= gtk20 |
85 |
USE_GNOME+= gtk20 |
| 98 |
.else |
86 |
CONFIGURE_ARGS+= -D gtkversion=2 |
| 99 |
CONFIGURE_ARGS+= -D gtkversion=1 |
|
|
| 100 |
USE_GNOME+= gtk12 |
| 101 |
.endif |
| 102 |
.else |
87 |
.else |
| 103 |
CONFIGURE_ARGS+= -D d_headless |
88 |
CONFIGURE_ARGS+= -D d_headless |
| 104 |
.endif |
89 |
.endif |
| 105 |
|
90 |
|
| 106 |
.if defined(WITH_PORTABILITY) |
91 |
.if ${PORT_OPTIONS:MPORTABILITY} |
| 107 |
CONFIGURE_ARGS+= -D d_portable |
92 |
CONFIGURE_ARGS+= -D d_portable |
| 108 |
.endif |
93 |
.endif |
| 109 |
|
94 |
|
| 110 |
.if defined(WITH_TLS) |
95 |
.if ${PORT_OPTIONS:MTLS} |
| 111 |
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls |
96 |
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls |
| 112 |
.else |
97 |
.else |
| 113 |
CONFIGURE_ARGS+= -U d_gnutls |
98 |
CONFIGURE_ARGS+= -U d_gnutls |
| 114 |
.endif |
99 |
.endif |
| 115 |
|
100 |
|
| 116 |
.if defined(WITHOUT_NLS) |
101 |
.if ${PORT_OPTIONS:MNLS} |
| 117 |
CONFIGURE_ARGS+= -U d_nls |
|
|
| 118 |
.else |
| 119 |
CONFIGURE_ARGS+= -D d_nls |
| 120 |
USE_GETTEXT= yes |
102 |
USE_GETTEXT= yes |
| 121 |
PLIST_FILES= share/locale/de/LC_MESSAGES/gtk-gnutella.mo \ |
103 |
CONFIGURE_ARGS+= -D d_nls |
| 122 |
share/locale/el/LC_MESSAGES/gtk-gnutella.mo \ |
104 |
PLIST_SUB+= NLS="" |
| 123 |
share/locale/es/LC_MESSAGES/gtk-gnutella.mo \ |
105 |
.else |
| 124 |
share/locale/fr/LC_MESSAGES/gtk-gnutella.mo \ |
106 |
CONFIGURE_ARGS+= -U d_nls |
| 125 |
share/locale/hu/LC_MESSAGES/gtk-gnutella.mo \ |
107 |
PLIST_SUB+= NLS="@comment " |
| 126 |
share/locale/it/LC_MESSAGES/gtk-gnutella.mo \ |
|
|
| 127 |
share/locale/ja/LC_MESSAGES/gtk-gnutella.mo \ |
| 128 |
share/locale/nb/LC_MESSAGES/gtk-gnutella.mo \ |
| 129 |
share/locale/nl/LC_MESSAGES/gtk-gnutella.mo \ |
| 130 |
share/locale/tr/LC_MESSAGES/gtk-gnutella.mo \ |
| 131 |
share/locale/uk/LC_MESSAGES/gtk-gnutella.mo \ |
| 132 |
share/locale/zh_CN/LC_MESSAGES/gtk-gnutella.mo |
| 133 |
.endif |
108 |
.endif |
| 134 |
|
109 |
|
| 135 |
.if defined(WITHOUT_IPV6) |
110 |
.if empty(PORT_OPTIONS:MIPV6) |
| 136 |
CONFIGURE_ARGS+= -D ipv6=false |
111 |
CONFIGURE_ARGS+= -D ipv6=false |
| 137 |
.endif |
112 |
.endif |
| 138 |
|
113 |
|
| 139 |
.if defined(WITH_DBUS) |
114 |
.if ${PORT_OPTIONS:MDBUS} |
| 140 |
LIB_DEPENDS+= dbus:${PORTSDIR}/devel/dbus |
115 |
LIB_DEPENDS+= dbus:${PORTSDIR}/devel/dbus |
| 141 |
.else |
116 |
.else |
| 142 |
CONFIGURE_ARGS+= -D dbus=false |
117 |
CONFIGURE_ARGS+= -U d_dbus |
| 143 |
.endif |
118 |
.endif |
| 144 |
|
119 |
|
| 145 |
.if defined(WITH_SQLITE) |
120 |
.if ${PORT_OPTIONS:MSQLITE} |
| 146 |
USE_SQLITE= yes |
121 |
USE_SQLITE= yes |
| 147 |
.else |
122 |
.else |
| 148 |
CONFIGURE_ARGS+= -U d_sqlite |
123 |
CONFIGURE_ARGS+= -U d_sqlite |
| 149 |
.endif |
124 |
.endif |
| 150 |
|
125 |
|
| 151 |
.if ${ARCH} == "i386" |
126 |
.include <bsd.port.mk> |
| 152 |
PLIST_SUB+= I386="" |
|
|
| 153 |
.else |
| 154 |
PLIST_SUB+= I386="@comment " |
| 155 |
.endif |
| 156 |
|
| 157 |
.if ${ARCH} == "amd64" |
| 158 |
PLIST_SUB+= AMD64="" |
| 159 |
.else |
| 160 |
PLIST_SUB+= AMD64="@comment " |
| 161 |
.endif |
| 162 |
|
| 163 |
.include <bsd.port.post.mk> |