wok-next view xvidcore/receipt @ rev 20458

Unlock x86_64 architecture
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 02 12:12:14 2018 +0200 (2018-03-02)
parents 0e8dadf052b9
children f48456621a9d
line source
1 # SliTaz package receipt v2.
3 PACKAGE="xvidcore"
4 VERSION="1.3.3"
5 CATEGORY="multimedia"
6 SHORT_DESC="XviD, a high performance/quality MPEG-4 video de-/encoding solution"
7 MAINTAINER="devl547@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.xvid.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://downloads.xvid.org/downloads/$TARBALL"
14 BUILD_DEPENDS="yasm"
15 SPLIT="xvidcore-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 # http://www.linuxfromscratch.org/blfs/view/stable/multimedia/xvid.html
21 cd build/generic &&
22 sed -i 's/^LN_S=@LN_S@/& -f -v/' platform.inc.in &&
23 ./configure $CONFIGURE_ARGS &&
24 make &&
25 sed -i '/libdir.*STATIC_LIB/ s/^/#/' Makefile &&
26 make DESTDIR=$install install &&
28 find $install/usr/lib/ -name 'libxvidcore.so.*' -type f -exec chmod -v 755 '{}' \; &&
30 mkdir -p $install/usr/share/doc/xvidcore-$VERSION/examples &&
31 install -v -m644 ../../doc/* $install/usr/share/doc/xvidcore-$VERSION &&
32 install -v -m644 ../../examples/* \
33 $install/usr/share/doc/xvidcore-$VERSION/examples
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 case $PACKAGE in
40 xvidcore) copy @std;;
41 *-dev) copy *.h;;
42 esac
43 }