wok-current annotate jpeg-turbo/receipt @ rev 25520
created recipes for libluv and libluv-dev 1.44.2.1
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 24 15:44:32 2023 +0100 (22 months ago) |
parents | ba7cbdb5749c |
children | 5926178cd6fa |
rev | line source |
---|---|
pascal@19097 | 1 # SliTaz package receipt. |
pascal@19097 | 2 |
pascal@19097 | 3 PACKAGE="jpeg-turbo" |
Hans-G?nter@24691 | 4 VERSION="2.1.3" |
pascal@19097 | 5 CATEGORY="x-window" |
Hans-G?nter@22973 | 6 TAGS="jpeg jpg" |
pascal@19097 | 7 SHORT_DESC="JPEG image programs." |
pascal@19097 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@19097 | 9 LICENSE="MIT" |
Hans-G?nter@22973 | 10 WEB_SITE="https://libjpeg-turbo.virtualgl.org/" |
Hans-G?nter@24691 | 11 REPOLOGY="libjpeg-turbo" |
Hans-G?nter@22973 | 12 |
Hans-G?nter@22973 | 13 SOURCE="libjpeg-turbo" |
pascal@19097 | 14 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@24691 | 15 WGET_URL="https://github.com/$SOURCE/$SOURCE/archive/refs/tags/$VERSION.tar.gz" |
pascal@19097 | 16 |
pascal@19097 | 17 DEPENDS="libjpeg-turbo" |
Hans-G?nter@22973 | 18 BUILD_DEPENDS="cmake nasm" |
Hans-G?nter@22973 | 19 |
Hans-G?nter@22973 | 20 # @maintainer: Please update also: libjpeg-turbo and libjpeg-turbo-dev |
pascal@19097 | 21 |
pascal@24412 | 22 # What is the latest version available today? |
pascal@24412 | 23 current_version() |
pascal@24412 | 24 { |
pascal@24412 | 25 wget -O - https://sourceforge.net/projects/libjpeg-turbo/files/ 2>/dev/null | \ |
pascal@24412 | 26 sed '/scope="row/!d;/\/[0-9]/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24412 | 27 sed '/scope="row/!d;s|.*/files/||;s|/.*||;q' |
pascal@24412 | 28 } |
pascal@24412 | 29 |
pascal@19097 | 30 # Rules to configure and make the package. |
pascal@19097 | 31 compile_rules() |
pascal@19097 | 32 { |
Hans-G?nter@24691 | 33 mkdir _build && |
Hans-G?nter@24691 | 34 cd _build && |
Hans-G?nter@22973 | 35 cmake .. \ |
Hans-G?nter@24691 | 36 -G "Unix Makefiles" \ |
Hans-G?nter@24691 | 37 -D CMAKE_INSTALL_PREFIX=/usr \ |
Hans-G?nter@24691 | 38 -D WITH_JPEG8=1 && |
pascal@19097 | 39 make && |
pascal@19097 | 40 make DESTDIR=$DESTDIR install |
pascal@19097 | 41 } |
pascal@19097 | 42 |
pascal@19097 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@19097 | 44 genpkg_rules() |
pascal@19097 | 45 { |
Hans-G?nter@24691 | 46 cook_copy_folders bin |
pascal@19097 | 47 } |