1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# $NetBSD: Makefile,v 1.1 2022/07/21 11:39:21 wiz Exp $
DISTNAME= wxWidgets-3.2.0
PKGNAME= ${DISTNAME:S/wxWidgets/wxGTK32/}
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_GITHUB:=wxWidgets/}
GITHUB_PROJECT= wxWidgets
GITHUB_RELEASE= v${PKGVERSION_NOREV}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= dbj@NetBSD.org
HOMEPAGE= https://www.wxwidgets.org/
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_CMAKE= yes
USE_LANGUAGES= c c++
CMAKE_ARGS+= -DCMAKE_DISABLE_PRECOMPILE_HEADERS:BOOL=ON
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} != "Darwin"
WX_CONFIG= lib/wx/config/gtk3-unicode-3.2
.else
WX_CONFIG= lib/wx/config/osx_cocoa-unicode-3.2
.endif
# Installation rules in cmake are not using DESTDIR properly, do it manually
# https://github.com/wxWidgets/wxWidgets/issues/22647
# CMake Error: failed to create symbolic link '/usr/pkg/bin/wx-config': Permission denied
# CMake Error: failed to create symbolic link '/usr/pkg/bin/wxrc': Permission denied
post-install:
cd ${DESTDIR}${PREFIX}/bin && [ -L wx-config ] || ${LN} -s ../${WX_CONFIG} wx-config
cd ${DESTDIR}${PREFIX}/bin && [ -L wxrc ] || ${LN} -s wxrc-3.2 wxrc
SUBST_CLASSES+= unwrap
SUBST_STAGE.unwrap= post-build
SUBST_FILES.unwrap= ${WX_CONFIG}
SUBST_SED.unwrap= -e "s,EGREP=.*,EGREP=${EGREP},"
SUBST_SED.unwrap+= -e 's,echo.*/${CC}",echo "${CC}",'
SUBST_SED.unwrap+= -e 's,echo.*/${CXX}",echo "${CXX}",'
SUBST_SED.unwrap+= -e 's,echo.*/${CXX} -o",echo "${CXX} -o",'
PLIST_SRC+= ${PLIST_SRC_DFLT}
# https://github.com/wxWidgets/wxWidgets/issues/22646
.if ${OPSYS} != "Linux"
CMAKE_ARGS+= -DwxUSE_JOYSTICK:BOOL=OFF
.endif
.if ${OPSYS} != "Darwin"
.include "../../sysutils/libnotify/buildlink3.mk"
.include "../../x11/gtk3/buildlink3.mk"
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../textproc/gspell/buildlink3.mk"
.include "../../www/webkit-gtk/buildlink3.mk"
PLIST_SRC+= PLIST.gtk3
.endif
.include "../../archivers/libmspack/buildlink3.mk"
.include "../../archivers/xz/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/pcre2/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../devel/SDL2/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../multimedia/gstreamer1/buildlink3.mk"
.include "../../multimedia/gst-plugins1-base/buildlink3.mk"
.include "../../security/libsecret/buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"
# curl not checked by cmake but used by webrequest_curl.h
# https://github.com/wxWidgets/wxWidgets/issues/22648
.include "../../www/curl/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|