1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00
freebsd-ports/graphics/gmic-qt/Makefile
Tobias C. Berner b1a1d38bf9 Replace bsd.qt.mk by Uses/qt.mk and Uses/qt-dist.mk
From now on, ports that depend on Qt4 will have to set
	USES=		qt:4
	USE_QT=		foo bar
ports depending on Qt5 will use
	USES=		qt:5
	USE_QT=		foo bar

PR:		229225
Exp-run by:	antoine
Reviewed by:	mat
Approved by:	portmgr (antoine)
Differential Revision:	→https://reviews.freebsd.org/D15540
2018-06-28 17:39:53 +00:00

49 lines
1.4 KiB
Makefile

# $FreeBSD$
PORTNAME= gmic-qt
DISTVERSIONPREFIX= v.
DISTVERSION= 215
CATEGORIES= graphics kde
MASTER_SITES= http://gmic.eu/:stdlib \
LOCAL/tcberner/${PORTNAME}/${PORTVERSION}:stdlib
DISTFILES= gmic_stdlib.h:stdlib
DIST_SUBDIR= KDE/${PORTNAME}/${PORTVERSION}
EXTRACT_ONLY= ${DISTNAME}.tar.gz ${DISTFILE_gmic} ${DISTFILE_cimg}
MAINTAINER= kde@FreeBSD.org
COMMENT= Versatile Qt front-end to GMIC
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libcurl.so:ftp/curl \
libfftw3.so:math/fftw3 \
libpng.so:graphics/png
USES= cmake:outsource compiler:c++14-lang pkgconfig qt:5
USE_QT= core gui network widgets \
buildtools_build linguisttools_build qmake_build
USE_XORG= ice sm x11 xext
# Use the extracted cimg/gmic & Co, as we do not want to depend on graphics/gimp
# which would get pulled in by graphics/cimg.
CMAKE_ARGS= -DGMIC_QT_HOST:STRING="krita" \
-DGMIC_PATH:STRING="${WRKSRC_gmic}/src"
USE_GITHUB= yes
GH_ACCOUNT= c-koi
GH_TUPLE= dtschump:gmic:${DISTVERSIONFULL}:gmic \
dtschump:cimg:${DISTVERSIONFULL}:cimg
pre-configure:
# Copy the necessary files
${CP} ${WRKDIR}/CImg-${DISTVERSIONFULL}/CImg.h ${WRKSRC_gmic}/src
${CP} ${DISTDIR}/${DIST_SUBDIR}/gmic_stdlib.h ${WRKSRC_gmic}/src
do-install:
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/gmic_krita_qt ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DATADIR}/translations
${INSTALL_DATA} ${BUILD_WRKSRC}/*.qm ${STAGEDIR}${DATADIR}/translations/
.include <bsd.port.mk>