wok-next annotate lirc/receipt @ rev 20738

Up scons (3.0.1); add scons2 (2.5.1)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue May 29 21:13:51 2018 +0300 (2018-05-29)
parents 5841522533ec
children d5aab818505e
rev   line source
pascal@20193 1 # SliTaz package receipt v2.
rcx@3717 2
rcx@3717 3 PACKAGE="lirc"
pascal@20193 4 VERSION="0.9.4d"
rcx@3717 5 CATEGORY="utilities"
al@20534 6 SHORT_DESC="Enables decoding and sending signals of many commonly used remote \
al@20534 7 controls"
rcx@3717 8 MAINTAINER="rcx@zoominternet.net"
pascal@15000 9 LICENSE="GPL2"
al@20595 10 WEB_SITE="http://www.lirc.org/"
al@20595 11
rcx@3717 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
rcx@3717 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
rcx@3717 14
pankso@10597 15 BUILD_DEPENDS="linux linux-module-headers python libusb-dev libirman-dev \
pankso@12481 16 portaudio-dev alsa-lib-dev libusb-compat-dev util-linux-uuid-dev \
al@20623 17 libftdi-dev jack-dev libxslt python3 eudev-dev"
al@20534 18 SPLIT="lirc-dev"
al@20595 19 COOKOPTS="skip-log-errors"
pankso@10597 20
al@20534 21 compile_rules() {
al@20534 22 KERNEL_VERSION=$(grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g')
pascal@6127 23 sed -i "s/uname -r/echo $KERNEL_VERSION-slitaz/g" configure
pascal@6127 24
rcx@3717 25 ./configure \
rcx@3717 26 --with-x \
rcx@3717 27 --with-driver=all \
rcx@3717 28 --with-kerneldir=/usr/src/linux \
slaxemulator@6703 29 --with-moduledir=/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc \
rcx@3717 30 $CONFIGURE_ARGS &&
al@20595 31 fix libtool &&
al@20595 32 make &&
al@20595 33 make DESTDIR=$DESTDIR install
rcx@3717 34 }
rcx@3717 35
al@20534 36 genpkg_rules() {
pascal@20193 37 case $PACKAGE in
al@20534 38 lirc)
al@20534 39 copy @std
al@20534 40 DEPENDS="glibc-base libusb libusb-compat libftdi xorg-libXau \
pascal@20193 41 libirman portaudio alsa-lib util-linux-uuid"
al@20534 42 ;;
al@20534 43 *-dev)
al@20534 44 copy @dev
al@20534 45 ;;
pascal@20193 46 esac
rcx@3717 47 }