freebsd-ports/ftp/gftp/Makefile
Joe Marcus Clarke b859b73d22 Fix patch when building without gnomelibs.
Submitted by:	bento
2002-09-29 21:38:29 +00:00

43 lines
938 B
Makefile

# New ports collection makefile for: gftp
# Date Created: 21 Feb 1999
# Whom: Damjan Marion <dmarion@open.hr>
#
# $FreeBSD$
#
PORTNAME= gftp
PORTVERSION= 2.0.13
CATEGORIES= ftp
MASTER_SITES= http://gftp.seul.org/ \
ftp://gftp.seul.org/pub/gftp/
MAINTAINER= lehmann@ans-netz.de
USE_X_PREFIX= yes
USE_GNOMENG= yes
WANT_GNOME= yes
USE_GNOME= gtk12 gnomehack
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
MAN1= gftp.1
.include <bsd.port.pre.mk>
.if ${HAVE_GNOME:Mgnomelibs}!=""
USE_GNOME+= gnomeprefix gnomelibs
PKGNAMESUFFIX= -gnome
PLIST_SUB= DATADIR="share/gnome"
.else
PLIST_SUB= DATADIR="share"
.endif
post-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
.include <bsd.port.post.mk>