1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/ftp/gftp/Makefile

87 lines
1.9 KiB
Makefile
Raw Normal View History

# 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$
#
2000-04-12 05:31:29 +00:00
PORTNAME= gftp
2005-02-04 18:23:20 +00:00
PORTVERSION= 2.0.18
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/ \
ftp://gftp.seul.org/pub/gftp/
2004-11-10 19:42:23 +00:00
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.r/rc/}
2003-07-24 17:53:02 +00:00
MAINTAINER= oliver@FreeBSD.org
COMMENT= A free multithreaded GTK-based GUI ftp and sftp client
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --without-included-gettext
2000-10-05 07:22:56 +00:00
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
USE_REINPLACE= yes
WANT_GNOME= yes
OPTIONS= X11 "Build with X11 frontend" on \
GTK2 "gtk2 instead of gtk12" off \
NLS "Native Language Support via gettext utilities" on
.if !defined(WITHOUT_X11)
USE_X_PREFIX= yes
.endif
.include <bsd.port.pre.mk>
USE_GNOME+= gnomehack
.if defined(WITHOUT_X11)
CONFIGURE_ARGS+=--disable-gtkport --disable-gtk20
PKGNAMESUFFIX= -nox11
USE_GNOME+= glib12
PLIST_SUB+= NOX11:="@comment "
.else
PLIST_SUB+= NOX11:=""
WANT_GNOME= yes
.if defined(WITH_GTK2)
USE_GNOME+= gtk20
CONFIGURE_ENV+= _GTHREAD_LIBS="-lgthread-2.0"
.else
USE_GNOME+= gtk12
CONFIGURE_ENV+= _GTHREAD_LIBS="-lgthread-12"
CONFIGURE_ARGS+=--disable-gtk20
.endif
.endif
MAN1= gftp.1
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.if ${HAVE_GNOME:Mgnomelibs}!="" && !defined(WITH_GTK2)
USE_GNOME+= gnomeprefix gnomelibs
PKGNAMESUFFIX+= -gnome
PLIST_SUB+= DATADIR="share/gnome" MYGNOME=""
MAKE_ENV= HAVE_GNOME=1
.else
PLIST_SUB+= DATADIR="share" MYGNOME="@comment "
2000-10-05 07:22:56 +00:00
.endif
post-patch:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
s|DATADIRNAME=lib|DATADIRNAME=share|g ; \
s|"-lssl |& -lcrypto|' ${WRKSRC}/configure
.if defined(WITHOUT_X11)
@${REINPLACE_CMD} -e 's|: install-pkgdataDATA|: |' \
${WRKSRC}/docs/sample.gftp/Makefile.in
.endif
2000-10-05 07:22:56 +00:00
.include <bsd.port.post.mk>