From d217e0409c4313b27491b855d90c42846f023ea8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Tue, 16 Jan 2018 00:16:45 +0100 Subject: [PATCH] gmic: update to 2.1.8 Change build style to gnu-makefile and simplify template. --- common/shlibs | 2 ++ srcpkgs/gmic/patches/makefile.patch | 25 --------------- srcpkgs/gmic/template | 50 ++++++++++++++++++----------- 3 files changed, 33 insertions(+), 44 deletions(-) delete mode 100644 srcpkgs/gmic/patches/makefile.patch diff --git a/common/shlibs b/common/shlibs index b45f8741a05..5352cc3e760 100644 --- a/common/shlibs +++ b/common/shlibs @@ -500,6 +500,8 @@ libgimpconfig-2.0.so.0 libgimp-2.8.10_3 libgimpmath-2.0.so.0 libgimp-2.8.10_3 libgimpcolor-2.0.so.0 libgimp-2.8.10_3 libgimpmodule-2.0.so.0 libgimp-2.8.10_3 +libgmic.so.2 gmic-2.1.8_1 +libcgmic.so.2 gmic-2.1.8_1 libexiv2.so.26 exiv2-0.26_1 libKF5Holidays.so.5 kholidays-16.12.0_1 libsearchclient.so.0 strigi-0.7.2_1 diff --git a/srcpkgs/gmic/patches/makefile.patch b/srcpkgs/gmic/patches/makefile.patch deleted file mode 100644 index 92397066905..00000000000 --- a/srcpkgs/gmic/patches/makefile.patch +++ /dev/null @@ -1,25 +0,0 @@ ---- src/Makefile 2017-06-22 08:41:18.000000000 -0400 -+++ src/Makefile 2017-07-02 05:37:27.341025728 -0400 -@@ -477,14 +477,14 @@ - - gmic_qt_path: - @if [ ! -d ../gmic-qt ]; then \ -- if [ ! -d ../../gmic-qt ]; then \ -+ if [ ! -d ../gmic-qt ]; then \ - echo "**"; \ - echo "** Warning: folder 'gmic-qt' was not found !"; \ - echo "** It is mandatory to compile the G'MIC plug-in for GIMP 'gmic_gimp_qt',"; \ - echo "** as well as the standalone Qt-based interface 'gmic_qt'."; \ - echo "** Trying to retrieve it, with: $$ cd ../../ && git clone https://github.com/c-koi/gmic-qt.git"; \ - echo "**"; \ -- if cd ../../ && git clone https://github.com/c-koi/gmic-qt.git; then \ -+ if cd ../ && git clone https://github.com/c-koi/gmic-qt.git; then \ - echo "**"; \ - echo "** Success !"; \ - echo "**"; \ -@@ -494,7 +494,6 @@ - echo "**"; \ - fi; \ - fi; \ -- if [ -d ../../gmic-qt ]; then ln -fs ../gmic-qt ..; fi \ - fi diff --git a/srcpkgs/gmic/template b/srcpkgs/gmic/template index 0496faa1e70..bf2e6c28417 100644 --- a/srcpkgs/gmic/template +++ b/srcpkgs/gmic/template @@ -1,9 +1,10 @@ # Template file for 'gmic' pkgname=gmic -version=2.0.2 -revision=2 +version=2.1.8 +revision=1 _communityhash=c43f88d9537c58be4eeac515282eec8096c4a797 _qthash=c37a653270e69df1956b2614f0e9ce94934c4b06 +build_style=gnu-makefile hostmakedepends="pkg-config gimp" makedepends="fftw-devel libopenexr-devel MesaLib-devel libopencv-devel libgomp-devel libpng-devel libjpeg-turbo-devel tiff-devel libcurl-devel @@ -12,30 +13,41 @@ short_desc="GREYC's Magic for Image Computing (image processing framework)" maintainer="Jakub Skrzypnik " license="CeCILL" homepage="http://gmic.eu/" -distfiles="http://gmic.eu/files/source/gmic_${version}.tar.gz https://github.com/dtschump/gmic-community/archive/${_communityhash}.tar.gz +distfiles="http://gmic.eu/files/source/gmic_${version}.tar.gz + https://github.com/dtschump/gmic-community/archive/${_communityhash}.tar.gz https://github.com/c-koi/gmic-qt/archive/${_qthash}.tar.gz" -checksum="7da9f08d62a9d23fc8badbc7c819cf76f4a9ce3db763710268fdcb80d83ecfc6 41f5cbd42a09c18c0e974a11113e4fc7181a9c607c40e677357e3df77be2bd9c +checksum="f22783f14cb202dec4a840733f2028f6e2c464fdd2f0166fc38943702cea6bde + ce71a7d6acf9acde79de42a660f715e8779933e1689f14d39fb0ceaca7582efd 0bb1683f7ad8f55476ec57e53d73454e05cb79fc55b297eb519b2a24df728b44" -nopie=yes + +CXXFLAGS="-Wno-strict-overflow -Wno-deprecated -fkeep-inline-functions" pre_build() { mv ${XBPS_BUILDDIR}/gmic-qt-${_qthash} ${wrksrc}/gmic-qt - mv ${XBPS_BUILDDIR}/gmic-community-${_communityhash} ${wrksrc}/zart + mv ${XBPS_BUILDDIR}/gmic-community{-${_communityhash},} + mv ${XBPS_BUILDDIR}/gmic-community/zart ${wrksrc} + + sed -i ${wrksrc}/src/Makefile -e 's;\( *\)ar\( *\);\1$(AR)\2;' + + # Create a toplevel Makefile + cat > Makefile <