summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorwiz <wiz>2012-07-29 16:31:26 +0000
committerwiz <wiz>2012-07-29 16:31:26 +0000
commitc2d96f75f75069c53412d01088f73b4d4448eff1 (patch)
tree67c5f09a3d6fc8ca4f5ec7d356dbf4c0e3fc67a6 /games
parent5cba4a58dab0608983c265b5f308ebcf69e0adf3 (diff)
downloadpkgsrc-c2d96f75f75069c53412d01088f73b4d4448eff1.tar.gz
Remove -Werror to make this build on NetBSD.
While here: the program has enough dependencies that an additional python one (used by many scripts installed by the package) will not hurt; add proper dependency on python and remove python replacement hack. Bump PKGREVISION for python dependency.
Diffstat (limited to 'games')
-rw-r--r--games/wesnoth/Makefile39
1 files changed, 18 insertions, 21 deletions
diff --git a/games/wesnoth/Makefile b/games/wesnoth/Makefile
index fd826783133..4c269d29369 100644
--- a/games/wesnoth/Makefile
+++ b/games/wesnoth/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.76 2012/07/18 06:37:40 adam Exp $
+# $NetBSD: Makefile,v 1.77 2012/07/29 16:31:26 wiz Exp $
DISTNAME= wesnoth-1.10.3
+PKGREVISION= 1
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=wesnoth/}
EXTRACT_SUFX= .tar.bz2
@@ -31,26 +32,19 @@ SUBST_FILES.prefix= cmake/FindFriBiDi.cmake
SUBST_MESSAGE.prefix= Fixing search path.
SUBST_SED.prefix= -e 's,/usr/local,${PREFIX},'
-SUBST_CLASSES+= python
-SUBST_STAGE.python= post-build
-SUBST_FILES.python+= data/tools/*.py
-SUBST_FILES.python+= data/tools/wesnoth/*.py
-SUBST_FILES.python+= data/tools/wml*
-SUBST_FILES.python+= data/tools/about_cfg_to_wiki
-SUBST_FILES.python+= data/tools/extractbindings
-SUBST_FILES.python+= data/tools/imgcheck
-SUBST_FILES.python+= data/tools/journeylifter
-SUBST_FILES.python+= data/tools/trackplacer
-SUBST_FILES.python+= data/tools/wesnoth_addon_manager
-SUBST_FILES.python+= data/tools/unit_tree/TeamColorizer
-SUBST_FILES.python+= data/tools/unit_tree/overview.py
-SUBST_FILES.python+= utils/ai_test/*.py
-SUBST_FILES.python+= utils/*.py
-SUBST_MESSAGE.python= Fixing path to python.
-# Best we can do without pulling in Python dependency
-SUBST_SED.python+= -e 's,WPY,${PREFIX}/bin/python2.7,'
-SUBST_SED.python+= -e 's,/usr/bin/env.*python,${PREFIX}/bin/python2.7,'
-SUBST_SED.python+= -e 's,/usr/bin/python,${PREFIX}/bin/python2.7,'
+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/extractbindings
+REPLACE_PYTHON+= data/tools/imgcheck
+REPLACE_PYTHON+= data/tools/journeylifter
+REPLACE_PYTHON+= data/tools/trackplacer
+REPLACE_PYTHON+= data/tools/wesnoth_addon_manager
+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_RUBY= data/tools/terrain2wiki.rb
.include "../../lang/ruby/replace.mk"
@@ -58,6 +52,8 @@ REPLACE_RUBY= data/tools/terrain2wiki.rb
REPLACE_SH+= data/tools/castle-cutter/mk-castle.sh
REPLACE_SH+= data/tools/castle-cutter/mk-all-castles.sh
+BUILDLINK_TRANSFORM+= rm:-Werror
+
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD" && !empty(OS_VERSION:M4.*)
USE_TOOLS+= gmake
@@ -85,5 +81,6 @@ BUILDLINK_API_DEPENDS.pango+= pango>=1.14.8
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../lang/lua/buildlink3.mk"
+.include "../../lang/python/application.mk"
.include "../../net/SDL_net/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"