wok-next view libextractor/receipt @ rev 20459
Combine receipts
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 02 13:45:43 2018 +0200 (2018-03-02) |
parents | 6c3718ca17b6 |
children | 0ec6086e21d6 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libextractor"
4 VERSION="1.6"
5 CATEGORY="utilities"
6 SHORT_DESC="Extract meta data from files of arbitrary type"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.gnu.org/software/libextractor/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="libtool iso-codes libvorbis-dev flac-dev zlib-dev bzip2-dev \
15 libmpeg2-dev libjpeg-turbo-dev tiff-dev libarchive-dev exiv2-dev giflib-dev \
16 libmagic-dev tidy-dev gettext glib-dev gdk-pixbuf-dev libgsf-dev ffmpeg-dev"
17 SPLIT="libextractor-archive libextractor-exiv2 libextractor-flac \
18 libextractor-gif libextractor-jpeg libextractor-mime libextractor-mpeg \
19 libextractor-ogg libextractor-ole2 libextractor-thumbnailffmpeg \
20 libextractor-thumbnailgtk libextractor-tiff libextractor libextractor-dev"
22 compile_rules() {
23 ./configure \
24 --enable-shared \
25 --disable-static \
26 $CONFIGURE_ARGS &&
27 make -j 1 &&
28 make install
29 }
31 genpkg_rules() {
32 case $PACKAGE in
33 libextractor)
34 copy @std @rm
35 DEPENDS="bzlib libltdl zlib"
36 ;;
37 *-dev)
38 copy @dev
39 DEPENDS="${SPLIT/$PACKAGE/} acl-dev attr-dev bzip2-dev curl-dev \
40 exiv2-dev expat-dev ffmpeg-dev flac-dev gdk-pixbuf-dev giflib-dev \
41 glib-dev libjpeg-turbo-dev libarchive-dev libffi-dev libgsf-dev \
42 libidn2-dev libmagic-dev libmpeg2-dev libogg-dev libpng16-dev \
43 libssh2-dev libtool libvorbis-dev libxml2-dev lz4-lib lzo-dev \
44 nettle-dev openssl-dev pcre-dev tiff-dev util-linux-blkid-dev \
45 util-linux-mount-dev util-linux-uuid-dev xz-dev zlib-dev"
46 ;;
47 *)
48 copy libextractor_${PACKAGE/libextractor-/}.so
49 CAT="utilities|${PACKAGE/libextractor-/} plugin"
50 ;;
51 esac
53 case $PACKAGE in
54 *-archive) DEPENDS="libarchive";;
55 *-exiv2) DEPENDS="exiv2";;
56 *-flac) DEPENDS="flac";;
57 *-gif) DEPENDS="giflib";;
58 *-jpeg) DEPENDS="libjpeg-turbo";;
59 *-mime) DEPENDS="libmagic";;
60 *-mpeg) DEPENDS="libmpeg2";;
61 *-ogg) DEPENDS="libogg libvorbis";;
62 *-ole2) DEPENDS="glib libextractor libgsf libxml2";;
63 *ffmpeg) DEPENDS="ffmpeg libmagic";;
64 *gtk) DEPENDS="gdk-pixbuf glib libmagic";;
65 *-tiff) DEPENDS="tiff";;
66 esac
67 }