From 9ac14925fd33c71e8dc1b39df7e36c3c8c95555b Mon Sep 17 00:00:00 2001 From: Jeremy Lea Date: Tue, 10 Oct 2000 17:12:22 +0000 Subject: Fix my breakage. Make this port a WANT_GTK port, so that freeciv-gtk builds, and add a missing dependency on gettext. Noticed by: asami --- games/freeciv/Makefile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'games/freeciv/Makefile') 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 -.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 -- cgit v1.2.3