summaryrefslogtreecommitdiffstats
path: root/games/freeciv
diff options
context:
space:
mode:
Diffstat (limited to 'games/freeciv')
-rw-r--r--games/freeciv/Makefile43
-rw-r--r--games/freeciv/distinfo4
-rw-r--r--games/freeciv/pkg-plist43
3 files changed, 79 insertions, 11 deletions
diff --git a/games/freeciv/Makefile b/games/freeciv/Makefile
index 78675d7..4e3748c 100644
--- a/games/freeciv/Makefile
+++ b/games/freeciv/Makefile
@@ -6,14 +6,13 @@
#
PORTNAME= freeciv
-PORTVERSION= 1.14.0
-PORTREVISION= 1
+PORTVERSION= 1.14.1
CATEGORIES= games
MASTER_SITES= ftp://ftp.freeciv.org/pub/freeciv/stable/ \
ftp://ftp.netc.pt/pub/freeciv/stable/ \
ftp://ftp.pvv.ntnu.no/pub/freeciv/stable/
-MAINTAINER?= adam-ports@blacktabby.org
+MAINTAINER?= rehsack@liwing.de
COMMENT?= A civilisation clone for X11; multiplayer
USE_GETTEXT= yes
@@ -25,16 +24,46 @@ GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
+CONFLICTS= freeciv-*
+
.include <bsd.port.pre.mk>
-.if ${HAVE_GNOME:Mgtk12}!=""
-USE_GNOME+= imlib
-PKGNAMESUFFIX?= -imlib
+.if !defined(WITH_GTK) && !defined(WITH_GTK12) && !defined(WITH_GTK2) && \
+ !defined(WITHOUT_GNOME)
+AUTO_DEPENDS= yes
+.if ${HAVE_GNOME:Mgtk20}!=""
+WITH_GTK2= yes
+.elif ${HAVE_GNOME:Mgtk12}!=""
+WITH_GTK= yes
+.endif
+.endif
+
+.if defined(WITH_GTK2)
+USE_GNOME+= gtk20
+PKGNAMESUFFIX?= -gtk2
+CONFIGURE_ARGS+= --enable-client=gtk2
+.elif defined(WITH_GTK) || defined(WITH_GTK12)
+USE_GNOME+= imlib gtk12
+PKGNAMESUFFIX?= -gtk
+CONFIGURE_ARGS+= --enable-client=gtk
.else
LIB_DEPENDS+= Xaw3d.${XAWVER}:${PORTSDIR}/x11-toolkits/Xaw3d
.endif
+pre-fetch:
+.if defined(AUTO_DEPENDS)
+ @${ECHO} -n "No WITH_GTK, WITH_GTK2 or WITHOUT_GNOME defined, autodetecting: "
+.if defined(WITH_GTK)
+ @${ECHO} "GTK"
+.elif defined(WITH_GTK2)
+ @${ECHO} "GTK2"
+.else
+ @${ECHO} "Xaw3d"
+.endif
+.endif
+
post-patch:
- cd ${WRKSRC}; ${FIND} . -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e 's/@program_transform_name@//'
+ cd ${WRKSRC}; ${FIND} . -name Makefile.in | \
+ ${XARGS} ${REINPLACE_CMD} -e 's/@program_transform_name@//'
.include <bsd.port.post.mk>
diff --git a/games/freeciv/distinfo b/games/freeciv/distinfo
index f965262..e4cd98d 100644
--- a/games/freeciv/distinfo
+++ b/games/freeciv/distinfo
@@ -1,2 +1,2 @@
-MD5 (freeciv-1.14.0.tar.bz2) = c506ec29b94ea516aaa02a107129cf10
-SIZE (freeciv-1.14.0.tar.bz2) = 5416607
+MD5 (freeciv-1.14.1.tar.bz2) = d328f65e7fca5252f27161f5f9e97a03
+SIZE (freeciv-1.14.1.tar.bz2) = 5850722
diff --git a/games/freeciv/pkg-plist b/games/freeciv/pkg-plist
index bab69ce..90ed99f 100644
--- a/games/freeciv/pkg-plist
+++ b/games/freeciv/pkg-plist
@@ -126,8 +126,8 @@ share/freeciv/nation/viking.ruleset
share/freeciv/nation/welsh.ruleset
share/freeciv/nation/zulu.ruleset
share/freeciv/scenario/british-isles-85x80-v2.80.sav
-share/freeciv/scenario/earth-80x50-v2.sav
share/freeciv/scenario/earth-160x90-v2.sav
+share/freeciv/scenario/earth-80x50-v2.sav
share/freeciv/scenario/europe-200x100-v2.sav
share/freeciv/scenario/hagworld-120x60-v1.2.sav
share/freeciv/scenario/iberian-peninsula-136x100-v1.0.sav
@@ -164,12 +164,51 @@ share/locale/pt_BR/LC_MESSAGES/freeciv.mo
share/locale/ro/LC_MESSAGES/freeciv.mo
share/locale/ru/LC_MESSAGES/freeciv.mo
share/locale/sv/LC_MESSAGES/freeciv.mo
+share/locale/uk/LC_MESSAGES/freeciv.mo
+@unexec rmdir %D/share/locale/da/LC_MESSAGES 2>/dev/null || true
+@unexec rmdir %D/share/locale/da 2>/dev/null || true
+@unexec rmdir %D/share/locale/de/LC_MESSAGES 2>/dev/null || true
+@unexec rmdir %D/share/locale/de 2>/dev/null || true
+@unexec rmdir %D/share/locale/en_GB/LC_MESSAGES 2>/dev/null || true
+@unexec rmdir %D/share/locale/en_GB 2>/dev/null || true
+@unexec rmdir %D/share/locale/es/LC_MESSAGES 2>/dev/null || true
+@unexec rmdir %D/share/locale/es 2>/dev/null || true
+@unexec rmdir %D/share/locale/et/LC_MESSAGES 2>/dev/null || true
+@unexec rmdir %D/share/locale/et 2>/dev/null || true
+@unexec rmdir %D/share/locale/fi/LC_MESSAGES 2>/dev/null || true
+@unexec rmdir %D/share/locale/fi 2>/dev/null || true
+@unexec rmdir %D/share/locale/fr/LC_MESSAGES 2>/dev/null || true
+@unexec rmdir %D/share/locale/fr 2>/dev/null || true
+@unexec rmdir %D/share/locale/hu/LC_MESSAGES 2>/dev/null || true
+@unexec rmdir %D/share/locale/hu 2>/dev/null || true
+@unexec rmdir %D/share/locale/it/LC_MESSAGES 2>/dev/null || true
+@unexec rmdir %D/share/locale/it 2>/dev/null || true
+@unexec rmdir %D/share/locale/ja/LC_MESSAGES 2>/dev/null || true
+@unexec rmdir %D/share/locale/ja 2>/dev/null || true
+@unexec rmdir %D/share/locale/nl/LC_MESSAGES 2>/dev/null || true
+@unexec rmdir %D/share/locale/nl 2>/dev/null || true
+@unexec rmdir %D/share/locale/no/LC_MESSAGES 2>/dev/null || true
+@unexec rmdir %D/share/locale/no 2>/dev/null || true
+@unexec rmdir %D/share/locale/pl/LC_MESSAGES 2>/dev/null || true
+@unexec rmdir %D/share/locale/pl 2>/dev/null || true
+@unexec rmdir %D/share/locale/pt/LC_MESSAGES 2>/dev/null || true
+@unexec rmdir %D/share/locale/pt 2>/dev/null || true
+@unexec rmdir %D/share/locale/pt_BR/LC_MESSAGES 2>/dev/null || true
+@unexec rmdir %D/share/locale/pt_BR 2>/dev/null || true
+@unexec rmdir %D/share/locale/ro/LC_MESSAGES 2>/dev/null || true
+@unexec rmdir %D/share/locale/ro 2>/dev/null || true
+@unexec rmdir %D/share/locale/ru/LC_MESSAGES 2>/dev/null || true
+@unexec rmdir %D/share/locale/ru 2>/dev/null || true
+@unexec rmdir %D/share/locale/sv/LC_MESSAGES 2>/dev/null || true
+@unexec rmdir %D/share/locale/sv 2>/dev/null || true
+@unexec rmdir %D/share/locale/sk/LC_MESSAGES 2>/dev/null || true
+@unexec rmdir %D/share/locale/sk 2>/dev/null || true
@dirrm share/freeciv/trident
@dirrm share/freeciv/scenario
@dirrm share/freeciv/nation
@dirrm share/freeciv/misc
-@dirrm share/freeciv/history
@dirrm share/freeciv/isotrident
+@dirrm share/freeciv/history
@dirrm share/freeciv/default
@dirrm share/freeciv/civ2
@dirrm share/freeciv/civ1
OpenPOWER on IntegriCloud