2000-06-02 17:54:08 +02:00
|
|
|
# New ports collection makefile for: gtk-gnutella
|
|
|
|
# Date created: 19 May, 2000
|
|
|
|
# Whom: rbt@zort.on.ca
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2003-12-05 10:44:21 +01:00
|
|
|
#
|
|
|
|
# A quick note on configurable make symbols:
|
|
|
|
#
|
2005-07-02 04:10:25 +02:00
|
|
|
# INTERACTIVE_CONFIGURE: Launches Configure in its default mode,
|
2004-06-21 19:57:52 +02:00
|
|
|
# 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.
|
2003-12-05 10:44:21 +01:00
|
|
|
#
|
2006-11-17 09:41:01 +01:00
|
|
|
# WITH_X11: Disable this to build a headless version of Gtk-Gnutella. The
|
|
|
|
# resulting executable won't use or depend on any Gtk version and
|
|
|
|
# Gtk-Gnutella can only be controlled through the remote shell.
|
|
|
|
# Use with caution!
|
2003-12-05 10:44:21 +01:00
|
|
|
#
|
2006-11-17 09:41:01 +01:00
|
|
|
# WITH_GTK2: Enable to configure and build with GTK 2, disable to configure and
|
|
|
|
# build with GTK 1.2. Will be ignored if WITH_X11 is disabled!
|
|
|
|
#
|
|
|
|
# WITH_TLS: Enable support for scrambling GNet connections. Currently supported
|
|
|
|
# only by Gtk-Gnutella.
|
|
|
|
#
|
|
|
|
# WITH_NLS: Enable National Language Support for translation of User Interface.
|
|
|
|
#
|
|
|
|
# WITH_IPV6: Enable to support IPv6 connections. The real configuration takes
|
|
|
|
# place at run-time so keeping it enabled will not force IPv6 usage.
|
|
|
|
#
|
|
|
|
# WITH_DBUS: Enable D-Bus IPC support. No further information available.
|
|
|
|
#
|
|
|
|
# WITH_SQLITE: Enable to support storage of run-time information to a SQLite
|
|
|
|
# database file. Should ideally save some memory.
|
2003-12-05 10:44:21 +01:00
|
|
|
#
|
2004-06-21 19:57:52 +02:00
|
|
|
# WITH_DEBUG: Compile with debugging symbols. Useful if you intend to make
|
|
|
|
# a bug report.
|
2003-12-05 10:44:21 +01:00
|
|
|
#
|
2006-11-17 09:41:01 +01:00
|
|
|
# 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.
|
|
|
|
#
|
2003-12-05 10:44:21 +01:00
|
|
|
|
2000-06-02 17:54:08 +02:00
|
|
|
PORTNAME= gtk-gnutella
|
2009-04-02 13:09:23 +02:00
|
|
|
PORTVERSION= 0.96.6
|
2009-08-16 20:04:40 +02:00
|
|
|
PORTREVISION= 2
|
2006-12-21 22:43:26 +01:00
|
|
|
CATEGORIES= net-p2p ipv6
|
2009-04-02 13:09:23 +02:00
|
|
|
MASTER_SITES= SF
|
2000-06-02 17:54:08 +02:00
|
|
|
|
2005-07-02 04:10:25 +02:00
|
|
|
MAINTAINER= jonas@schiebtsich.net
|
2003-02-21 14:28:59 +01:00
|
|
|
COMMENT= GTK based Gnutella client
|
2000-06-02 17:54:08 +02:00
|
|
|
|
2003-12-05 10:44:21 +01:00
|
|
|
USE_PERL5= yes
|
|
|
|
USE_BZIP2= yes
|
2007-10-17 12:13:01 +02:00
|
|
|
USE_BISON= build
|
2009-04-05 11:16:32 +02:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2006-11-17 09:41:01 +01:00
|
|
|
USE_GNOME= libxml2 glib20
|
2005-07-02 04:10:25 +02:00
|
|
|
INSTALL_TARGET= install install.man
|
2003-12-05 10:44:21 +01:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_SCRIPT= Configure
|
2006-11-17 09:41:01 +01:00
|
|
|
CONFIGURE_ARGS= -O -Dyacc='bison -y' -Dprefix=${PREFIX} \
|
2005-07-02 04:10:25 +02:00
|
|
|
-Dprivlib=${PREFIX}/share/gtk-gnutella \
|
|
|
|
-Dsysman=${PREFIX}/man/man1 -Dlocale=${PREFIX}/share/locale \
|
|
|
|
-Dcc='${CC}' -Dccflags='${CFLAGS} -I${LOCALBASE}/include' \
|
2006-11-17 09:41:01 +01:00
|
|
|
-Doptimize='undef'
|
2003-12-05 10:44:21 +01:00
|
|
|
|
2004-06-21 19:57:52 +02:00
|
|
|
MAN1= gtk-gnutella.1
|
|
|
|
|
2006-11-17 09:41:01 +01:00
|
|
|
OPTIONS= X11 "Build with GUI" on \
|
|
|
|
GTK2 "Build with GTK2 frontend" on \
|
2006-02-11 21:57:38 +01:00
|
|
|
TLS "Enable GNU TLS encryption support" on \
|
2006-11-17 09:41:01 +01:00
|
|
|
NLS "Enable national language support" on \
|
2006-02-11 21:57:38 +01:00
|
|
|
IPV6 "Enable IPv6 support" on \
|
|
|
|
DBUS "Enable D-BUS IPC support" off \
|
2006-10-31 14:23:42 +01:00
|
|
|
SQLITE "Enable SQLite support" off \
|
2005-11-25 16:27:11 +01:00
|
|
|
DEBUG "Build with debugging symbols" off \
|
2004-01-30 21:56:36 +01:00
|
|
|
PORTABILITY "Use the PATH variable at run-time" off
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2003-12-05 10:44:21 +01:00
|
|
|
|
2004-06-21 19:57:52 +02:00
|
|
|
.if !defined(INTERACTIVE_CONFIGURE)
|
2006-11-17 09:41:01 +01:00
|
|
|
CONFIGURE_ARGS+= -ders
|
2004-06-21 19:57:52 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_DEBUG)
|
2006-11-17 09:41:01 +01:00
|
|
|
CONFIGURE_ARGS+= -D optimize=-g -D official=false
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= -D official=true
|
2003-12-05 10:44:21 +01:00
|
|
|
.endif
|
|
|
|
|
2006-11-27 22:28:04 +01:00
|
|
|
.if !defined(WITHOUT_X11)
|
2008-03-24 00:03:18 +01:00
|
|
|
USE_XORG= x11
|
2003-12-05 10:44:21 +01:00
|
|
|
.if defined(WITH_GTK2)
|
2006-11-17 09:41:01 +01:00
|
|
|
CONFIGURE_ARGS+= -D gtkversion=2
|
2003-12-05 10:44:21 +01:00
|
|
|
USE_GNOME+= gtk20
|
|
|
|
.else
|
2006-11-17 09:41:01 +01:00
|
|
|
CONFIGURE_ARGS+= -D gtkversion=1
|
2003-12-05 10:44:21 +01:00
|
|
|
USE_GNOME+= gtk12
|
|
|
|
.endif
|
2006-11-17 09:41:01 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= -D d_headless
|
|
|
|
.endif
|
2003-12-05 10:44:21 +01:00
|
|
|
|
2004-06-21 19:57:52 +02:00
|
|
|
.if defined(WITH_PORTABILITY)
|
2006-11-17 09:41:01 +01:00
|
|
|
CONFIGURE_ARGS+= -D d_portable
|
2004-06-21 19:57:52 +02:00
|
|
|
.endif
|
2000-06-02 17:54:08 +02:00
|
|
|
|
2005-11-25 16:27:11 +01:00
|
|
|
.if defined(WITH_TLS)
|
|
|
|
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls
|
|
|
|
.else
|
2006-02-11 21:57:38 +01:00
|
|
|
CONFIGURE_ARGS+= -U d_gnutls
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_NLS)
|
2007-12-18 01:25:40 +01:00
|
|
|
CONFIGURE_ARGS+= -U d_nls
|
2006-02-11 21:57:38 +01:00
|
|
|
.else
|
2007-12-18 01:25:40 +01:00
|
|
|
CONFIGURE_ARGS+= -D d_nls
|
2006-02-11 21:57:38 +01:00
|
|
|
LIB_DEPENDS+= intl:${PORTSDIR}/devel/gettext
|
|
|
|
PLIST_FILES= share/locale/de/LC_MESSAGES/gtk-gnutella.mo \
|
|
|
|
share/locale/el/LC_MESSAGES/gtk-gnutella.mo \
|
|
|
|
share/locale/es/LC_MESSAGES/gtk-gnutella.mo \
|
|
|
|
share/locale/fr/LC_MESSAGES/gtk-gnutella.mo \
|
|
|
|
share/locale/hu/LC_MESSAGES/gtk-gnutella.mo \
|
2006-10-31 14:23:42 +01:00
|
|
|
share/locale/it/LC_MESSAGES/gtk-gnutella.mo \
|
2006-02-11 21:57:38 +01:00
|
|
|
share/locale/ja/LC_MESSAGES/gtk-gnutella.mo \
|
|
|
|
share/locale/nb/LC_MESSAGES/gtk-gnutella.mo \
|
|
|
|
share/locale/nl/LC_MESSAGES/gtk-gnutella.mo \
|
2006-11-12 20:41:31 +01:00
|
|
|
share/locale/tr/LC_MESSAGES/gtk-gnutella.mo \
|
2006-02-11 21:57:38 +01:00
|
|
|
share/locale/uk/LC_MESSAGES/gtk-gnutella.mo \
|
|
|
|
share/locale/zh_CN/LC_MESSAGES/gtk-gnutella.mo
|
2005-11-25 16:27:11 +01:00
|
|
|
.endif
|
|
|
|
|
2006-11-17 09:41:01 +01:00
|
|
|
.if defined(WITHOUT_IPV6)
|
2005-11-25 16:27:11 +01:00
|
|
|
CONFIGURE_ARGS+= -D ipv6=false
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_DBUS)
|
|
|
|
LIB_DEPENDS+= dbus:${PORTSDIR}/devel/dbus
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= -D dbus=false
|
|
|
|
.endif
|
|
|
|
|
2006-10-31 14:23:42 +01:00
|
|
|
.if defined(WITH_SQLITE)
|
|
|
|
USE_SQLITE= yes
|
2006-11-17 09:41:01 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= -U d_sqlite
|
2006-10-31 14:23:42 +01:00
|
|
|
.endif
|
|
|
|
|
2004-01-30 21:56:36 +01:00
|
|
|
.include <bsd.port.post.mk>
|