wok-next annotate libextractor/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | 342b30daff76 |
children | 75632eca5b07 |
rev | line source |
---|---|
al@20328 | 1 # SliTaz package receipt v2. |
pascal@11554 | 2 |
pascal@11554 | 3 PACKAGE="libextractor" |
al@20328 | 4 VERSION="1.6" |
al@20328 | 5 CATEGORY="utilities" |
al@20328 | 6 SHORT_DESC="Extract meta data from files of arbitrary type" |
pascal@11554 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15472 | 8 LICENSE="GPL2" |
al@20328 | 9 WEB_SITE="https://www.gnu.org/software/libextractor/" |
al@20328 | 10 |
pascal@11554 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@11554 | 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
pascal@11554 | 13 |
al@20328 | 14 BUILD_DEPENDS="libtool iso-codes libvorbis-dev flac-dev zlib-dev bzip2-dev \ |
al@20328 | 15 libmpeg2-dev libjpeg-turbo-dev tiff-dev libarchive-dev exiv2-dev giflib-dev \ |
al@21020 | 16 libmagic-dev tidy-dev gettext-dev glib-dev gdk-pixbuf-dev libgsf-dev ffmpeg-dev" |
al@21020 | 17 SPLIT="\ |
al@21020 | 18 $PACKAGE-archive $PACKAGE-exiv2 $PACKAGE-flac $PACKAGE-gif \ |
al@21020 | 19 $PACKAGE-jpeg $PACKAGE-mime $PACKAGE-mpeg $PACKAGE-ogg \ |
al@21020 | 20 $PACKAGE-ole2 $PACKAGE-thumbnailffmpeg $PACKAGE-thumbnailgtk $PACKAGE-tiff \ |
al@21020 | 21 $PACKAGE $PACKAGE-dev" |
pascal@11554 | 22 |
al@20328 | 23 compile_rules() { |
al@20328 | 24 ./configure \ |
al@20328 | 25 --enable-shared \ |
al@20328 | 26 --disable-static \ |
al@20575 | 27 $CONFIGURE_ARGS && |
al@20575 | 28 fix libtool && |
al@20575 | 29 make -j1 && |
al@20575 | 30 make install |
pascal@11554 | 31 } |
pascal@11554 | 32 |
al@20328 | 33 genpkg_rules() { |
al@20328 | 34 case $PACKAGE in |
al@20328 | 35 libextractor) |
al@20328 | 36 copy @std @rm |
al@20328 | 37 DEPENDS="bzlib libltdl zlib" |
al@20328 | 38 ;; |
al@20328 | 39 *-dev) |
al@20328 | 40 copy @dev |
al@20328 | 41 ;; |
al@20328 | 42 *) |
al@20328 | 43 copy libextractor_${PACKAGE/libextractor-/}.so |
al@20328 | 44 CAT="utilities|${PACKAGE/libextractor-/} plugin" |
al@20328 | 45 ;; |
al@20328 | 46 esac |
al@20328 | 47 |
al@20328 | 48 case $PACKAGE in |
al@20328 | 49 *-archive) DEPENDS="libarchive";; |
al@20328 | 50 *-exiv2) DEPENDS="exiv2";; |
al@20328 | 51 *-flac) DEPENDS="flac";; |
al@20328 | 52 *-gif) DEPENDS="giflib";; |
al@20328 | 53 *-jpeg) DEPENDS="libjpeg-turbo";; |
al@20328 | 54 *-mime) DEPENDS="libmagic";; |
al@20328 | 55 *-mpeg) DEPENDS="libmpeg2";; |
al@20749 | 56 *-ogg) DEPENDS="libvorbis";; |
al@20749 | 57 *-ole2) DEPENDS="glib libextractor libgsf";; |
al@20328 | 58 *ffmpeg) DEPENDS="ffmpeg libmagic";; |
al@20328 | 59 *gtk) DEPENDS="gdk-pixbuf glib libmagic";; |
al@20328 | 60 *-tiff) DEPENDS="tiff";; |
al@20328 | 61 esac |
pascal@11554 | 62 } |