diff options
Diffstat (limited to 'games/freeciv-gtk2')
-rw-r--r-- | games/freeciv-gtk2/Makefile | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/games/freeciv-gtk2/Makefile b/games/freeciv-gtk2/Makefile index 175f227..956e6c8 100644 --- a/games/freeciv-gtk2/Makefile +++ b/games/freeciv-gtk2/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> |