wok-next view lensfun/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 | 014a4f35b014 |
children | 5669e8b3be70 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="lensfun"
4 VERSION="0.3.2"
5 CATEGORY="multimedia"
6 SHORT_DESC="Database of photographic lenses and a library that allows advanced \
7 access to the database"
8 MAINTAINER="devel@slitaz.org"
9 LICENSE="LGPL3 GPL3"
10 WEB_SITE="http://lensfun.sourceforge.net/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$SF_MIRROR/lensfun/$TARBALL"
15 BUILD_DEPENDS="cmake glib-dev libpng16-dev"
16 SPLIT="lenstool $PACKAGE $PACKAGE-dev"
18 compile_rules() {
19 case $ARCH in
20 i?86) ARCH_ARGS='-DBUILD_FOR_SSE=off -DBUILD_FOR_SSE2=off';;
21 *) ARCH_ARGS='';;
22 esac
24 mkdir build
25 cd build
26 cmake \
27 -DCMAKE_BUILD_TYPE=Release \
28 -DCMAKE_INSTALL_PREFIX=/usr \
29 -DBUILD_LENSTOOL=on \
30 $ARCH_ARGS \
31 .. &&
32 make &&
33 make install
34 }
36 genpkg_rules() {
37 case $PACKAGE in
38 lenstool)
39 copy lenstool
40 CAT="multimedia|reference implementation for Lenstool"
41 DEPENDS="glib lensfun libpng16"
42 ;;
43 lensfun)
44 copy @std @rm
45 DEPENDS="glib"
46 ;;
47 *-dev)
48 copy @dev
49 DEPENDS="lensfun glib-dev"
50 ;;
51 esac
52 }