wok-current diff nomacs/receipt @ rev 18676

syslinux/iso2exe: fix add custom config
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 06 12:45:22 2015 +0100 (2015-12-06)
parents
children afae00265386
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/nomacs/receipt	Sun Dec 06 12:45:22 2015 +0100
     1.3 @@ -0,0 +1,41 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="nomacs"
     1.7 +VERSION="1.6.0"
     1.8 +CATEGORY="graphics"
     1.9 +SHORT_DESC="Pictures browser"
    1.10 +MAINTAINER="psychomaniak@xakep.ru"
    1.11 +LICENSE="GPL3"
    1.12 +WEB_SITE="http://www.nomacs.org"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.14 +WGET_URL="$SF_MIRROR/$PACKAGE/files/$PACKAGE-$VERSION-source.tar.bz2"
    1.15 +
    1.16 +DEPENDS="libQtCore libQtGui libQtNetwork libgomp exiv2"
    1.17 +BUILD_DEPENDS="Qt4-dev qmake cmake exiv2-dev libraw-dev"
    1.18 +SUGGESTED="xdg-utils qtconfig"
    1.19 +
    1.20 +# Rules to configure and make the package.
    1.21 +compile_rules()
    1.22 +{
    1.23 +	cd $src/src/img ; cp -f nomacs32.png nomacs.png
    1.24 +	cd $src ; sed -i 's/ ON/ OFF/g' CMakeLists.txt
    1.25 +	mkdir build ; cd build
    1.26 +	cmake \
    1.27 +		-DENABLE_OPENCV=OFF \
    1.28 +		-DENABLE_RAW=OFF \
    1.29 +		-DENABLE_WEBP=OFF \
    1.30 +		-DENABLE_TIFF=OFF \
    1.31 +		-DDISABLE_QT_DEBUG=ON \
    1.32 +		-DCMAKE_INSTALL_PREFIX=/usr ..
    1.33 +	make
    1.34 +	make DESTDIR=$DESTDIR install
    1.35 +}
    1.36 +
    1.37 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.38 +genpkg_rules()
    1.39 +{
    1.40 +	cp -a $install/* $fs
    1.41 +	rm -rf $src/build
    1.42 +	cd $fs/usr/share/$PACKAGE/translations
    1.43 +	find * -size -62k -delete
    1.44 +}