wok-current view nomacs/receipt @ rev 21779

linld: fix strdup (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 11 16:53:39 2019 +0200 (2019-07-11)
parents
children afae00265386
line source
1 # SliTaz package receipt.
3 PACKAGE="nomacs"
4 VERSION="1.6.0"
5 CATEGORY="graphics"
6 SHORT_DESC="Pictures browser"
7 MAINTAINER="psychomaniak@xakep.ru"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.nomacs.org"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="$SF_MIRROR/$PACKAGE/files/$PACKAGE-$VERSION-source.tar.bz2"
13 DEPENDS="libQtCore libQtGui libQtNetwork libgomp exiv2"
14 BUILD_DEPENDS="Qt4-dev qmake cmake exiv2-dev libraw-dev"
15 SUGGESTED="xdg-utils qtconfig"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src/src/img ; cp -f nomacs32.png nomacs.png
21 cd $src ; sed -i 's/ ON/ OFF/g' CMakeLists.txt
22 mkdir build ; cd build
23 cmake \
24 -DENABLE_OPENCV=OFF \
25 -DENABLE_RAW=OFF \
26 -DENABLE_WEBP=OFF \
27 -DENABLE_TIFF=OFF \
28 -DDISABLE_QT_DEBUG=ON \
29 -DCMAKE_INSTALL_PREFIX=/usr ..
30 make
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cp -a $install/* $fs
38 rm -rf $src/build
39 cd $fs/usr/share/$PACKAGE/translations
40 find * -size -62k -delete
41 }