diff --git a/games/cuyo/Makefile b/games/cuyo/Makefile index 588a62389c8b..d32279c5781e 100644 --- a/games/cuyo/Makefile +++ b/games/cuyo/Makefile @@ -1,40 +1,41 @@ # Created by: Matthew Gibson # $FreeBSD$ PORTNAME= cuyo PORTVERSION= 2.1.0 PORTEPOCH= 1 CATEGORIES= games MASTER_SITES= SAVANNAH MAINTAINER= ports@FreeBSD.org COMMENT= Nice, innovative, challenging Tetris-like game LICENSE= GPLv2 # (or later) LICENSE_FILE= ${WRKSRC}/COPYING USES= gmake iconv USE_SDL= mixer image USE_XORG= x11 xau xdmcp GNU_CONFIGURE= yes INSTALLS_ICONS= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib # Do not use older versions PORTSCOUT= limit:[0-9]\.[0-9]\. OPTIONS_DEFINE= DOCS NLS 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: @${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC} && ${INSTALL_DATA} NEWS README ${STAGEDIR}${DOCSDIR}) .include 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,20 +1,23 @@ ---- 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/* \ - | sed -f pot.sed > cuyo.pot + | gsed -f pot.sed > cuyo.pot %.mo: %.po $(MSGFMT) -c -o t-$*.mo $*.po && mv t-$*.mo $*.mo