2017-10-29 10:20:57 +01:00
|
|
|
PORTNAME= gmic-qt
|
|
|
|
DISTVERSIONPREFIX= v.
|
2021-07-21 09:30:05 +02:00
|
|
|
DISTVERSION= 2.9.8
|
2018-09-04 22:10:21 +02:00
|
|
|
PORTEPOCH= 1
|
2017-10-29 10:20:57 +01:00
|
|
|
CATEGORIES= graphics kde
|
|
|
|
MASTER_SITES= http://gmic.eu/:stdlib \
|
|
|
|
LOCAL/tcberner/${PORTNAME}/${PORTVERSION}:stdlib
|
Fix fetch of graphics/gmic-qt distfile "gmic_stdlib.h"
gmic has had a versioned "stdlib" data file since 2018, as
described in https://github.com/dtschump/gmic/issues/61 ,
but the port always referred to an unversioned source;
this leads to fetch failures when the unversioned header
is updated on the development server (upstream). The
copy tcberner@ hangs on to is also whatever-happened-to-be-
unversioned at the time the port updates.
So r547673 updated the checksum, but to whatever-was-dev
at the time, and without updating tcberner@'s distcache.
This has meant fetch-failures since then, since the
dev header has updated again.
The *previous* version of the checksum, and the copy
tcberner@ has, is actually for gmic 2.4.0.
So hit the whole dang thing with a hammer again, fetch
the **versioned** header, copy it into its unversioned
destination, and reset the checksum. Bump PORTREVISION
because the package -- the bundled standard library --
has changed.
Reported by: fallout
2020-09-14 12:44:49 +02:00
|
|
|
DISTFILES= gmic_stdlib${DISTVERSION:S/.//g}.h:stdlib
|
2017-11-25 21:57:07 +01:00
|
|
|
DIST_SUBDIR= KDE/${PORTNAME}/${PORTVERSION}
|
2017-10-29 10:20:57 +01:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}.tar.gz ${DISTFILE_gmic} ${DISTFILE_cimg}
|
|
|
|
|
|
|
|
MAINTAINER= kde@FreeBSD.org
|
|
|
|
COMMENT= Versatile Qt front-end to GMIC
|
|
|
|
|
2018-09-04 22:10:21 +02:00
|
|
|
LICENSE= GPLv3+
|
2017-10-29 10:20:57 +01:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
|
|
|
LIB_DEPENDS= libcurl.so:ftp/curl \
|
|
|
|
libfftw3.so:math/fftw3 \
|
|
|
|
libpng.so:graphics/png
|
|
|
|
|
2020-09-05 21:33:16 +02:00
|
|
|
FLAVORS= none krita gimp # reflect the value of GMIC_QT_HOST for simplicity
|
|
|
|
FLAVOR?= ${FLAVORS:[1]}
|
|
|
|
krita_PKGNAMESUFFIX= -krita
|
|
|
|
gimp_PKGNAMESUFFIX= -gimp
|
|
|
|
|
2019-11-05 23:16:14 +01:00
|
|
|
USES= cmake compiler:c++14-lang pkgconfig qt:5 xorg
|
2018-06-28 19:39:53 +02:00
|
|
|
USE_QT= core gui network widgets \
|
2017-10-29 10:20:57 +01:00
|
|
|
buildtools_build linguisttools_build qmake_build
|
|
|
|
USE_XORG= ice sm x11 xext
|
|
|
|
|
2018-09-04 22:10:21 +02:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= c-koi
|
|
|
|
GH_TUPLE= dtschump:gmic:${DISTVERSIONFULL}:gmic/gmic \
|
|
|
|
dtschump:CImg:${DISTVERSIONFULL}:cimg
|
|
|
|
|
2017-10-29 10:20:57 +01:00
|
|
|
# Use the extracted cimg/gmic & Co, as we do not want to depend on graphics/gimp
|
|
|
|
# which would get pulled in by graphics/cimg.
|
2020-09-05 21:33:16 +02:00
|
|
|
CMAKE_ARGS= -DGMIC_QT_HOST:STRING="${FLAVOR}" \
|
2017-10-29 10:20:57 +01:00
|
|
|
-DGMIC_PATH:STRING="${WRKSRC_gmic}/src"
|
|
|
|
|
2020-09-05 21:33:16 +02:00
|
|
|
PLIST_FILES= bin/gmic_${FLAVOR:S/$/_/:S/none_//}qt
|
|
|
|
|
2018-09-04 22:10:21 +02:00
|
|
|
PORTSCOUT= limit:[0-9]\..*
|
2017-10-29 10:20:57 +01:00
|
|
|
|
2020-09-05 21:33:16 +02:00
|
|
|
.if ${FLAVOR} == gimp
|
|
|
|
LIB_DEPENDS+= libbabl-0.1.so:x11/babl \
|
|
|
|
libgegl-0.4.so:graphics/gegl \
|
|
|
|
libgimp-2.0.so:graphics/gimp-app \
|
|
|
|
libjson-glib-1.0.so:devel/json-glib
|
|
|
|
USES+= gettext-runtime gnome
|
|
|
|
USE_GNOME= cairo gdkpixbuf2 glib20
|
|
|
|
.endif
|
|
|
|
|
2017-10-29 10:20:57 +01:00
|
|
|
pre-configure:
|
|
|
|
# Copy the necessary files
|
2018-09-04 22:10:21 +02:00
|
|
|
${CP} ${WRKSRC_cimg}/CImg.h ${WRKSRC_gmic}/src
|
Fix fetch of graphics/gmic-qt distfile "gmic_stdlib.h"
gmic has had a versioned "stdlib" data file since 2018, as
described in https://github.com/dtschump/gmic/issues/61 ,
but the port always referred to an unversioned source;
this leads to fetch failures when the unversioned header
is updated on the development server (upstream). The
copy tcberner@ hangs on to is also whatever-happened-to-be-
unversioned at the time the port updates.
So r547673 updated the checksum, but to whatever-was-dev
at the time, and without updating tcberner@'s distcache.
This has meant fetch-failures since then, since the
dev header has updated again.
The *previous* version of the checksum, and the copy
tcberner@ has, is actually for gmic 2.4.0.
So hit the whole dang thing with a hammer again, fetch
the **versioned** header, copy it into its unversioned
destination, and reset the checksum. Bump PORTREVISION
because the package -- the bundled standard library --
has changed.
Reported by: fallout
2020-09-14 12:44:49 +02:00
|
|
|
${CP} ${DISTDIR}/${DIST_SUBDIR}/gmic_stdlib${DISTVERSION:S/.//g}.h ${WRKSRC_gmic}/src/gmic_stdlib.h
|
2017-10-29 10:20:57 +01:00
|
|
|
|
|
|
|
do-install:
|
2020-09-05 21:33:16 +02:00
|
|
|
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/gmic_${FLAVOR:S/$/_/:S/none_//}qt ${STAGEDIR}${PREFIX}/bin
|
2017-10-29 10:20:57 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|