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:
|
|
|
|
#
|
2004-06-21 19:57:52 +02:00
|
|
|
# INTERACTIVE_CONFIGURE: Launches Configure in it's default mode,
|
|
|
|
# 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
|
|
|
#
|
|
|
|
# WITH_GTK2: Configure and build for gtk2.
|
|
|
|
#
|
2004-01-08 01:23:32 +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
|
|
|
#
|
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
|
|
|
#
|
2004-06-21 19:57:52 +02:00
|
|
|
# WITHOUT_ICU: Don't compile with unicode support via the ICU library.
|
|
|
|
# Note that ICU versions previous to 2.6 may not work correctly.
|
2003-12-05 10:44:21 +01:00
|
|
|
#
|
|
|
|
|
2000-06-02 17:54:08 +02:00
|
|
|
PORTNAME= gtk-gnutella
|
2004-07-12 11:55:46 +02:00
|
|
|
PORTVERSION= 0.94
|
2000-06-02 17:54:08 +02:00
|
|
|
CATEGORIES= net
|
2003-12-05 10:44:21 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
|
|
|
http://gtk-gnutella.sourceforge.net/download/ \
|
|
|
|
ftp://gtk-gnutella.sourceforge.net/pub/gtk-gnutella/
|
2001-10-15 15:40:52 +02:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2003-12-05 10:44:21 +01:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2000-06-02 17:54:08 +02:00
|
|
|
|
2003-12-05 10:44:21 +01:00
|
|
|
MAINTAINER= crollins666@hotmail.com
|
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
|
2000-06-02 17:54:08 +02:00
|
|
|
USE_X_PREFIX= yes
|
2003-12-05 10:44:21 +01:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_BISON= yes
|
|
|
|
USE_GNOME= libxml2
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_SCRIPT= Configure
|
|
|
|
CONFIGURE_ARGS= -Dyacc='bison -y' -Dofficial='true' -Dprefix=${PREFIX}
|
|
|
|
CONFIGURE_ARGS+= -Dbindir=${PREFIX}/bin -Dprivlib=${PREFIX}/share/gtk-gnutella
|
|
|
|
CONFIGURE_ARGS+= -Dsysman=${PREFIX}/man/man1 -Dlocale=${PREFIX}/share/locale
|
|
|
|
CONFIGURE_ARGS+= -Dccflags='${CFLAGS} -I${LOCALBASE}/include/'
|
|
|
|
|
2004-06-21 19:57:52 +02:00
|
|
|
MAN1= gtk-gnutella.1
|
|
|
|
|
|
|
|
OPTIONS= DEBUG "Build with debugging symbols" off \
|
2004-01-30 21:56:36 +01:00
|
|
|
GTK2 "Build with gtk2 frontend" off \
|
2004-06-21 19:57:52 +02:00
|
|
|
ICU "Enable non-roman charset support" on \
|
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)
|
|
|
|
CONFIGURE_ARGS+= -d -e
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
CONFIGURE_ARGS+= -Doptimize=-g -Uofficial=
|
2003-12-05 10:44:21 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_GTK2)
|
|
|
|
CONFIGURE_ARGS+= -Dgtkversion=2
|
|
|
|
USE_GNOME+= gtk20
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= -Dgtkversion=1
|
|
|
|
USE_GNOME+= gtk12
|
|
|
|
.endif
|
|
|
|
|
2004-06-21 19:57:52 +02:00
|
|
|
.if !defined(WITHOUT_ICU)
|
|
|
|
LIB_DEPENDS+= icuuc:${PORTSDIR}/devel/icu2
|
2003-12-05 10:44:21 +01:00
|
|
|
|
2004-06-21 19:57:52 +02:00
|
|
|
# Add threading to the ld flags; icuuc requires these by default
|
|
|
|
CONFIGURE_ARGS+= -Dldflags=${PTHREAD_LIBS}
|
2003-12-05 10:44:21 +01:00
|
|
|
.endif
|
|
|
|
|
2004-06-21 19:57:52 +02:00
|
|
|
.if defined(WITH_PORTABILITY)
|
|
|
|
CONFIGURE_ARGS+= -Dd_portable=true
|
|
|
|
.endif
|
2000-06-02 17:54:08 +02:00
|
|
|
|
2003-12-05 10:44:21 +01:00
|
|
|
post-install:
|
|
|
|
@${ECHO} 'Installing compressed man page in man/man1/'
|
|
|
|
@${CP} ${WRKSRC}/src/gtk-gnutella.man ${WRKSRC}/src/gtk-gnutella.1
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/src/gtk-gnutella.1 ${PREFIX}/man/man1
|
2002-03-11 23:43:31 +01:00
|
|
|
|
2004-01-30 21:56:36 +01:00
|
|
|
.include <bsd.port.post.mk>
|