aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/gview
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/gview')
-rw-r--r--graphics/gview/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/graphics/gview/Makefile b/graphics/gview/Makefile
index 2191eb33fe7c..3bd835aa3255 100644
--- a/graphics/gview/Makefile
+++ b/graphics/gview/Makefile
@@ -14,15 +14,17 @@ MASTER_SITES= http://netpedia.net/hosting/gview/ \
MAINTAINER= cpiazza@FreeBSD.org
-LIB_DEPENDS= gdk_imlib.5:${PORTSDIR}/graphics/imlib
-
-GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
-
USE_X_PREFIX= yes
+USE_IMLIB= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
- LDFLAGS="-L${LOCALBASE}/lib" \
- GTK_CONFIG="${GTK_CONFIG}"
+ LIBS="-L${LOCALBASE}/lib"
+
+pre-patch:
+ @${PERL} -pi -e 's|-lpthread|-pthread|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
post-install:
.if !defined(NOPORTDOCS)