wok-next diff ffmpeg-compat/receipt @ rev 20853
Up xgalaga++; fix build: vzctl, vzquota, w3m
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Jun 24 19:03:37 2018 +0300 (2018-06-24) |
parents | c4e53a39395a |
children | d5aab818505e |
line diff
1.1 --- a/ffmpeg-compat/receipt Fri Mar 02 12:12:14 2018 +0200 1.2 +++ b/ffmpeg-compat/receipt Sun Jun 24 19:03:37 2018 +0300 1.3 @@ -1,4 +1,4 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="ffmpeg-compat" 1.8 VERSION="0.10.12" 1.9 @@ -7,32 +7,27 @@ 1.10 MAINTAINER="pascal.bellard@slitaz.org" 1.11 LICENSE="GPL2 LGPL2.1" 1.12 WEB_SITE="http://ffmpeg.org/" 1.13 -SOURCE="ffmpeg" 1.14 -TARBALL="$SOURCE-$VERSION.tar.bz2" 1.15 + 1.16 +TARBALL="ffmpeg-$VERSION.tar.bz2" 1.17 WGET_URL="${WEB_SITE}releases/$TARBALL" 1.18 1.19 -DEPENDS="alsa-lib libsdl bzip2" 1.20 +BUILD_DEPENDS_arm="zlib-dev bzip2-dev yasm libsdl-dev" 1.21 BUILD_DEPENDS="libsdl-dev zlib-dev bzip2-dev coreutils-file-format \ 1.22 coreutils-file-special yasm" 1.23 +SPLIT="ffmpeg-compat-dev" 1.24 1.25 -# Handle cross compilation. Host coreutils-file-* are used 1.26 -case "$ARCH" in 1.27 - i?86) 1.28 - ARCH_ARGS="--arch=$ARCH --cpu=$ARCH" ;; 1.29 - arm*) 1.30 - BUILD_DEPENDS="zlib-dev bzip2-dev yasm libsdl-dev" 1.31 - ARCH_ARGS="--enable-cross-compile --arch=armel --target-os=linux \ 1.32 ---cross-prefix=$HOST_SYSTEM-" ;; 1.33 -esac 1.34 +compile_rules() { 1.35 + case "$ARCH" in 1.36 + i?86) 1.37 + ARCH_ARGS="--arch=$ARCH --cpu=$ARCH";; 1.38 + arm*) 1.39 + ARCH_ARGS="--enable-cross-compile --arch=armel --target-os=linux \ 1.40 + --cross-prefix=$HOST_SYSTEM-";; 1.41 + x86_64) 1.42 + ARCH_ARGS="" #??? 1.43 + ;; 1.44 + esac 1.45 1.46 -# Handle arch package install 1.47 -case "$SLITAZ_ARCH" in 1.48 - arm*) DEPENDS="alsa-lib bzip2" ;; 1.49 -esac 1.50 - 1.51 -# Rules to configure and make the package. 1.52 -compile_rules() 1.53 -{ 1.54 ./configure \ 1.55 --prefix=/usr \ 1.56 --incdir=/usr/include/ffmpeg-compat \ 1.57 @@ -56,23 +51,32 @@ 1.58 --disable-encoder=msmpeg4v3 \ 1.59 --disable-symver \ 1.60 --disable-debug \ 1.61 - --disable-doc ${ARCH_ARGS} && 1.62 + --disable-doc \ 1.63 + $ARCH_ARGS && 1.64 make && make install 1.65 } 1.66 1.67 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.68 -genpkg_rules() 1.69 -{ 1.70 - mkdir -p $fs/usr/lib 1.71 - cp -a $install/usr/lib/ffmpeg-compat $fs/usr/lib 1.72 +genpkg_rules() { 1.73 + case $PACKAGE in 1.74 + ffmpeg-compat) 1.75 + mkdir -p $fs/usr/lib 1.76 + cp -a $install/usr/lib/ffmpeg-compat $fs/usr/lib 1.77 + DEPENDS="alsa-lib libsdl bzip2" 1.78 + case "$SLITAZ_ARCH" in 1.79 + arm*) DEPENDS="alsa-lib bzip2";; 1.80 + esac 1.81 + ;; 1.82 + *-dev) 1.83 + mkdir -p $fs/usr 1.84 + cp -a $install/usr/include $fs/usr 1.85 + ;; 1.86 + esac 1.87 } 1.88 1.89 -post_install() 1.90 -{ 1.91 +post_install_ffmpeg_compat() { 1.92 echo "/usr/lib/ffmpeg-compat" >> "$1/etc/ld.so.conf" 1.93 } 1.94 1.95 -post_remove() 1.96 -{ 1.97 - sed -i '#/usr/lib/ffmpeg-compat#'d "$1/etc/ld.so.conf" 1.98 +post_remove_ffmpeg_compat() { 1.99 + sed -i '#/usr/lib/ffmpeg-compat#'d "$1/etc/ld.so.conf" 1.100 }