aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/gftp/Makefile
blob: 4de93c232079616a293f55040c85df9c3b0945ac (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
# New ports collection makefile for:    gftp
# Date Created:     21 Feb 1999
# Whom:         Damjan Marion <dmarion@open.hr>
#
# $FreeBSD$
#

PORTNAME=   gftp
PORTVERSION=    2.0.7b
CATEGORIES= ftp
MASTER_SITES=   http://gftp.seul.org/ \
        ftp://gftp.seul.org/pub/gftp/

MAINTAINER= dmarion@open.hr

USE_X_PREFIX=   yes
USE_GTK=    yes
WANT_GNOME= yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LIBS="-L${LOCALBASE}/lib"

MAN1=       gftp.1

.include <bsd.port.pre.mk>

.if defined(HAVE_GNOME)
USE_GNOME=  yes
.endif

pre-patch:
    @${PERL} -pi -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
    @find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
        's|\$$\(datadir\)/gnome/|\$$\(datadir\)/|g ; \
         s|\$$\(datadir\)/locale|\$$\(prefix\)/share/locale|g'

.include <bsd.port.post.mk>