Received: by mail.netbsd.org (Postfix, from userid 605) id EF4BC84E91; Sun, 7 Aug 2022 22:40:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 329F184DA9 for ; Sun, 7 Aug 2022 22:40:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id nxaXg5Y5-SVM for ; Sun, 7 Aug 2022 22:40:52 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 8317884C71 for ; Sun, 7 Aug 2022 22:40:52 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 70477FB1A; Sun, 7 Aug 2022 22:40:52 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1659912052165520" MIME-Version: 1.0 Date: Sun, 7 Aug 2022 22:40:52 +0000 From: "Darrin B. Jewell" Subject: CVS commit: pkgsrc/x11/wxGTK32 To: pkgsrc-changes@NetBSD.org Reply-To: dbj@netbsd.org X-Mailer: log_accum Message-Id: <20220807224052.70477FB1A@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1659912052165520 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: dbj Date: Sun Aug 7 22:40:52 UTC 2022 Modified Files: pkgsrc/x11/wxGTK32: Makefile Log Message: x11/wxGTK32: rebuild .mo locale files during build phase thanks joerg@ for pointing this out To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 pkgsrc/x11/wxGTK32/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1659912052165520 Content-Disposition: inline Content-Length: 3201 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/x11/wxGTK32/Makefile diff -u pkgsrc/x11/wxGTK32/Makefile:1.9 pkgsrc/x11/wxGTK32/Makefile:1.10 --- pkgsrc/x11/wxGTK32/Makefile:1.9 Thu Aug 4 04:49:40 2022 +++ pkgsrc/x11/wxGTK32/Makefile Sun Aug 7 22:40:52 2022 @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.9 2022/08/04 04:49:40 dbj Exp $ +# $NetBSD: Makefile,v 1.10 2022/08/07 22:40:52 dbj Exp $ DISTNAME= wxWidgets-3.2.0 PKGNAME= ${DISTNAME:S/wxWidgets/wxGTK32/} -PKGREVISION= 3 +PKGREVISION= 4 CATEGORIES= x11 MASTER_SITES= ${MASTER_SITE_GITHUB:=wxWidgets/} GITHUB_PROJECT= wxWidgets @@ -15,7 +15,7 @@ COMMENT= Cross-platform wxWidgets GUI li # LGPLv2 with additional permission; http://opensource.org/licenses/wxwindows LICENSE= gnu-lgpl-v2 -USE_TOOLS+= pkg-config +USE_TOOLS+= pkg-config msgfmt USE_LANGUAGES= c c++ PLIST_SRC+= ${PLIST_SRC_DFLT} @@ -24,16 +24,16 @@ DOCDIR= share/wx-3.2/doc/wxWidgets INSTALLATION_DIRS+= ${DOCDIR} INSTALLATION_DIRS+= bin +INSTALLATION_DIRS+= share/wx-3.2/aclocal REPLACE_SH= wx-config.in wx-config-inplace.in .include "../../mk/bsd.prefs.mk" -# We build using configure by default -# The software supports building using cmake but -# the default cmake configuration is different. -# In particular it installs unused headers. -# +# We now build using cmake by default +# However, the cmake build system installs +# unused headers that the configure build system doesn't. + # This option is expected to be a temporary hack. # We should fix cmake builds to match configure builds # and remove support for building with GNU_CONFIGURE @@ -48,6 +48,10 @@ USE_CMAKE= yes PLIST_SRC+= PLIST.cmake CMAKE_ARGS+= -DCMAKE_DISABLE_PRECOMPILE_HEADERS:BOOL=ON +# Note that this CMAKE_INSTALL_BINDIR override is probably +# not the correct way to do this. In particular if you remove +# this option, it doesn't fall back to "bin" as I expected. +# I will hopefully figure out a better fix for this -- dbj@ CMAKE_ARGS+= -DCMAKE_INSTALL_BINDIR:PATH=libexec/wx-3.2 . if ${OPSYS} != "Linux" # https://github.com/wxWidgets/wxWidgets/issues/22646 @@ -99,13 +103,23 @@ SUBST_SED.fix-paths= -e 's,/usr/pkg/inc SUBST_VARS.fix-paths= PREFIX .endif +post-build: + ${RM} ${WRKSRC}/locale/*.mo + # We could do this: + # ${GMAKE} -C ${WRKSRC}/locale MSGFMT=${TOOLS_PATH.msgfmt:Q} allmo + # But that seems to bring an unnecessary build dependency on gmake + # So instead, we do: + for f in ${WRKSRC}/locale/*.po; do \ + lang=`basename $${f} .po`; \ + ${TOOLS_PATH.msgfmt:Q} -c -o "${WRKSRC}/locale/$${lang}.mo" "$${f}"; \ + done + post-install: for f in ${WRKSRC}/locale/*.mo; do \ - lang="$$(basename "$${f}" .mo)"; \ + lang=`basename $${f} .mo`; \ ${INSTALL_DATA_DIR} "${DESTDIR}/${PREFIX}/share/wx-3.2/locale/$${lang}/LC_MESSAGES"; \ ${INSTALL_DATA} "$${f}" "${DESTDIR}/${PREFIX}/share/wx-3.2/locale/$${lang}/LC_MESSAGES/wxstd.mo"; \ done - ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/wx-3.2/aclocal ${INSTALL_DATA} ${WRKSRC}/wxwin.m4 ${DESTDIR}${PREFIX}/share/wx-3.2/aclocal/wxwin.m4 ${INSTALL_DATA} ${WRKSRC}/docs/licence.txt ${DESTDIR}${PREFIX}/${DOCDIR} ${INSTALL_DATA} ${WRKSRC}/docs/lgpl.txt ${DESTDIR}${PREFIX}/${DOCDIR} --_----------=_1659912052165520--