summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authordbj <dbj@pkgsrc.org>2022-08-04 04:49:40 +0000
committerdbj <dbj@pkgsrc.org>2022-08-04 04:49:40 +0000
commit65e11b05d594a008518aef0600f6dfe36d15d305 (patch)
tree652b84cd581d83bc941584bc966016239f7854f8 /x11
parentf5e5705b491054e8a6deeff849d9c4580e4084b7 (diff)
downloadpkgsrc-65e11b05d594a008518aef0600f6dfe36d15d305.tar.gz
x11/wxGTK32: install locale files when building with cmake
switch deafult to build with cmake
Diffstat (limited to 'x11')
-rw-r--r--x11/wxGTK32/Makefile18
-rw-r--r--x11/wxGTK32/PLIST48
-rw-r--r--x11/wxGTK32/PLIST.configure3
3 files changed, 59 insertions, 10 deletions
diff --git a/x11/wxGTK32/Makefile b/x11/wxGTK32/Makefile
index 2bb4e04ffbf..fecb9e587b5 100644
--- a/x11/wxGTK32/Makefile
+++ b/x11/wxGTK32/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.8 2022/07/31 16:57:22 wiz Exp $
+# $NetBSD: Makefile,v 1.9 2022/08/04 04:49:40 dbj Exp $
DISTNAME= wxWidgets-3.2.0
PKGNAME= ${DISTNAME:S/wxWidgets/wxGTK32/}
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_GITHUB:=wxWidgets/}
GITHUB_PROJECT= wxWidgets
@@ -15,7 +15,7 @@ COMMENT= Cross-platform wxWidgets GUI library (3.2 stable branch)
# LGPLv2 with additional permission; http://opensource.org/licenses/wxwindows
LICENSE= gnu-lgpl-v2
-USE_TOOLS+= pkg-config msgfmt
+USE_TOOLS+= pkg-config
USE_LANGUAGES= c c++
PLIST_SRC+= ${PLIST_SRC_DFLT}
@@ -32,17 +32,14 @@ REPLACE_SH= wx-config.in wx-config-inplace.in
# We build using configure by default
# The software supports building using cmake but
# the default cmake configuration is different.
-# In particular, it doesn't install proper locale data
-# and also installs unused headers.
+# In particular it installs unused headers.
#
# 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
PKG_OPTIONS_VAR= PKG_OPTIONS.wxGTK32
PKG_SUPPORTED_OPTIONS= cmake
-.if ${OPSYS} == "NetBSD"
PKG_SUGGESTED_OPTIONS= cmake
-.endif
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mcmake)
@@ -103,6 +100,13 @@ SUBST_VARS.fix-paths= PREFIX
.endif
post-install:
+ for f in ${WRKSRC}/locale/*.mo; do \
+ 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}
${INSTALL_DATA} ${WRKSRC}/docs/changes.txt ${DESTDIR}${PREFIX}/${DOCDIR}
diff --git a/x11/wxGTK32/PLIST b/x11/wxGTK32/PLIST
index c4b06479c17..b27aa858cac 100644
--- a/x11/wxGTK32/PLIST
+++ b/x11/wxGTK32/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2022/07/28 05:25:22 dbj Exp $
+@comment $NetBSD: PLIST,v 1.4 2022/08/04 04:49:40 dbj Exp $
bin/wx-config-3.2
bin/wxrc-3.2
include/wx-3.2/wx/aboutdlg.h
@@ -802,7 +802,53 @@ lib/libwx_gtk3u_xrc-3.2.so.0.0.0
libexec/wx-3.2/wx-config
libexec/wx-3.2/wxrc
libexec/wx-3.2/wxrc-3.2
+share/wx-3.2/aclocal/wxwin.m4
share/wx-3.2/doc/wxWidgets/changes.txt
share/wx-3.2/doc/wxWidgets/lgpl.txt
share/wx-3.2/doc/wxWidgets/licence.txt
share/wx-3.2/doc/wxWidgets/readme.txt
+share/wx-3.2/locale/af/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/an/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/ar/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/ca/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/ca@valencia/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/co/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/cs/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/da/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/de/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/el/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/es/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/eu/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/fa_IR/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/fi/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/fr/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/gl_ES/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/hi/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/hr/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/hu/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/id/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/it/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/ja/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/ka/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/ko_KR/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/lt/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/lv/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/ms/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/nb/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/ne/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/nl/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/pl/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/pt/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/pt_BR/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/ro/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/ru/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/sk/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/sl/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/sq/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/sv/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/ta/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/tr/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/uk/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/vi/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/zh_CN/LC_MESSAGES/wxstd.mo
+share/wx-3.2/locale/zh_TW/LC_MESSAGES/wxstd.mo
diff --git a/x11/wxGTK32/PLIST.configure b/x11/wxGTK32/PLIST.configure
index 6303312ec6b..b1db6cf9994 100644
--- a/x11/wxGTK32/PLIST.configure
+++ b/x11/wxGTK32/PLIST.configure
@@ -1,5 +1,4 @@
-@comment $NetBSD: PLIST.configure,v 1.2 2022/07/28 05:25:22 dbj Exp $
-share/wx-3.2/aclocal/wxwin.m4
+@comment $NetBSD: PLIST.configure,v 1.3 2022/08/04 04:49:40 dbj Exp $
share/wx-3.2/bakefile/presets/wx.bkl
share/wx-3.2/bakefile/presets/wx_presets.py
share/wx-3.2/bakefile/presets/wx_unix.bkl