2016-01-04 03:05:56 +01:00
|
|
|
pkgname=mingw-w64-wxmsw
|
|
|
|
epoch=1
|
|
|
|
pkgver=3.0.2
|
2016-01-13 19:53:31 +01:00
|
|
|
pkgrel=2
|
2016-01-04 03:05:56 +01:00
|
|
|
pkgdesc="Win32 implementation of wxWidgets API for GUI (mingw-w64)"
|
2016-01-13 19:53:31 +01:00
|
|
|
arch=('any')
|
2016-01-04 03:05:56 +01:00
|
|
|
url="http://wxwidgets.org"
|
|
|
|
license=("custom:wxWindows")
|
2016-01-13 19:53:31 +01:00
|
|
|
depends=('mingw-w64-crt' 'mingw-w64-libpng' 'mingw-w64-libjpeg-turbo' 'mingw-w64-libtiff')
|
|
|
|
makedepends=('mingw-w64-gcc')
|
2016-01-04 03:05:56 +01:00
|
|
|
options=(staticlibs !strip !buildflags)
|
2016-01-13 19:53:31 +01:00
|
|
|
conflicts=('mingw-w64-wxmsw2.9' 'mingw-w64-wxmsw-static')
|
|
|
|
provides=('mingw-w64-wxmsw2.9' 'mingw-w64-wxmsw-static')
|
|
|
|
replaces=('mingw-w64-wxmsw2.9')
|
2016-01-04 03:05:56 +01:00
|
|
|
source=("http://downloads.sourceforge.net/wxwindows/wxWidgets-${pkgver}.tar.bz2")
|
|
|
|
sha1sums=('6461eab4428c0a8b9e41781b8787510484dea800')
|
|
|
|
|
|
|
|
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
# monolithic shared builds
|
|
|
|
for _arch in ${_architectures}; do
|
|
|
|
unset LDFLAGS
|
|
|
|
mkdir -p "${srcdir}/${pkgname}-${pkgver}-build-shared-${_arch}"
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}-build-shared-${_arch}"
|
|
|
|
"${srcdir}"/wxWidgets-$pkgver/configure \
|
|
|
|
--prefix=/usr/${_arch} \
|
|
|
|
--build=$CHOST \
|
|
|
|
--host=${_arch} \
|
|
|
|
--with-msw \
|
|
|
|
--with-opengl \
|
|
|
|
--disable-mslu \
|
|
|
|
--enable-unicode \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-monolithic \
|
|
|
|
--enable-stl \
|
|
|
|
--with-regex=builtin \
|
|
|
|
--disable-precomp-headers \
|
|
|
|
--enable-graphics_ctx \
|
|
|
|
--enable-webview \
|
|
|
|
--enable-mediactrl \
|
|
|
|
--with-libpng=sys \
|
|
|
|
--with-libxpm=builtin \
|
|
|
|
--with-libjpeg=sys \
|
|
|
|
--with-libtiff=sys
|
|
|
|
make
|
|
|
|
done
|
|
|
|
|
|
|
|
# static builds
|
|
|
|
for _arch in ${_architectures}; do
|
|
|
|
unset LDFLAGS
|
|
|
|
mkdir -p "${srcdir}/${pkgname}-${pkgver}-build-static-${_arch}"
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}-build-static-${_arch}"
|
|
|
|
"${srcdir}"/wxWidgets-$pkgver/configure \
|
|
|
|
--prefix=/usr/${_arch} \
|
|
|
|
--build=$CHOST \
|
|
|
|
--host=${_arch} \
|
|
|
|
--with-msw \
|
|
|
|
--with-opengl \
|
|
|
|
--disable-mslu \
|
|
|
|
--enable-unicode \
|
|
|
|
--disable-shared \
|
|
|
|
--enable-stl \
|
|
|
|
--with-regex=builtin \
|
|
|
|
--disable-precomp-headers \
|
|
|
|
--enable-graphics_ctx \
|
|
|
|
--enable-webview \
|
|
|
|
--enable-mediactrl \
|
|
|
|
--with-libpng=sys \
|
|
|
|
--with-libxpm=builtin \
|
|
|
|
--with-libjpeg=sys \
|
|
|
|
--with-libtiff=sys
|
|
|
|
make
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
mkdir -p "$pkgdir/usr/bin"
|
|
|
|
for _arch in ${_architectures}; do
|
|
|
|
for _build in "shared" "static"; do
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}-build-${_build}-${_arch}"
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
done
|
|
|
|
mv "$pkgdir/usr/${_arch}/lib/"*.dll "$pkgdir/usr/${_arch}/bin"
|
|
|
|
find "$pkgdir/usr/${_arch}" -name '*.exe' | xargs -rtl1 rm
|
|
|
|
find "$pkgdir/usr/${_arch}" -name '*.dll' | xargs -rtl1 ${_arch}-strip --strip-unneeded
|
|
|
|
find "$pkgdir/usr/${_arch}" -name '*.a' -o -name '*.dll' | xargs -rtl1 ${_arch}-strip -g
|
|
|
|
rm -r "$pkgdir/usr/${_arch}/share"
|
|
|
|
rm "$pkgdir/usr/${_arch}/bin/wxrc-3.0"
|
|
|
|
cd "$pkgdir/usr/bin/"
|
|
|
|
ln -s "../${_arch}/lib/wx/config/${_arch}-msw-unicode-${pkgver%.*}" "./${_arch}-wx-config"
|
|
|
|
done
|
|
|
|
}
|