aboutsummaryrefslogtreecommitdiffstats
path: root/ftp
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2002-09-23 03:48:41 +0800
committermarcus <marcus@FreeBSD.org>2002-09-23 03:48:41 +0800
commit4a5c36f7bd410025b64540692f85f4e2f194a3ea (patch)
tree1a51abfff47ef3133c68c8c67da6fb27200b745a /ftp
parentef0862d199aea7250ea52531233641de61faec95 (diff)
downloadfreebsd-ports-gnome-4a5c36f7bd410025b64540692f85f4e2f194a3ea.tar.gz
freebsd-ports-gnome-4a5c36f7bd410025b64540692f85f4e2f194a3ea.tar.zst
freebsd-ports-gnome-4a5c36f7bd410025b64540692f85f4e2f194a3ea.zip
Fix build and package build after recent GNOMENG conversion.
Diffstat (limited to 'ftp')
-rw-r--r--ftp/gftp/Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/ftp/gftp/Makefile b/ftp/gftp/Makefile
index ef6459a54228..0b9a8b06938a 100644
--- a/ftp/gftp/Makefile
+++ b/ftp/gftp/Makefile
@@ -16,6 +16,7 @@ MAINTAINER= lehmann@ans-netz.de
USE_X_PREFIX= yes
USE_GNOMENG= yes
WANT_GNOME= yes
+USE_GNOME= gtk12
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
@@ -24,18 +25,18 @@ MAN1= gftp.1
.include <bsd.port.pre.mk>
-.if ${HAVE_GNOME:Mgtk12}!=""
-USE_GNOME+= gtk12
-PKGNAMESUFFIX= -gtk
+.if ${HAVE_GNOME:Mgnomelibs}!=""
+USE_GNOME+= gnomeprefix gnomehack gnomelibs
+PKGNAMESUFFIX= -gnome
+PLIST_SUB= DATADIR="share/gnome"
+.else
+PLIST_SUB= DATADIR="share"
.endif
-pre-patch:
+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
- @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>