blob: 640d088791abca5aea607be9275082685e97b357 (
plain)
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
# $NetBSD: Makefile,v 1.19 2017/02/06 13:55:00 wiz Exp $
VERSION= 3.0.2
PKGREVISION= 9
DISTNAME= wxWidgets-${VERSION}
PKGNAME= wxGTK30-${VERSION}
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=wxwindows/}
EXTRACT_SUFX= .tar.bz2
PATCHFILES= ${DISTNAME}-libtool.3.diff.bz2
PATCH_SITES= ${MASTER_SITE_LOCAL}
PATCH_DIST_STRIP.${DISTNAME}-libtool.3.diff.bz2= -p1
MAINTAINER= dbj@NetBSD.org
HOMEPAGE= http://www.wxwidgets.org/
COMMENT= wxWidgets GUI library
# LGPLv2 with additional permission; http://opensource.org/licenses/wxwindows
LICENSE= gnu-lgpl-v2
USE_TOOLS+= pkg-config msgfmt
USE_LIBTOOL= YES
USE_LANGUAGES= c c++
GNU_CONFIGURE= YES
USE_GNU_CONFIGURE_HOST= no
CONFIGURE_ARGS+= --with-libpng=sys
CONFIGURE_ARGS+= --with-libjpeg=sys
CONFIGURE_ARGS+= --with-libtiff=sys
CONFIGURE_ARGS+= --with-opengl
CONFIGURE_ARGS+= --with-expat=sys
CONFIGURE_ARGS+= --with-zlib=sys
CONFIGURE_ARGS+= --with-regex=builtin
CONFIGURE_ARGS+= --enable-mediactrl
# wxregexu symbols are not exported properly as of 3.0.1
# http://trac.wxwidgets.org/ticket/16571
CONFIGURE_ARGS+= --disable-visibility
CONFIGURE_ARGS+= --bindir=${PREFIX}/libexec/wx-3.0
CONFIGURE_ARGS+= --datarootdir=${PREFIX}/share/wx-3.0
DOCDIR= share/wx-3.0/doc/wxWidgets
INSTALL_MAKE_FLAGS+= LN_S="ln -fs"
INSTALLATION_DIRS+= ${DOCDIR}
INSTALLATION_DIRS+= bin
REPLACE_SH= wx-config.in wx-config-inplace.in
SUBST_CLASSES+= fix-paths
SUBST_STAGE.fix-paths= pre-configure
SUBST_MESSAGE.fix-paths= Fixing absolute paths.
SUBST_FILES.fix-paths= configure
SUBST_SED.fix-paths= -e 's,/usr/pkg/include,${PREFIX}/include,g'
SUBST_SED.fix-paths+= -e 's,@PREFIX@,${PREFIX},g'
.include "../../mk/bsd.prefs.mk"
PLIST_SRC+= ${PLIST_SRC_DFLT}
PLIST_VARS+= notdarwin
.if ${OPSYS} == "Darwin"
# Without this, it will choose -macox-version-min=10.5 and
# hard code constants in the header files to match.
# Then any other packages that use it
# will fail unless they also set -macosx-version-min=10.5
CONFIGURE_ARGS+= --with-macosx-version-min=no
PLIST_SRC+= PLIST.cocoa
CONFIGURE_ARGS+= --with-osx_cocoa
.else
PLIST.notdarwin= yes
PLIST_SRC+= PLIST.gtk2
CONFIGURE_ARGS+= --with-gtk=2
.endif
CONFIGURE_ARGS.SunOS+= --disable-xlocale
post-configure:
echo 'install_qadll: install_xmldll' >> ${WRKSRC}/Makefile
post-build:
set -e; cd ${WRKSRC}/locale; \
for lang in *.po; do \
[ "$${lang}" = "wxstd.po" ] && continue; \
${TOOLS_PATH.msgfmt} -c -o "$${lang%.po}.mo" "$${lang}"; \
done
set -e; cd ${WRKSRC}/locale/msw; \
for lang in it; do \
${TOOLS_PATH.msgfmt} -c -o "$${lang}.mo" "$${lang}.po"; \
done
post-install:
${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}
${INSTALL_DATA} ${WRKSRC}/docs/readme.txt ${DESTDIR}${PREFIX}/${DOCDIR}
# Create symlinks for now. Eventually we may want to use ALTERNATIVES
${LN} -sf ../libexec/wx-3.0/wxrc-3.0 ${DESTDIR}${PREFIX}/bin/wxrc-3.0
${LN} -sf ../libexec/wx-3.0/wx-config ${DESTDIR}${PREFIX}/bin/wx-config-3.0
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/zlib/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/gstreamer0.10/buildlink3.mk"
.include "../../multimedia/gst-plugins0.10-base/buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"
.if ${OPSYS} != "Darwin"
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../graphics/cairo/buildlink3.mk"
.include "../../graphics/glu/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../x11/libSM/buildlink3.mk"
.include "../../x11/libXxf86vm/buildlink3.mk"
.endif
.include "../../mk/bsd.pkg.mk"
|