pkgsrc/x11/wxGTK30/Makefile

106 lines
3.2 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.9 2015/04/25 14:25:20 tnn Exp $
Update to 3.0.2 * Enable wxscintilla. Changelog: 3.0.2: (released 2014-10-06) ---------------------------- All: - Fix silent data loss in wx[F]File::Write(wxString) if conversion fails. - Make wxString::FromCDouble() work when the global C++ locale is not the C one. - Add support for "%V", "%G" and "%g" to wxDateTime::Format(). All (GUI): - Add wxGenericListCtrl::EndEditLabel() (Tim Kosse). - Implement bounding box computation in wxGCDC (Toni Ruža). - Fix saving GIF animations with 2.5s+ delays between frames (elvissteinjr). - Add "variant" property to windows in XRC. - Add XRC handler for wxSimplebook. - Return correct value from wxCommandEvent::GetString() for programmatically generated wxEVT_TEXT events from wxComboBox. - Accept "default" as font family value in XRC (pieleric). - Send events when toggling wxPropertyGrid nodes from keyboard (Armel Asselin). wxGTK: - Fix mouse handling in wxNotebook containing wxListCtrl (Charlie Fenton). - Fix layout of wxSearchCtrl to not truncate text in it. wxMSW: - Fix Cygwin 1.7 build. - Work around a bug in MinGW 4.8 headers and fix build with it too. - Include x64 configurations in MSVC 8/9 project files too. - Fix parallel build of MSVC 11/12 solutions (Artur Wieczorek). - Fix background of wxRadioBox buttons and wxSlider (Artur Wieczorek). - Fix appearance of wxToggleButtons with non default colours (Artur Wieczorek). - Fix drawing on wxDC when using right-to-left layout (Artur Wieczorek). - Fix wxGrid appearance and behaviour in RTL (Artur Wieczorek). - Fix creating wxBitmap from monochrome wxIcon or wxCursor (Artur Wieczorek). - Fix handling of bitmaps with alpha in wxImageList (Artur Wieczorek). - Add paragraph spacing attributes support to wxTextCtrl (dannchr). - Show new style directory selector even for non existent paths (raychow). - Fix order of radial gradient stops (Alexandru Pana). - Fix font created using wxFont(wxFontInfo()) ctor. - Fix wxFileName::GetShortcutTarget() in console applications. - Fix wxFileName::MakeRelativeTo() for shortcut files (gafatoa). - Fix height of initially empty wxBitmapComboBox (Artur Wieczorek). - Fix setting label of submenu items (Artur Wieczorek). - Fix using Esc as accelerator in the menus. - Fix wrong initial status bar height in some cases (Artur Wieczorek).
2015-01-07 14:22:58 +01:00
VERSION= 3.0.2
PKGREVISION= 2
DISTNAME= wxWidgets-${VERSION}
PKGNAME= wxGTK30-${VERSION}
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=wxwindows/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= dbj@NetBSD.org
HOMEPAGE= http://www.wxwidgets.org/
COMMENT= GTK-based implementation of the wxWidgets GUI library
# LGPLv2 with additional permission; http://opensource.org/licenses/wxwindows
LICENSE= gnu-lgpl-v2
PATCHFILES= ${DISTNAME}-libtool.diff.bz2
PATCH_SITES= ${MASTER_SITE_LOCAL}
PATCH_DIST_STRIP.${DISTNAME}-libtool.diff.bz2= -p1
USE_TOOLS+= pkg-config msgfmt
USE_LIBTOOL= YES
USE_PKGLOCALEDIR= YES
USE_LANGUAGES= c c++
GNU_CONFIGURE= YES
USE_GNU_CONFIGURE_HOST= no
CONFIGURE_ARGS+= --with-gtk=2
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
DOCDIR= share/doc/wxGTK
PKGLOCALEDIR= share
INSTALL_MAKE_FLAGS+= LN_S="ln -fs"
INSTALLATION_DIRS= ${DOCDIR}
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_VARS+= notdarwin
.if ${OPSYS} != "Darwin"
PLIST.notdarwin= yes
.endif
.if ${OPSYS} == "SunOS"
CONFIGURE_ARGS+= --disable-xlocale
.endif
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}
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/cairo/buildlink3.mk"
.include "../../graphics/glu/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"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../x11/libSM/buildlink3.mk"
.include "../../x11/libXxf86vm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"