From c59a33b86ed99ca0711bb5dcdb6c11bb1dad19da Mon Sep 17 00:00:00 2001 From: 11doctorwhocanada <11doctorwhocanada@gmail.com> Date: Thu, 30 Apr 2015 11:15:12 -0400 Subject: [PATCH] static build instructions in. couldn't stand the uneveness. --- mingw-w64-wxwidgets/PKGBUILD | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/mingw-w64-wxwidgets/PKGBUILD b/mingw-w64-wxwidgets/PKGBUILD index 1eada6c7f0..2716911e07 100644 --- a/mingw-w64-wxwidgets/PKGBUILD +++ b/mingw-w64-wxwidgets/PKGBUILD @@ -1,5 +1,6 @@ # Maintainer: Alexey Pavlov # Contributor: Renato Silva +# Contributor: Zach Bacon <11doctorwhocanada@gmail.com> _realname=wxWidgets pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" @@ -46,12 +47,40 @@ build() { --enable-iff \ --enable-permissive \ --enable-unicode \ + --enable-graphics_ctx \ --enable-accessibility \ --disable-mediactrl \ --disable-monolithic \ --disable-mslu \ --disable-precomp-headers \ - --with-msw + --with-msw \ + --with-opengl + + make #VERBOSE=1 + + #CXXFLAGS+=" -std=gnu++11" + [[ -d ${srcdir}/build-${CARCH}-static ]] && rm -rf ${srcdir}/build-${CARCH}-static + mkdir -p ${srcdir}/build-${CARCH}-static && cd ${srcdir}/build-${CARCH}-static + + ../${_realname}-${pkgver}/configure \ + --prefix=${MINGW_PREFIX} \ + --host=${MINGW_CHOST} \ + --target=${MINGW_CHOST} \ + --build=${MINGW_CHOST} \ + --enable-static \ + --disable-shared \ + --enable-iniconf \ + --enable-iff \ + --enable-permissive \ + --enable-unicode \ + --enable-graphics_ctx \ + --enable-accessibility \ + --disable-mediactrl \ + --disable-monolithic \ + --disable-mslu \ + --disable-precomp-headers \ + --with-msw \ + --with-opengl make #VERBOSE=1 } @@ -59,6 +88,9 @@ build() { package() { cd ${srcdir}/build-${CARCH} make DESTDIR="${pkgdir}" install + + cd ${srcdir}/build-${CARCH}-static + make DESTDIR="${pkgdir}" install mv ${pkgdir}${MINGW_PREFIX}/lib/*.dll ${pkgdir}${MINGW_PREFIX}/bin