wok-next annotate x265/receipt @ rev 21014

x265: fix build for i486 arch
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Oct 14 11:28:22 2018 +0300 (2018-10-14)
parents 7d24131afd7d
children d5aab818505e
rev   line source
al@19741 1 # SliTaz package receipt v2.
pascal@19138 2
pascal@19138 3 PACKAGE="x265"
al@21013 4 VERSION="2.9"
pascal@19138 5 CATEGORY="multimedia"
al@19741 6 SHORT_DESC="Free H.265/MPEG-H HEVC encoder"
pascal@19138 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@19138 8 LICENSE="GPL2"
pascal@19138 9 WEB_SITE="http://www.videolan.org/developers/x265.html"
al@19741 10
pascal@19138 11 TARBALL="${PACKAGE}_$VERSION.tar.gz"
pascal@19138 12 WGET_URL="http://ftp.videolan.org/pub/videolan/x265/$TARBALL"
pascal@19138 13
al@21013 14 BUILD_DEPENDS="cmake nasm"
al@19741 15 SPLIT="x265-dev"
pascal@19138 16
al@21013 17 compile_rules() {
al@21014 18 # Fix build for i486 arch:
al@21014 19 # -- CMAKE_SYSTEM_PROCESSOR value `i486` is unknown
al@21014 20 # -- Please add this value near ${src}/source/CMakeLists.txt:78
al@21014 21 sed -i 's|i386 i686|i386 i486 i686|' $src/source/CMakeLists.txt
al@21014 22
pascal@19138 23 cd $src/build
al@21013 24 cmake \
al@21013 25 -DCMAKE_INSTALL_PREFIX=/usr \
al@21013 26 ../source &&
al@21013 27 make &&
al@21013 28 make install || return 1
al@21013 29
al@21013 30 cd $src
al@21013 31 cook_pick_docs readme.rst doc/reST/*.rst
pascal@19138 32 }
pascal@19138 33
al@21013 34 genpkg_rules() {
al@19741 35 case $PACKAGE in
al@21013 36 x265) copy @std;;
al@19741 37 *-dev) copy @dev;;
al@19741 38 esac
pascal@19138 39 }