Skip to content

Commit

Permalink
Create wxGTK30 package for wxWidgets 3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dbj committed Jul 21, 2014
1 parent 1053d59 commit 96dae38
Show file tree
Hide file tree
Showing 16 changed files with 1,488 additions and 1 deletion.
53 changes: 53 additions & 0 deletions licenses/wxwindows-3.1
@@ -0,0 +1,53 @@
wxWindows Library Licence, Version 3.1
======================================

Copyright (c) 1998-2005 Julian Smart, Robert Roebling et al

Everyone is permitted to copy and distribute verbatim copies
of this licence document, but changing it is not allowed.

WXWINDOWS LIBRARY LICENCE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public Licence as published by
the Free Software Foundation; either version 2 of the Licence, or (at
your option) any later version.

This library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
General Public Licence for more details.

You should have received a copy of the GNU Library General Public Licence
along with this software, usually in a file named COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301 USA.

EXCEPTION NOTICE

1. As a special exception, the copyright holders of this library give
permission for additional uses of the text contained in this release of
the library as licenced under the wxWindows Library Licence, applying
either version 3.1 of the Licence, or (at your option) any later version of
the Licence as published by the copyright holders of version
3.1 of the Licence document.

2. The exception is that you may use, copy, link, modify and distribute
under your own terms, binary object code versions of works based
on the Library.

3. If you copy code from files distributed under the terms of the GNU
General Public Licence or the GNU Library General Public Licence into a
copy of this library, as this licence permits, the exception does not
apply to the code that you add in this way. To avoid misleading anyone as
to the status of such modified files, you must delete this exception
notice from such code and/or adjust the licensing conditions notice
accordingly.

4. If you write modifications of your own for this library, it is your
choice whether to permit this exception to apply to your modifications.
If you do not wish that, you must delete the exception notice from such
code and/or adjust the licensing conditions notice accordingly.


3 changes: 2 additions & 1 deletion x11/Makefile
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.734 2014/07/19 06:40:50 ryoon Exp $
# $NetBSD: Makefile,v 1.735 2014/07/21 06:53:24 dbj Exp $
#

COMMENT= Packages to support the X window system
Expand Down Expand Up @@ -481,6 +481,7 @@ SUBDIR+= wxGTK26
SUBDIR+= wxGTK26-contrib
SUBDIR+= wxGTK28
SUBDIR+= wxGTK28-contrib
SUBDIR+= wxGTK30
SUBDIR+= wxWindows-docs
SUBDIR+= wxhaskell
SUBDIR+= x11perf
Expand Down
20 changes: 20 additions & 0 deletions x11/wxGTK30/DESCR
@@ -0,0 +1,20 @@
A GTK+-based implementation of the wxWidgets cross-platform GUI library.

wxWidgets is a set of libraries that allows C++ applications to compile and
run on several different types of computer, with minimal source code changes.
There is one library per supported GUI (such as Windows, GTK+, Motif, and Mac).
As well as providing a common API (Application Programming Interface) for GUI
functionality, it provides functionality for accessing some commonly-used
operating system facilities, from copying and deleting files to socket and
thread support. wxWidgets is a 'framework' in the sense that it provides a lot
of built-in functionality, which the application can use or replace as required,
thus saving a great deal of coding effort. Basic data structures such as
strings, arrays, linked lists and hash tables are also supported.

Such a toolkit is not unique - there are others to choose from - but wxWidgets
is free, well-established, well-documented, and very broad in its coverage of
GUI functionality. It has some extras that make it stand out from the crowd,
such as the many convenience dialogs, built-in HTML display and printing,
virtual filesystems, easy-to-use OLE automation controller class, Open GL
support, and many other features that make it easier to write modern and
user-friendly applications.
86 changes: 86 additions & 0 deletions x11/wxGTK30/Makefile
@@ -0,0 +1,86 @@
# $NetBSD: Makefile,v 1.1 2014/07/21 06:53:24 dbj Exp $
#

VERSION= 3.0.1
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
LICENSE= wxwindows-3.1

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

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'

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/changes.txt ${DESTDIR}${PREFIX}/${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/docs/readme.txt ${DESTDIR}${PREFIX}/${DOCDIR}

.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 "../../devel/GConf/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../graphics/glu/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../x11/libXxf86vm/buildlink3.mk"
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"
.include "../../graphics/cairo/buildlink3.mk"

.include "../../mk/bsd.pkg.mk"

0 comments on commit 96dae38

Please sign in to comment.