aboutsummaryrefslogtreecommitdiff
path: root/ftp
diff options
context:
space:
mode:
authorOliver Lehmann <oliver@FreeBSD.org>2004-02-10 06:42:40 +0000
committerOliver Lehmann <oliver@FreeBSD.org>2004-02-10 06:42:40 +0000
commitcf6a09130761be6aaea1cd38d8edf69736c3314e (patch)
tree8b25b82ab53b274cceb37ead03e4e82138470e03 /ftp
parenta405462dfa010b5ed13ea4359a0a0f6597295b3a (diff)
downloadports-cf6a09130761be6aaea1cd38d8edf69736c3314e.tar.gz
ports-cf6a09130761be6aaea1cd38d8edf69736c3314e.zip
Notes
Diffstat (limited to 'ftp')
-rw-r--r--ftp/gftp/Makefile34
1 files changed, 10 insertions, 24 deletions
diff --git a/ftp/gftp/Makefile b/ftp/gftp/Makefile
index 6047df49e3a7..0f8466488a2d 100644
--- a/ftp/gftp/Makefile
+++ b/ftp/gftp/Makefile
@@ -7,7 +7,7 @@
PORTNAME= gftp
PORTVERSION= 2.0.16
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= ftp
MASTER_SITES= http://gftp.seul.org/ \
ftp://gftp.seul.org/pub/gftp/
@@ -25,27 +25,28 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
USE_GNOME+= gnomehack
USE_REINPLACE= yes
+OPTIONS= X11 "Build with X11 frontend" on \
+ GTK2 "gtk2 instead of gtk12" off
+
+.include <bsd.port.pre.mk>
+
.if defined(WITHOUT_X11)
-CONFIGURE_ARGS+= --disable-gtkport --disable-gtk20
+CONFIGURE_ARGS+=--disable-gtkport --disable-gtk20
PKGNAMESUFFIX= -nox11
-LIB_DEPENDS+= glib12.3:${PORTSDIR}/devel/glib12
+USE_GNOME+= glib12
.else
USE_X_PREFIX= yes
WANT_GNOME= yes
.if defined(WITH_GTK2)
-RUN_DEPENDS+= pkg-config:${PORTSDIR}/devel/pkgconfig
-LIB_DEPENDS+= glib-2.0.200:${PORTSDIR}/devel/glib20 \
- gtk-x11-2.0.200:${PORTSDIR}/x11-toolkits/gtk20
+USE_GNOME+= gtk20
CONFIGURE_ENV+= _GTHREAD_LIBS="-lgthread-2.0"
.else
-CONFIGURE_ARGS+= --disable-gtk20
USE_GNOME+= gtk12
CONFIGURE_ENV+= _GTHREAD_LIBS="-lgthread12"
+CONFIGURE_ARGS+=--disable-gtk20
.endif
.endif
-.include <bsd.port.pre.mk>
-
MAN1= gftp.1
.if defined(WITHOUT_X11)
@@ -63,24 +64,9 @@ MAKE_ENV= HAVE_GNOME=1
PLIST_SUB+= DATADIR="share"
.endif
-pre-everything::
- @${ECHO} ""
- @${ECHO} "You may use the following build options:"
- @${ECHO} ""
- @${ECHO} " WITHOUT_X11=yes Only build the text frontend."
- @${ECHO} " WITH_GTK2=yes Use gtk 2.x instead of 1.x"
- @${ECHO} ""
-
post-patch:
-# @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
-# s|DATADIRNAME=lib|DATADIRNAME=share|g ; \
-# s|USE_INCLUDED_LIBINTL=yes|#USE_INCLUDED_LIBINTL=yes|g ; \
-# s|\$$\(top_builddir\)/intl/libintl.a|-lintl|g' ${WRKSRC}/configure
-
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
s|DATADIRNAME=lib|DATADIRNAME=share|g ; \
s|"-lssl |& -lcrypto|' ${WRKSRC}/configure
-# @${REINPLACE_CMD} -e 's|LDADD = |& @LIBINTL@ |g' \
-# ${WRKSRC}/src/text/Makefile.in ${WRKSRC}/src/gtk/Makefile.in
.include <bsd.port.post.mk>