1999-04-03 01:38:52 +00:00
|
|
|
# New ports collection makefile for: gftp
|
|
|
|
# Date Created: 21 Feb 1999
|
|
|
|
# Whom: Damjan Marion <dmarion@open.hr>
|
|
|
|
#
|
1999-08-25 05:57:29 +00:00
|
|
|
# $FreeBSD$
|
1999-04-03 01:38:52 +00:00
|
|
|
#
|
|
|
|
|
2000-04-12 05:31:29 +00:00
|
|
|
PORTNAME= gftp
|
2005-02-04 18:23:20 +00:00
|
|
|
PORTVERSION= 2.0.18
|
2006-03-07 08:28:06 +00:00
|
|
|
PORTREVISION= 2
|
1999-08-02 10:44:03 +00:00
|
|
|
CATEGORIES= ftp
|
1999-09-09 23:00:43 +00:00
|
|
|
MASTER_SITES= http://gftp.seul.org/ \
|
1999-11-23 03:16:50 +00:00
|
|
|
ftp://gftp.seul.org/pub/gftp/
|
2004-11-10 19:42:23 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.r/rc/}
|
1999-04-03 01:38:52 +00:00
|
|
|
|
2003-07-24 17:53:02 +00:00
|
|
|
MAINTAINER= oliver@FreeBSD.org
|
2003-05-12 16:22:37 +00:00
|
|
|
COMMENT= A free multithreaded GTK-based GUI ftp and sftp client
|
1999-04-03 01:38:52 +00:00
|
|
|
|
2000-07-25 07:11:09 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2003-01-02 19:46:05 +00:00
|
|
|
|
2003-08-08 13:27:51 +00:00
|
|
|
CONFIGURE_ARGS= --without-included-gettext
|
2000-10-05 07:22:56 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LIBS="-L${LOCALBASE}/lib"
|
2000-07-25 07:11:09 +00:00
|
|
|
|
2003-01-25 22:04:48 +00:00
|
|
|
USE_REINPLACE= yes
|
2004-02-17 19:51:15 +00:00
|
|
|
WANT_GNOME= yes
|
2003-01-02 19:46:05 +00:00
|
|
|
|
2004-02-10 06:42:40 +00:00
|
|
|
OPTIONS= X11 "Build with X11 frontend" on \
|
2006-01-26 08:15:19 +00:00
|
|
|
GTK2 "gtk2 instead of gtk12" off \
|
|
|
|
NLS "Native Language Support via gettext utilities" on
|
2004-02-10 06:42:40 +00:00
|
|
|
|
2004-11-29 16:01:44 +00:00
|
|
|
.if !defined(WITHOUT_X11)
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
.endif
|
|
|
|
|
2004-02-10 06:42:40 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-02-17 19:51:15 +00:00
|
|
|
USE_GNOME+= gnomehack
|
|
|
|
|
2003-01-02 19:46:05 +00:00
|
|
|
.if defined(WITHOUT_X11)
|
2004-02-10 06:42:40 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-gtkport --disable-gtk20
|
2003-01-02 19:46:05 +00:00
|
|
|
PKGNAMESUFFIX= -nox11
|
2004-02-10 06:42:40 +00:00
|
|
|
USE_GNOME+= glib12
|
2006-01-26 08:15:19 +00:00
|
|
|
PLIST_SUB+= NOX11:="@comment "
|
2003-01-02 19:46:05 +00:00
|
|
|
.else
|
2006-01-26 08:15:19 +00:00
|
|
|
PLIST_SUB+= NOX11:=""
|
2003-01-02 19:46:05 +00:00
|
|
|
WANT_GNOME= yes
|
|
|
|
.if defined(WITH_GTK2)
|
2004-02-10 06:42:40 +00:00
|
|
|
USE_GNOME+= gtk20
|
2003-01-02 19:46:05 +00:00
|
|
|
CONFIGURE_ENV+= _GTHREAD_LIBS="-lgthread-2.0"
|
|
|
|
.else
|
|
|
|
USE_GNOME+= gtk12
|
2006-02-23 10:40:44 +00:00
|
|
|
CONFIGURE_ENV+= _GTHREAD_LIBS="-lgthread-12"
|
2004-02-10 06:42:40 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-gtk20
|
2003-01-02 19:46:05 +00:00
|
|
|
.endif
|
|
|
|
.endif
|
2000-07-25 07:11:09 +00:00
|
|
|
|
2003-01-02 19:46:05 +00:00
|
|
|
MAN1= gftp.1
|
|
|
|
|
2006-01-26 08:15:19 +00:00
|
|
|
.if !defined(WITHOUT_NLS)
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= NLS=""
|
2003-01-02 19:46:05 +00:00
|
|
|
.else
|
2006-01-26 08:15:19 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
2003-01-02 19:46:05 +00:00
|
|
|
.endif
|
|
|
|
|
2003-05-14 02:50:08 +00:00
|
|
|
.if ${HAVE_GNOME:Mgnomelibs}!="" && !defined(WITH_GTK2)
|
2002-09-29 21:38:29 +00:00
|
|
|
USE_GNOME+= gnomeprefix gnomelibs
|
2003-01-25 22:04:48 +00:00
|
|
|
PKGNAMESUFFIX+= -gnome
|
2004-03-18 16:57:51 +00:00
|
|
|
PLIST_SUB+= DATADIR="share/gnome" MYGNOME=""
|
2003-01-25 22:04:48 +00:00
|
|
|
MAKE_ENV= HAVE_GNOME=1
|
2002-09-22 19:48:41 +00:00
|
|
|
.else
|
2004-03-18 16:57:51 +00:00
|
|
|
PLIST_SUB+= DATADIR="share" MYGNOME="@comment "
|
2000-10-05 07:22:56 +00:00
|
|
|
.endif
|
1999-05-17 19:52:14 +00:00
|
|
|
|
2002-09-22 19:48:41 +00:00
|
|
|
post-patch:
|
2003-01-25 22:04:48 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
|
2003-08-08 13:27:51 +00:00
|
|
|
s|DATADIRNAME=lib|DATADIRNAME=share|g ; \
|
|
|
|
s|"-lssl |& -lcrypto|' ${WRKSRC}/configure
|
2006-01-26 08:15:19 +00:00
|
|
|
.if defined(WITHOUT_X11)
|
|
|
|
@${REINPLACE_CMD} -e 's|: install-pkgdataDATA|: |' \
|
|
|
|
${WRKSRC}/docs/sample.gftp/Makefile.in
|
|
|
|
.endif
|
2000-07-25 07:11:09 +00:00
|
|
|
|
2000-10-05 07:22:56 +00:00
|
|
|
.include <bsd.port.post.mk>
|