summaryrefslogtreecommitdiff
path: root/games/wesnoth/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/wesnoth/Makefile')
-rw-r--r--games/wesnoth/Makefile87
1 files changed, 30 insertions, 57 deletions
diff --git a/games/wesnoth/Makefile b/games/wesnoth/Makefile
index 0fb7634d4aa..83e9dae691f 100644
--- a/games/wesnoth/Makefile
+++ b/games/wesnoth/Makefile
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.133 2018/04/29 21:31:42 adam Exp $
+# $NetBSD: Makefile,v 1.134 2018/06/24 16:02:50 adam Exp $
-DISTNAME= wesnoth-1.12.6
-PKGREVISION= 11
+DISTNAME= wesnoth-1.14.3
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=wesnoth/}
EXTRACT_SUFX= .tar.bz2
@@ -14,49 +13,34 @@ LICENSE= gnu-gpl-v2
BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt
USE_CMAKE= yes
-USE_LIBTOOL= yes
USE_LANGUAGES= c c++11
-USE_TOOLS+= pkg-config
-USE_TOOLS+= perl:run msgfmt
-USE_TOOLS+= bash
+USE_LIBTOOL= yes
+USE_TOOLS+= bash msgfmt perl:run pkg-config
+# detects history.h, but does not link against libhistory
+CMAKE_ARGS+= -DENABLE_HISTORY=OFF
UNLIMIT_RESOURCES+= datasize
UNLIMIT_RESOURCES+= stacksize
-REPLACE_PERL+= utils/wesnothd.pl
-
-SUBST_CLASSES+= prefix
-SUBST_STAGE.prefix= pre-configure
-SUBST_FILES.prefix= cmake/FindFriBiDi.cmake
-SUBST_MESSAGE.prefix= Fixing search path.
-SUBST_SED.prefix= -e 's,/usr/local,${PREFIX},'
-
-PYTHON_VERSIONS_INCOMPATIBLE= 34 35 36 # not yet ported as of 1.10.6
-REPLACE_PYTHON+= data/tools/GUI.pyw
-REPLACE_PYTHON+= data/tools/*.py
-REPLACE_PYTHON+= data/tools/wesnoth/*.py
-REPLACE_PYTHON+= data/tools/wml*
-REPLACE_PYTHON+= data/tools/about_cfg_to_wiki
-REPLACE_PYTHON+= data/tools/addon_manager/html.py
-REPLACE_PYTHON+= data/tools/extractbindings
-REPLACE_PYTHON+= data/tools/imgcheck
-REPLACE_PYTHON+= data/tools/journeylifter
-REPLACE_PYTHON+= data/tools/rmtrans/rmtrans.py
-REPLACE_PYTHON+= data/tools/trackplacer
-REPLACE_PYTHON+= data/tools/unit_tree/helpers.py
-REPLACE_PYTHON+= data/tools/wesnoth_addon_manager
-REPLACE_PYTHON+= data/tools/wesnoth_addon_manager/html.py
-REPLACE_PYTHON+= data/tools/wesnoth/campaignserver_client.py
-REPLACE_PYTHON+= data/tools/unit_tree/TeamColorizer
-REPLACE_PYTHON+= data/tools/unit_tree/overview.py
-REPLACE_PYTHON+= utils/ai_test/*.py
-REPLACE_PYTHON+= utils/*.py
-
-REPLACE_BASH+= data/tools/castle-cutter/mk-all-castles.sh
-REPLACE_BASH+= data/tools/castle-cutter/mk-castle.sh
REPLACE_BASH+= data/tools/unit_tree/update-wmlunits
-BUILDLINK_TRANSFORM+= rm:-Werror
+REPLACE_PYTHON+= data/tools/GUI.pyw
+REPLACE_PYTHON+= data/tools/*.py
+REPLACE_PYTHON+= data/tools/wesnoth/*.py
+REPLACE_PYTHON+= data/tools/wml*
+REPLACE_PYTHON+= data/tools/about_cfg_to_wiki
+REPLACE_PYTHON+= data/tools/addon_manager/html.py
+REPLACE_PYTHON+= data/tools/extractbindings
+REPLACE_PYTHON+= data/tools/imgcheck
+REPLACE_PYTHON+= data/tools/journeylifter
+REPLACE_PYTHON+= data/tools/rmtrans/rmtrans.py
+REPLACE_PYTHON+= data/tools/trackplacer
+REPLACE_PYTHON+= data/tools/unit_tree/helpers.py
+REPLACE_PYTHON+= data/tools/unit_tree/TeamColorizer
+REPLACE_PYTHON+= data/tools/unit_tree/overview.py
+REPLACE_PYTHON+= data/tools/wesnoth_addon_manager
+REPLACE_PYTHON+= utils/ai_test/*.py
+REPLACE_PYTHON+= utils/*.py
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD" && !empty(OS_VERSION:M4.*)
@@ -71,34 +55,23 @@ PLIST.icons= yes
LDFLAGS.SunOS+= -lintl -lsocket
-# To avoid *.orig files (after patch) installed
-post-patch:
- (cd ${WRKSRC}; \
- ${RM} data/tools/addon_manager/html.py.orig; \
- ${RM} data/tools/castle-cutter/mk-all-castles.sh.orig; \
- ${RM} data/tools/unit_tree/helpers.py.orig; \
- ${RM} data/tools/wesnoth/campaignserver_client.py.orig;\
- )
-
-BUILDLINK_API_DEPENDS.SDL_mixer+= SDL_mixer>=1.2.5nb3
-.include "../../audio/SDL_mixer/buildlink3.mk"
+.include "../../audio/SDL2_mixer/buildlink3.mk"
.include "../../audio/libvorbis/buildlink3.mk"
.include "../../converters/fribidi/buildlink3.mk"
-BUILDLINK_API_DEPENDS.SDL+= SDL>=1.2.7
-.include "../../devel/SDL/buildlink3.mk"
-BUILDLINK_API_DEPENDS.SDL_ttf+= SDL_ttf>=2.0.8
-.include "../../devel/SDL_ttf/buildlink3.mk"
+.include "../../devel/SDL2/buildlink3.mk"
.include "../../devel/boost-libs/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
BUILDLINK_API_DEPENDS.pango+= pango>=1.14.8
.include "../../devel/pango/buildlink3.mk"
-.include "../../graphics/SDL_image/buildlink3.mk"
+.include "../../fonts/SDL2_ttf/buildlink3.mk"
+.include "../../graphics/SDL2_image/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../lang/lua/buildlink3.mk"
.include "../../lang/python/application.mk"
-.include "../../net/SDL_net/buildlink3.mk"
+.include "../../net/SDL2_net/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
.include "../../sysutils/dbus/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
-
.include "../../mk/bsd.pkg.mk"