summaryrefslogtreecommitdiff
path: root/games/freeciv/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/freeciv/Makefile')
-rw-r--r--games/freeciv/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/games/freeciv/Makefile b/games/freeciv/Makefile
index 175f2273b078..956e6c8504fd 100644
--- a/games/freeciv/Makefile
+++ b/games/freeciv/Makefile
@@ -14,17 +14,27 @@ MASTER_SITES= ftp://ftp.freeciv.org/pub/freeciv/stable/ \
MAINTAINER= sheldonh@freebsd.org
+LIB_DEPENDS= intl.1:${PORTSDIR}/devel/gettext
+
USE_XPM= yes
USE_BZIP2= yes
-WANT_IMLIB= yes
+WANT_GTK= yes
GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LIBS="-L${LOCALBASE}/lib"
.include <bsd.port.pre.mk>
-.if defined(HAVE_IMLIB)
+.if defined(HAVE_GTK)
USE_IMLIB= yes
.else
CONFIGURE_ARGS= --disable-gtktest
.endif
+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
+
.include <bsd.port.post.mk>