svn commit: r319105 - head/math/libqalculate

Baptiste Daroussin bapt at FreeBSD.org
Sun May 26 12:36:35 UTC 2013


Author: bapt
Date: Sun May 26 12:36:34 2013
New Revision: 319105
URL: http://svnweb.freebsd.org/changeset/ports/319105

Log:
  Make the port really respect NLS option

Modified:
  head/math/libqalculate/Makefile

Modified: head/math/libqalculate/Makefile
==============================================================================
--- head/math/libqalculate/Makefile	Sun May 26 09:12:26 2013	(r319104)
+++ head/math/libqalculate/Makefile	Sun May 26 12:36:34 2013	(r319105)
@@ -29,8 +29,12 @@ PLIST_SUB+=		NLS="@comment "
 .endif
 
 post-patch:
-	@${REINPLACE_CMD} -e '/^SUBDIRS =/s|docs||g' ${WRKSRC}/Makefile.in
+.if ${PORT_OPTIONS:MNLS}
 	@${REINPLACE_CMD} -e 's/^GMSGFMT = @GMSGFMT@/GMSGFMT = msgfmt/' ${WRKSRC}/po/Makefile.in.in
+.else
+	@${REINPLACE_CMD} -e '/^SUBDIRS =/s|po ||g' ${WRKSRC}/Makefile.in
+.endif
+	@${REINPLACE_CMD} -e '/^SUBDIRS =/s|docs||g' ${WRKSRC}/Makefile.in
 	@${REINPLACE_CMD} -e 's/-pthread/${PTHREAD_LIBS}/g' ${WRKSRC}/configure
 	@${REINPLACE_CMD} -e 's/-lpthread/${PTHREAD_LIBS}/g' ${WRKSRC}/libqalculate.pc.in
 


More information about the svn-ports-all mailing list