wok annotate wine-rt/receipt @ rev 24942

BootProg: clear cmdline
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Apr 20 15:10:50 2022 +0000 (2022-04-20)
parents ee1d44476432
children
rev   line source
al@13542 1 # SliTaz package receipt.
al@13542 2
al@13542 3 PACKAGE="wine-rt"
Hans-G?nter@23733 4 VERSION="5.0"
al@13542 5 CATEGORY="misc"
Hans-G?nter@22133 6 TAGS="windows"
al@13542 7 SHORT_DESC="Windows API for Linux."
al@13542 8 MAINTAINER="xj@wp.pl"
pascal@15363 9 LICENSE="LGPL2.1"
Hans-G?nter@22133 10 WEB_SITE="https://www.winehq.org/"
Hans-G?nter@22133 11
Hans-G?nter@22133 12 TARBALL="${PACKAGE%-rt}-$VERSION.tar.xz"
Hans-G?nter@23733 13 WGET_URL="https://dl.winehq.org/${PACKAGE%-rt}/source/${VERSION}/$TARBALL"
Hans-G?nter@22133 14
al@13542 15 PROVIDE="wine"
Hans-G?nter@23733 16 DEPENDS="alsa-lib freetype jpeg lcms libglu-mesa libpng libxslt libxml2 mesa
Hans-G?nter@22133 17 tiff xorg-dev"
Hans-G?nter@23733 18 BUILD_DEPENDS="alsa-lib-dev bison flex freetype-dev jpeg-dev lcms-dev libglu-mesa-dev
Hans-G?nter@22133 19 libpng-dev libtool libxml2-dev libxslt-dev mesa-dev prelink tiff-dev"
al@13542 20
pascal@24465 21 # What is the latest version available today?
pascal@24465 22 current_version()
pascal@24465 23 {
pascal@24465 24 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24465 25 sed '/announce/!d;s|.*;||;s|<.*||;q'
pascal@24465 26 }
pascal@24465 27
al@13542 28 # Rules to configure and make the package.
al@13542 29 compile_rules()
al@13542 30 {
Hans-G?nter@22133 31 # since 1.7.3.2
al@13542 32 patch -s -Np1 -i $stuff/wine-rt-101107.patch
al@13542 33
al@13542 34 CONFIGURE_ARGS='
al@13542 35 --prefix=/usr
al@13542 36 --disable-tests
al@13542 37 --without-capi
al@13542 38 --without-cms
al@13542 39 --without-coreaudio
al@13542 40 --without-cups
al@13542 41 --without-gphoto
al@13542 42 --without-gnutls
al@13542 43 --without-gsm
al@13542 44 --without-ldap
al@13542 45 --without-mpg123
al@13542 46 --without-openal
al@13542 47 --without-opencl
al@13542 48 --without-oss
al@13542 49 --without-sane
al@13542 50 --without-v4l
al@13542 51 --disable-win16
al@13542 52 --with-x
al@13542 53 '
Hans-G?nter@22133 54 CFLAGS="$CFLAGS -O2 -funroll-loops -frounding-math -mfpmath=sse -msse2 \
Hans-G?nter@22133 55 -fsignaling-nans -pipe"
Hans-G?nter@22133 56
Hans-G?nter@22133 57 ./configure $CONFIGURE_ARGS &&
Hans-G?nter@22133 58 make $MAKEFLAGS &&
Hans-G?nter@22133 59 make install
al@13542 60 }
al@13542 61
al@13542 62 # Rules to gen a SliTaz package suitable for Tazpkg.
al@13542 63 genpkg_rules()
al@13542 64 {
Hans-G?nter@22133 65 mkdir -p $fs/usr/lib/wine
Hans-G?nter@22133 66 mkdir -p $fs/usr/share
Hans-G?nter@22133 67
Hans-G?nter@22133 68 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22133 69 cp -a $install/usr/share/wine $fs/usr/share
Hans-G?nter@22133 70 cp -a $install/usr/share/applications $fs/usr/share
Hans-G?nter@22133 71 cp -a $install/usr/lib/lib* $fs/usr/lib
Hans-G?nter@22133 72 cp -a $install/usr/lib/wine/*.so $fs/usr/lib/wine
al@13542 73 }
al@13542 74
al@13542 75 post_install()
al@13542 76 {
pascal@17552 77 [ "$1" ] || modprobe snd-seq 2>/dev/null
al@13542 78 }