wok-6.x annotate rdpdesk/receipt @ rev 25035

Up libqcow (20210419)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 20 18:11:13 2022 +0000 (2022-05-20)
parents e919c5a2742d
children
rev   line source
pascal@11227 1 # SliTaz package receipt.
pascal@11227 2
pascal@11227 3 PACKAGE="rdpdesk"
pascal@11227 4 VERSION="3.2"
pascal@11227 5 CATEGORY="network"
pascal@11227 6 SHORT_DESC="RDP, VNC & ICA client."
pascal@11227 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15601 8 LICENSE="GPL3"
pascal@11227 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@21799 10 WEB_SITE="https://web.archive.org/web/20120603061746/http://rdpdesk.com/"
pascal@11227 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@11227 12
al@18521 13 DEPENDS="wxWidgets28 xorg-libXp xorg-libXaw libssl"
al@18521 14 BUILD_DEPENDS="wxWidgets28-dev xorg-imake jpeg-dev zlib-dev \
pascal@15616 15 openssl-dev xorg-libXp autoconf"
pascal@11227 16 SUGGESTED="wfica rdesktop"
pascal@11227 17
pascal@24348 18 # What is the latest version available today?
pascal@24348 19 current_version()
pascal@24348 20 {
pascal@24348 21 wget -O - https://sourceforge.net/projects/rdpdesk/files/Releases/ 2>/dev/null | \
pascal@24348 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24348 23 sed '/scope="row/!d;s|.*/Releases/||;s|/.*||;q'
pascal@24348 24 }
pascal@24348 25
pascal@11227 26 # Rules to configure and make the package.
pascal@11227 27 compile_rules()
pascal@11227 28 {
pascal@12668 29 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
pascal@17670 30 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
pascal@12668 31
pascal@11227 32 cd $src
pascal@12668 33 sed -i 's|glib/.*h|glib.h|' src/proto/*Connection_nix.hpp
pascal@24779 34 ./configure --prefix=/usr $CONFIGURE_ARGS
pascal@24779 35
pascal@24779 36 # binutils 2.37 fix
pascal@24779 37 sed -i 's|ar clq|ar cq|' \
pascal@24779 38 src/proto/vnc_unixsrc/*/Makefile* \
pascal@24779 39 src/proto/vnc_unixsrc/Xvnc/config/util/crayar.sh
pascal@24779 40
pascal@11227 41 make &&
pascal@11227 42 make DESTDIR=$DESTDIR install
pascal@11227 43 }
pascal@11227 44
al@18521 45 # Rules to gen a SliTaz package suitable for Tazpkg.
al@18521 46 genpkg_rules()
pascal@11227 47 {
pascal@15601 48 cp -a $install/usr $fs
pascal@11227 49 }