mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
50860fd1f2
- Add new knobs WITH_GTK2 and WITH_REMOTE_INTERFACE - Give maintainership to submitter PR: ports/54624 Submitted by: clayton rollins <crollins666@hotmail.com> Approved by: maintainer
108 lines
2.8 KiB
Makefile
108 lines
2.8 KiB
Makefile
# New ports collection makefile for: gtk-gnutella
|
|
# Date created: 19 May, 2000
|
|
# Whom: rbt@zort.on.ca
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
#
|
|
# 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.
|
|
#
|
|
# WITH_REMOTE_INTERFACE: Configure and build with experimental telnet-based
|
|
# remote interface.
|
|
#
|
|
# 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.
|
|
#
|
|
|
|
PORTNAME= gtk-gnutella
|
|
PORTVERSION= 0.93
|
|
CATEGORIES= net
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
|
http://gtk-gnutella.sourceforge.net/download/ \
|
|
ftp://gtk-gnutella.sourceforge.net/pub/gtk-gnutella/
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= crollins666@hotmail.com
|
|
COMMENT= GTK based Gnutella client
|
|
|
|
MAN1= gtk-gnutella.1
|
|
|
|
USE_PERL5= yes
|
|
USE_X_PREFIX= yes
|
|
USE_BZIP2= yes
|
|
USE_BISON= yes
|
|
USE_GMAKE= 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
|
|
CONFIGURE_ARGS+= -Dgtkversion=1
|
|
USE_GNOME+= gtk12
|
|
.endif
|
|
|
|
.if defined(WITH_REMOTE_INTERFACE)
|
|
CONFIGURE_ARGS+= -Dremotectrl=true
|
|
.endif
|
|
|
|
.if defined(DEBUG)
|
|
CONFIGURE_ARGS+= -Doptimize=-g
|
|
.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} ''
|
|
@${ECHO} 'RUN_INTERACTIVE: Use Configure in interactive mode.'
|
|
@${ECHO} ''
|
|
@${ECHO} 'WITH_GTK2: Build with gtk2 frontend.'
|
|
@${ECHO} ''
|
|
@${ECHO} 'WITH_REMOTE_INTERFACE: Enable telnet-based remote interface.'
|
|
@${ECHO} ''
|
|
@${ECHO} 'DEBUG: Build with debugging symbols.'
|
|
@${ECHO} ''
|
|
@${SLEEP}
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's| icuuc | |' ${WRKSRC}/${CONFIGURE_SCRIPT}
|
|
|
|
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
|
|
|
|
.include <bsd.port.mk>
|