summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorreg <reg@FreeBSD.org>2000-10-10 17:12:22 +0000
committerreg <reg@FreeBSD.org>2000-10-10 17:12:22 +0000
commit3f59f239ae3d0040c7a366fb12b4651792495fdc (patch)
treedbf4f8e190425908b37018729358599816b41211 /games
parent28b4eb25da9ed5eb95ceff8c32c32fed446861a7 (diff)
downloadFreeBSD-ports-3f59f239ae3d0040c7a366fb12b4651792495fdc.zip
FreeBSD-ports-3f59f239ae3d0040c7a366fb12b4651792495fdc.tar.gz
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
Diffstat (limited to 'games')
-rw-r--r--games/freeciv-gtk2/Makefile14
-rw-r--r--games/freeciv/Makefile14
2 files changed, 24 insertions, 4 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>
diff --git a/games/freeciv/Makefile b/games/freeciv/Makefile
index 175f227..956e6c8 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>
OpenPOWER on IntegriCloud