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:
|
|
|
|
#
|
|
|
|
# RUN_INTERACTIVE: 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.
|
|
|
|
#
|
|
|
|
# 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
|
|
|
#
|
|
|
|
# DEBUG: Compile with debugging symbols. Useful if you intend to make a bug
|
|
|
|
# report.
|
|
|
|
#
|
|
|
|
# Note that unicode support is currently unavailable for this platform. This
|
|
|
|
# package requires a working ICU installation to achieve this, which doesn't
|
|
|
|
# work here, and produces a broken executable.
|
|
|
|
#
|
|
|
|
|
2000-06-02 17:54:08 +02:00
|
|
|
PORTNAME= gtk-gnutella
|
2004-01-08 01:23:32 +01:00
|
|
|
PORTVERSION= 0.93.2
|
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
|
|
|
MAN1= gtk-gnutella.1
|
2002-08-30 05:19:28 +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
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
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/'
|
|
|
|
|
|
|
|
.if exists(/bin/sleep)
|
|
|
|
SLEEP= /bin/sleep 3
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(RUN_INTERACTIVE)
|
|
|
|
CONFIGURE_ARGS+=-d -e
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_GTK2)
|
|
|
|
CONFIGURE_ARGS+= -Dgtkversion=2
|
|
|
|
USE_GNOME+= gtk20
|
|
|
|
.else
|
2004-01-14 05:33:18 +01:00
|
|
|
BROKEN= "GTK1 version of 0.93.2 is broken. Fix coming 18/01/04"
|
2003-12-05 10:44:21 +01:00
|
|
|
CONFIGURE_ARGS+= -Dgtkversion=1
|
|
|
|
USE_GNOME+= gtk12
|
|
|
|
.endif
|
|
|
|
|
2004-01-08 01:23:32 +01:00
|
|
|
.if defined(WITH_PORTABILITY)
|
|
|
|
CONFIGURE_ARGS+= -Dd_portable=true
|
2003-12-05 10:44:21 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(DEBUG)
|
2004-01-08 01:23:32 +01:00
|
|
|
CONFIGURE_ARGS+= -Doptimize=-g -Uofficial=
|
2003-12-05 10:44:21 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-fetch:
|
|
|
|
.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
|
|
|
|
@${ECHO} ''
|
|
|
|
@${ECHO} ' ===> NOTICE <==='
|
|
|
|
@${ECHO} ''
|
|
|
|
@${ECHO} 'You may use the following make options.'
|
|
|
|
@${ECHO} 'See the Makefile for complete descriptions.'
|
|
|
|
@${ECHO} ''
|
2004-01-08 01:23:32 +01:00
|
|
|
@${ECHO} 'RUN_INTERACTIVE: Use Configure in interactive mode.'
|
2003-12-05 10:44:21 +01:00
|
|
|
@${ECHO} ''
|
2004-01-08 01:23:32 +01:00
|
|
|
@${ECHO} 'WITH_GTK2: Build with gtk2 frontend.'
|
2003-12-05 10:44:21 +01:00
|
|
|
@${ECHO} ''
|
2004-01-08 01:23:32 +01:00
|
|
|
@${ECHO} 'DEBUG: Build with debugging symbols.'
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} 'WITH_PORTABILITY: Configure code to use the PATH variable at'
|
|
|
|
@${ECHO} ' run-time, at a cost in performance.'
|
|
|
|
@${ECHO}
|
2003-12-05 10:44:21 +01:00
|
|
|
@${SLEEP}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's| icuuc | |' ${WRKSRC}/${CONFIGURE_SCRIPT}
|
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
|
|
|
|
2000-06-02 17:54:08 +02:00
|
|
|
.include <bsd.port.mk>
|