blob: 6b531fc1804c70275354a0441a16258493f1140c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# Created by: Damjan Marion <dmarion@open.hr>
# $FreeBSD$
PORTNAME= gftp
PORTVERSION= 2.0.19
PORTREVISION= 5
CATEGORIES= ftp
MASTER_SITES= http://gftp.seul.org/ \
ftp://gftp.seul.org/pub/gftp/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.r/rc/}
MAINTAINER= oliver@FreeBSD.org
COMMENT= A free multithreaded GTK-based GUI ftp and sftp client
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --without-included-gettext
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib"
CPPFLAGS+= -I${LOCALBASE}/include
WANT_GNOME= yes
OPTIONS_DEFINE= X11 NLS
OPTIONS_DEFAULT= X11
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MX11}
USE_XORG= x11
.endif
USES= pathfix
.if ${PORT_OPTIONS:MX11}
PLIST_SUB+= NOX11:=""
WANT_GNOME= yes
USE_GNOME+= gtk20
CONFIGURE_ENV+= _GTHREAD_LIBS="-lgthread-2.0"
.else
CONFIGURE_ARGS+=--disable-gtkport
PKGNAMESUFFIX= -nox11
USE_GNOME+= glib20
PLIST_SUB+= NOX11:="@comment "
.endif
MAN1= gftp.1
.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.include <bsd.port.pre.mk>
.if ${HAVE_GNOME:Mgnomelibs}!="" && ! ${PORT_OPTIONS:MGTK2}
USE_GNOME+= gnomeprefix gnomelibs
PKGNAMESUFFIX+= -gnome
PLIST_SUB+= MYGNOME=""
MAKE_ENV= HAVE_GNOME=1
.else
PLIST_SUB+= MYGNOME="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
s|DATADIRNAME=lib|DATADIRNAME=share|g ; \
s|"-lssl |& -lcrypto|' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|size_t dest_len|size_t *dest_len|g ; \
s|\(gftp_filename_from_utf8 (gftp_request \* request,\) int force_local,|\1|' \
${WRKSRC}/lib/charset-conv.c
.if ! ${PORT_OPTIONS:MX11}
@${REINPLACE_CMD} -e 's|: install-pkgdataDATA|: |' \
${WRKSRC}/docs/sample.gftp/Makefile.in
.endif
.include <bsd.port.post.mk>
|