Date: Thu, 26 Jan 2006 02:12:23 GMT From: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/92338: [MAINTAINER] games/ceferino: fix build problem Message-ID: <200601260212.k0Q2CNrE085325@www.freebsd.org> Resent-Message-ID: <200601260220.k0Q2K34A058804@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 92338 >Category: ports >Synopsis: [MAINTAINER] games/ceferino: fix build problem >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Thu Jan 26 02:20:02 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Jose Alonso Cardenas Marquez >Release: FreeBSD 6.0-STABLE i386 >Organization: BSDPeru (http://www.bsd.org.pe) >Environment: FreeBSD HellFire.BSD.org.pe 6.0-STABLE FreeBSD 6.0-STABLE #0: Tue Jan 3 19:50:45 PET >Description: - Fix build error, when WITHOUT_NLS is set and gettext is not present (reported by kris) >How-To-Repeat: >Fix: --- ceferino-0.96.patch begins here --- diff -ruN --exclude=CVS /usr/ports/games/ceferino/Makefile /usr/ports/games/ceferino-new/Makefile --- /usr/ports/games/ceferino/Makefile Sat Jan 14 13:25:07 2006 +++ /usr/ports/games/ceferino-new/Makefile Wed Jan 25 20:58:35 2006 @@ -17,7 +17,6 @@ USE_SDL= sdl mixer image GNU_CONFIGURE= yes USE_GMAKE= yes -USE_REINPLACE= yes CPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD} CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} @@ -25,6 +24,19 @@ CEFEDIRS= ima musicas niveles sonidos +OPTIONS= NLS "Native Language Support" off + +.include <bsd.port.pre.mk> + +.if defined(WITHOUT_NLS) +CONFIGURE_ARGS+= --disable-nls +PLIST_SUB+= NLS="@comment " +.else +USE_GETTEXT= yes +PLIST_SUB+= NLS="" +FLAG_NLS= true +.endif + post-extract: @${FIND} -E ${WRKSRC}/src/ -type f -iregex ".*\.(cpp|h)" \ -print0 | ${XARGS} -0 ${REINPLACE_CMD} -e 's/<SDL/<SDL11/' @@ -38,10 +50,12 @@ ${INSTALL_PROGRAM} ceferino ceferinoeditor ceferinosetup ${PREFIX}/bin && \ ${FIND} ${CEFEDIRS} -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \ ${FIND} -E ${CEFEDIRS} -type f -iregex ".*\.(png|jpg|xm|map|wav)" -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \; +.if defined(FLAG_NLS) .for FILE in es ca fr ${MKDIR} ${PREFIX}/share/locale/${FILE}/LC_MESSAGES && \ ${INSTALL_DATA} ${WRKSRC}/po/${FILE}.gmo ${PREFIX}/share/locale/${FILE}/LC_MESSAGES/${PORTNAME}.mo .endfor +.endif post-install: .if !defined(NOPORTDOCS) @@ -50,4 +64,4 @@ ${INSTALL_DATA} AUTHORS ChangeLog README README_ES ${DOCSDIR} .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff -ruN --exclude=CVS /usr/ports/games/ceferino/pkg-plist /usr/ports/games/ceferino-new/pkg-plist --- /usr/ports/games/ceferino/pkg-plist Wed Jan 11 22:17:34 2006 +++ /usr/ports/games/ceferino-new/pkg-plist Wed Jan 25 18:53:42 2006 @@ -5,9 +5,9 @@ %%DOCSDIR%%/ChangeLog %%DOCSDIR%%/README %%DOCSDIR%%/README_ES -share/locale/ca/LC_MESSAGES/ceferino.mo -share/locale/es/LC_MESSAGES/ceferino.mo -share/locale/fr/LC_MESSAGES/ceferino.mo +%%NLS%%share/locale/ca/LC_MESSAGES/ceferino.mo +%%NLS%%share/locale/es/LC_MESSAGES/ceferino.mo +%%NLS%%share/locale/fr/LC_MESSAGES/ceferino.mo %%DATADIR%%/ima/barra.png %%DATADIR%%/ima/cargando.png %%DATADIR%%/ima/editor.png --- ceferino-0.96.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601260212.k0Q2CNrE085325>