aboutsummaryrefslogtreecommitdiff
path: root/games/cuyo
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2015-04-20 14:09:20 +0000
committerMathieu Arnold <mat@FreeBSD.org>2015-04-20 14:09:20 +0000
commit7b8dc22129a583311140fe3863d35cdf4db93512 (patch)
treeb1167561ba478f9be1949d8715e6ae313586f698 /games/cuyo
parent8319f15154eea69db1c8fa213cebb637aec5a39c (diff)
downloadports-7b8dc22129a583311140fe3863d35cdf4db93512.tar.gz
ports-7b8dc22129a583311140fe3863d35cdf4db93512.zip
Fix build when there is no /usr/bin/perl. (Also, say that this needs Perl for
building WITH=NLS.) With hat: perl Sponsored by: Absolight
Notes
Notes: svn path=/head/; revision=384362
Diffstat (limited to 'games/cuyo')
-rw-r--r--games/cuyo/Makefile3
-rw-r--r--games/cuyo/files/patch-po__Makefile.in11
2 files changed, 9 insertions, 5 deletions
diff --git a/games/cuyo/Makefile b/games/cuyo/Makefile
index 588a62389c8b..d32279c5781e 100644
--- a/games/cuyo/Makefile
+++ b/games/cuyo/Makefile
@@ -30,7 +30,8 @@ OPTIONS_SUB= yes
NLS_CONFIGURE_ENABLE= nls
NLS_BUILD_DEPENDS= gsed:${PORTSDIR}/textproc/gsed
-NLS_USES= gettext
+NLS_USES= gettext perl5
+NLS_USE= perl5=build
NLS_LDFLAGS= -lintl
post-install:
diff --git a/games/cuyo/files/patch-po__Makefile.in b/games/cuyo/files/patch-po__Makefile.in
index 77b87bf53c4c..5006677b2940 100644
--- a/games/cuyo/files/patch-po__Makefile.in
+++ b/games/cuyo/files/patch-po__Makefile.in
@@ -1,15 +1,18 @@
---- po/Makefile.in.orig
+--- po/Makefile.in.orig 2014-10-25 08:21:28 UTC
+++ po/Makefile.in
-@@ -410,7 +410,7 @@
+@@ -410,9 +410,9 @@ uninstall-local-yes:
$(DOMAIN).pot: $(pot_sources) pot.sed
rm -rf data
mkdir data
- cd ../data && make used_levels
+ cd ../data && $(MAKE) used_levels
for ldfile in $$(cat ../data/used_levels) ; do \
- ./cual2fakec ../data/$$ldfile > data/$$ldfile ; \
+- ./cual2fakec ../data/$$ldfile > data/$$ldfile ; \
++ perl ./cual2fakec ../data/$$ldfile > data/$$ldfile ; \
done
-@@ -426,7 +426,7 @@
+ rm -rf src
+ mkdir src
+@@ -426,7 +426,7 @@ $(DOMAIN).pot: $(pot_sources) pot.sed
--msgid-bugs-address=cuyo-devel@nongnu.org \
-o - \
src/* data/* \