* wine is kept at -Np0 ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
73 lines
2.4 KiB
Bash
73 lines
2.4 KiB
Bash
# Template file for 'wxWidgets-gtk3'
|
||
pkgname=wxWidgets-gtk3
|
||
version=3.0.5.1
|
||
revision=5
|
||
wrksrc="wxWidgets-${version}"
|
||
build_style=gnu-configure
|
||
configure_args="--with-gtk=3 --enable-unicode --with-opengl --with-sdl
|
||
--with-libmspack --with-libnotify --enable-mediactrl"
|
||
hostmakedepends="pkg-config"
|
||
makedepends="SDL2-devel gst-plugins-base1-devel gstreamer1-devel gtk+3-devel
|
||
libmspack-devel libnotify-devel tiff-devel webkit2gtk-devel glu-devel"
|
||
short_desc="The wxWidgets GUI toolkit library compiled with gtk3 support"
|
||
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
|
||
license="custom:wxWindows"
|
||
homepage="https://www.wxwidgets.org"
|
||
distfiles="https://github.com/wxWidgets/wxWidgets/releases/download/v${version}/wxWidgets-${version}.tar.bz2"
|
||
checksum=440f6e73cf5afb2cbf9af10cec8da6cdd3d3998d527598a53db87099524ac807
|
||
|
||
post_install() {
|
||
local _config="gtk3-unicode-3.0"
|
||
# remove all occurrences of $XBPS_CROSS_TRIPLET in wx-config:
|
||
# - mark this build as native build
|
||
if [ "$CROSS_BUILD" ]; then
|
||
rename "${XBPS_CROSS_TRIPLET}-" "" \
|
||
${DESTDIR}/usr/lib/wx/config/* \
|
||
${DESTDIR}/usr/lib/wx/include/*
|
||
rename -- "-${XBPS_CROSS_TRIPLET}" "" ${DESTDIR}/usr/lib/*
|
||
|
||
sed -i -e "s/${XBPS_CROSS_TRIPLET}-//g" \
|
||
-e "s/-${XBPS_CROSS_TRIPLET}//g" \
|
||
-e "s,$XBPS_CROSS_BASE,,g" \
|
||
${DESTDIR}/usr/lib/wx/config/${_config}
|
||
fi
|
||
rm -f ${DESTDIR}/usr/bin/wx-config
|
||
ln -sf ../lib/wx/config/${_config} ${DESTDIR}/usr/bin/wx-config-gtk3
|
||
# - ignore --host option; breaks configure scripts when
|
||
# cross compiling (isn’t necessary in our case anyway)
|
||
sed -i -e 's,^bindir=.*,bindir=${exec_prefix}/bin,' \
|
||
-e 's/is_cross().*/is_cross() { false; }/g' \
|
||
-e '/--\*=\*)/i --host=\*) continue;;' \
|
||
-e "s,/usr/lib,\${exec_prefix}/lib,g" \
|
||
$DESTDIR/usr/lib/wx/config/${_config}
|
||
}
|
||
|
||
wxWidgets-common_package() {
|
||
short_desc+=" - common files"
|
||
pkg_install() {
|
||
vmove "usr/lib/libwx_baseu*.so.*"
|
||
vmove usr/share
|
||
vlicense docs/licendoc.txt
|
||
vlicense docs/licence.txt
|
||
}
|
||
}
|
||
|
||
wxWidgets-common-devel_package() {
|
||
depends="wxWidgets-common>=${version}_${revision}"
|
||
short_desc+=" - common development files"
|
||
pkg_install() {
|
||
vmove "usr/bin/wxrc*"
|
||
vmove "usr/lib/libwx_baseu*.so"
|
||
vmove usr/include
|
||
}
|
||
}
|
||
|
||
wxWidgets-gtk3-devel_package() {
|
||
depends="${sourcepkg}>=${version}_${revision} wxWidgets-common-devel>=${version}_${revision}"
|
||
short_desc+=" - development files"
|
||
pkg_install() {
|
||
vmove usr/bin
|
||
vmove "usr/lib/*.so"
|
||
vmove usr/lib/wx
|
||
}
|
||
}
|