public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Hamish McIntyre-Bhatty <hamishmb@live.co.uk>
To: cygwin-apps@cygwin.com
Subject: Re: [ITA] wxWidgets3.0
Date: Wed, 25 Nov 2020 10:02:25 +0000	[thread overview]
Message-ID: <DB7PR02MB3996F092767EF3A49B043F91E7FA0@DB7PR02MB3996.eurprd02.prod.outlook.com> (raw)
In-Reply-To: <DB7PR02MB3996160DD388C9FED050168CE7FB0@DB7PR02MB3996.eurprd02.prod.outlook.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 806 bytes --]

> Okay, so attached is my latest cygport file. I'm still building for
> 32-bit, so I'll upload and link to the new packages tomorrow.
>
> Changes:
>
> - Split BUILD_REQUIRES across two lines for definitely build time and
> probably only runtime deps.
>
> - Use system regex library explicitly.
>
> - Removed obsolete --without-gnomeprint option.
>
> - Use gnomevfs (old bug no longer seems to apply).
>
> I tried using the STL, but it results in libraries that don't work as:
>
> #1: the wxwidgets demos either segfault instantly or just exit instantly.
>
> #2: wxpython no longer works and returns the No such process error above.
>
> Hamish

Okay, cygport file attached again and the new packages can be had from
https://www.hamishmb.com/files/cygwin-temp/ as before.

Hamish


[-- Attachment #1.1.2: wxWidgets3.0.cygport --]
[-- Type: text/plain, Size: 6626 bytes --]

NAME="wxWidgets3.0"
VERSION=3.0.5.1
RELEASE=1
CATEGORY="Libs"
SUMMARY="wxWidgets C++ application framework"
DESCRIPTION="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. As well as providing a
common API for GUI functionality, it provides functionality for accessing some
commonly-used operating system facilities, from copying and deleting files to
socket and thread support."
HOMEPAGE="http://wxwidgets.org/"
SRC_URI="https://github.com/wxWidgets/wxWidgets/releases/download/v${VERSION}/wxWidgets-${VERSION}.tar.bz2"
SRC_DIR="wxWidgets-${VERSION}"

#Just for building:
BUILD_REQUIRES="make cppunit graphviz autoconf pkg-config gcc-core gcc-g++ doxygen libX11-devel libgtk2.0-devel libgtk3-devel libwebkitgtk1.0-devel libwebkitgtk3.0-devel libpng-devel libjpeg-devel libexpat-devel libiconv-devel libmspack-devel libnotify-devel libtiff-devel libXpm-devel libcogl-devel libEGL-devel libGL-devel libGLU-devel libSDL2-devel libSDL2_image-devel libSDL2_mixer-devel libSDL2_net-devel libSDL2_ttf-devel zlib-devel"

#For running unit tests/runtime (currently disabled because they don't work).
#Still needed for manual testing though, so leaving in here.
BUILD_REQUIRES="$BUILD_REQUIRES xclock libwebkitgtk1.0_0 libwebkitgtk3.0_0 libpng16 libjpeg8 libexpat1 libiconv libiconv2 libmspack0 libnotify libnotify4 libtiff6 libXpm4 libcogl20 libEGL1 libGL1 libGLU1 libSDL2_2.0_0 libSDL2_image2.0_0 libSDL2_mixer2.0_0 libSDL2_net2.0_0 libSDL2_ttf2.0_0 zlib"

PATCH_URI="
	https://src.fedoraproject.org/rpms/wxGTK3/raw/master/f/wxGTK3-3.0.3-abicheck.patch
	https://src.fedoraproject.org/rpms/wxGTK3/raw/master/f/fix-filename-test.patch
	https://src.fedoraproject.org/rpms/wxGTK3/raw/master/f/fix-vararg-test.patch
	https://src.fedoraproject.org/rpms/wxGTK3/raw/master/f/force-x11-for-wxgl.patch
	wxGTK3-3.0.5.1-collision.patch
	3.0.2-cygwin-auto-import.patch
	3.0.2-cygwin-dlopen.patch
	3.0.2-cygwin-unix.patch
	3.0.2-cygwin-gcc5.patch
	3.0.3-autoreconf.patch
	3.0.3-cygwin-ftm.patch
	0007-Fix-video-sink-fallback-in-wxMediaCtrl-when-xvimages.patch
"

slot=${PV_MAJ_MIN}

PKG_NAMES="libwx_baseu3.0_0 libwx_baseu3.0-devel ${NAME}-doc
           libwx_gtk2u3.0_0 libwx_gtk2u3.0-devel
           libwx_gtk3u3.0_0 libwx_gtk3u3.0-devel"
libwx_baseu3_0_0_SUMMARY="${SUMMARY} (base unicode runtime)"
libwx_baseu3_0_0_CONTENTS="
	--exclude=html
	usr/bin/cygwx_baseu*-3.0-0.dll
	usr/share/doc/${NAME}/
	usr/share/locale/*/LC_MESSAGES/wxstd30.mo
"
libwx_baseu3_0_devel_REQUIRES="libexpat-devel libiconv-devel zlib-devel"
libwx_baseu3_0_devel_CONTENTS="
	usr/bin/wxrc-3.0.exe
	usr/include/wx-3.0/
	usr/lib/libwx_baseu*-3.0.dll.a
	usr/lib/wx/config/base-unicode-3.0
	usr/lib/wx/include/base-unicode-3.0/
	usr/share/aclocal/wxwin-3.0.m4
	usr/share/bakefile/presets/wx30*
"
libwx_gtk2u3_0_0_SUMMARY="${SUMMARY} (GTK+2 unicode runtime)"
libwx_gtk2u3_0_0_CONTENTS="usr/bin/cygwx_gtk2u*-3.0-0.dll"
libwx_gtk2u3_0_devel_SUMMARY="${SUMMARY} (development)"
libwx_gtk2u3_0_devel_REQUIRES="libGL-devel libglib2.0-devel libgtk2.0-devel libX11-devel"
libwx_gtk2u3_0_devel_CONTENTS="
	usr/lib/libwx_gtk2u*-3.0.dll.a
	usr/lib/wx/config/gtk2-unicode-3.0
	usr/lib/wx/include/gtk2-unicode-3.0/
"
libwx_gtk3u3_0_0_SUMMARY="${SUMMARY} (GTK+3 unicode runtime)"
libwx_gtk3u3_0_0_CONTENTS="usr/bin/cygwx_gtk3u*-3.0-0.dll"
libwx_gtk3u3_0_devel_SUMMARY="${SUMMARY} (development)"
libwx_gtk3u3_0_devel_REQUIRES="libGL-devel libglib2.0-devel libgtk2.0-devel libX11-devel"
libwx_gtk3u3_0_devel_CONTENTS="
	usr/bin/wx-config-3.0
	usr/lib/libwx_gtk3u*-3.0.dll.a
	usr/lib/wx/config/gtk3-unicode-3.0
	usr/lib/wx/include/gtk3-unicode-3.0/
"
wxWidgets3_0_doc_CATEGORY="Doc"
wxWidgets3_0_doc_SUMMARY="${SUMMARY} (documentation)"
wxWidgets3_0_doc_OBSOLETES="libwx_gtk2u3.0-doc"
wxWidgets3_0_doc_CONTENTS="usr/share/doc/${NAME}/html/"

DIFF_EXCLUDES="doxygen.log out"

CFLAGS+=" -fno-strict-aliasing"
CXXFLAGS+=" -fno-strict-aliasing"

MAKEOPTS="-j13"

src_compile() {
	#NB: gnomevfs is disabled due to Gentoo bug 203389: https://bugs.gentoo.org/203389
	#which causes a segfault.
	local myconf
	
	pushd ${S}
	NO_ACLOCAL=1 NO_LIBTOOLIZE=1 NO_AUTOHEADER=1 NO_AUTOMAKE=1 \
	cygautoreconf

	pushd ${S}/locale
	rm -f *.mo
	cygmake allmo -j1
	popd
	
	mkdir -p ${B}/base
	pushd ${B}/base

	# standalone wx_base
	cygconf \
		--enable-compat26 \
		--enable-optimise \
		--enable-shared \
		--enable-unicode \
		--disable-gui \
		--disable-rpath \
		--with-regex=sys \
		--with-expat \
		--with-libiconv \
		--with-zlib

	popd
	mkdir -p ${B}/gtk2
	pushd ${B}/gtk2

	cygconf \
		--enable-optimise \
		--enable-shared \
		--enable-unicode \
		--enable-mediactrl \
		--disable-rpath \
		--with-regex=sys \
		--with-expat \
		--with-gtk=2 \
		--with-libpng \
		--with-libjpeg \
		--with-libiconv \
		--with-libmspack \
		--with-libnotify \
		--with-libtiff \
		--with-libxpm \
		--with-opengl \
		--with-sdl \
		--with-zlib

	cygmake

    popd
	mkdir -p ${B}/gtk3
	pushd ${B}/gtk3

	cygconf \
		--enable-optimise \
		--enable-shared \
		--enable-unicode \
		--enable-mediactrl \
		--disable-rpath \
		--with-regex=sys \
		--with-expat \
		--with-gtk=3 \
		--with-libpng \
		--with-libjpeg \
		--with-libiconv \
		--with-libmspack \
		--with-libnotify \
		--with-libtiff \
		--with-libxpm \
		--with-opengl \
		--with-sdl \
		--with-zlib

	cygmake

	popd
	pushd ${S}/docs/doxygen
	WX_SKIP_DOXYGEN_VERSION_CHECK=1 ./regen.sh html
	popd
}

#Disabled, as automated tests are currently not working.
#src_test() {
#	echo "--- GTK2 tests ---"
#	pushd ${B}/gtk2/tests
#	cygmake
#	DISPLAY=:0 PATH="${B}/lib:$PATH" ./test
#	DISPLAY=:0 PATH="${B}/lib:$PATH" ./test_gui
#	popd
#	
#	echo "--- GTK3 tests ---"
#	pushd ${B}/gtk3/tests
#	cygmake
#	DISPLAY=:0 PATH="${B}/lib:$PATH" ./test
#	DISPLAY=:0 PATH="${B}/lib:$PATH" ./test_gui
#	popd
#}

src_install() {
	dodir /usr/lib
	cd ${B}/base
	cp -fr lib/wx/ ${D}/usr/lib/
	cd ${B}/gtk2
	cyginstall -j1
	cp -fr lib/lib*.dll.a lib/wx/ ${D}/usr/lib/
	cd ${B}/gtk3
	cyginstall -j1
	cp -fr lib/lib*.dll.a lib/wx/ ${D}/usr/lib/

	rm -f ${D}/usr/lib/wx/config/inplace-*

	mv ${D}/usr/lib/*.dll ${D}/usr/bin
	mv ${D}/usr/bin/wxrc-${slot}{,.exe}

	rm -f ${D}/usr/bin/wx-config-${slot}
	dosym ../lib/wx/config/gtk3-unicode-${slot} /usr/bin/wx-config-${slot}

	insinto /usr/share/aclocal
	newins ${S}/wxwin.m4 wxwin-${slot}.m4

	cd ${S}/docs
	dodoc changes.txt gpl.txt lgpl.txt licendoc.txt preamble.txt todo.txt

	cp -r ${S}/docs/doxygen/out/html/ ${D}/usr/share/doc/${NAME}/

	rm -f ${D}/usr/share/locale/*/LC_MESSAGES/wxmsw*.mo
}

[-- Attachment #1.1.3: 0x87B761FE07F548D6.asc --]
[-- Type: application/pgp-keys, Size: 3235 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2020-11-25 10:02 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-16 19:20 Hamish McIntyre-Bhatty
2020-10-17  0:21 ` Lemures Lemniscati
2020-10-17 13:17   ` Hamish McIntyre-Bhatty
2020-10-17 15:04     ` Brian Inglis
2020-10-19 15:31       ` Hamish McIntyre-Bhatty
2020-10-21 13:57         ` Hamish McIntyre-Bhatty
2020-10-21 17:17           ` Brian Inglis
2020-10-21 18:39             ` Achim Gratz
2020-10-27 11:53               ` Hamish McIntyre-Bhatty
2020-10-27 13:16                 ` ASSI
2020-10-28  2:21                   ` Hamish McIntyre-Bhatty
2020-10-28  8:40                     ` Achim Gratz
2020-10-30 19:39                       ` Hamish McIntyre-Bhatty
2020-11-11 15:15                       ` Hamish McIntyre-Bhatty
2020-11-11 17:36                         ` Hamish McIntyre-Bhatty
2020-11-12 18:00                           ` Hamish McIntyre-Bhatty
2020-11-21 16:52                             ` Hamish McIntyre-Bhatty
2020-11-21 21:56                               ` Brian Inglis
2020-11-22  9:43                                 ` Achim Gratz
2021-01-08 17:07                                   ` Hamish McIntyre-Bhatty
2021-01-08 17:15                                     ` Achim Gratz
2020-11-22  9:41                               ` Achim Gratz
2020-11-23 12:53                                 ` Hamish McIntyre-Bhatty
2020-11-23 15:26                                   ` ASSI
2020-11-23 16:18                                     ` Hamish McIntyre-Bhatty
2020-11-23 19:16                                       ` ASSI
2020-11-23 19:24                                         ` Hamish McIntyre-Bhatty
2020-11-23 19:34                                           ` Hamish McIntyre-Bhatty
2020-11-23 20:05                                           ` ASSI
2020-11-23 20:11                                             ` Hamish McIntyre-Bhatty
2020-11-24 10:15                                               ` Hamish McIntyre-Bhatty
2020-11-24 10:43                                                 ` Hamish McIntyre-Bhatty
2020-11-24 19:51                                                   ` Hamish McIntyre-Bhatty
2020-11-25 10:02                                                     ` Hamish McIntyre-Bhatty [this message]
2020-12-09 20:55                                                       ` Hamish McIntyre-Bhatty
2020-12-13 20:12                                                         ` Marco Atzeri
2020-12-14  9:46                                                           ` Hamish McIntyre-Bhatty
2020-12-14 20:21                                                             ` Marco Atzeri
2020-12-15  1:49                                                               ` Hamish McIntyre-Bhatty

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DB7PR02MB3996F092767EF3A49B043F91E7FA0@DB7PR02MB3996.eurprd02.prod.outlook.com \
    --to=hamishmb@live.co.uk \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).