aboutsummaryrefslogtreecommitdiff
path: root/graphics/filmulator/Makefile
blob: a5a6ff9753ecdda35f146e55f167795d3d51ce9d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
PORTNAME=	filmulator
PORTVERSION=	0.11.1
PORTREVISION=	3
DISTVERSIONPREFIX=	v
CATEGORIES=	graphics

MAINTAINER=	danfe@FreeBSD.org
COMMENT=	Simplified raw editor with the power of film
WWW=		https://filmulator.org/

LICENSE=	GPLv3+

LIB_DEPENDS=	libcurl.so:ftp/curl \
		libexiv2.so:graphics/exiv2 \
		liblensfun.so:graphics/lensfun \
		libraw_r.so:graphics/libraw \
		librtprocess.so:graphics/librtprocess \
		libtiff.so:graphics/tiff

USES=		cmake jpeg libarchive pkgconfig qt:5
.if !exists(/usr/include/omp.h)
USES+=		compiler:gcc-c++11-lib
.endif
USE_GITHUB=	yes
USE_QT=		buildtools:build qmake:build core declarative gui \
		network sql widgets

GH_ACCOUNT=	CarVac
GH_PROJECT=	${PORTNAME}-gui

WRKSRC_SUBDIR=	${GH_PROJECT}

post-patch:
	@${REINPLACE_CMD} -e '/target_compile_definitions.*LF_GIT/d' \
		${WRKSRC}/CMakeLists.txt
# Prerendered PNG icon is 64x58 which Qt does not want to load, so use
# original SVG instead which is square.  Qt's icon engine supports SVG
# since Qt 4.2.
	@${REINPLACE_CMD} -e '/filmulator64icon/s,png,svg,' \
		${WRKSRC}/main.cpp ${WRKSRC}/resources/pixmaps.qrc

post-install:
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/64x64/apps
	${INSTALL_DATA} ${WRKSRC}/filmulator-gui64.png \
		${STAGEDIR}${PREFIX}/share/icons/hicolor/64x64/apps/filmulator-gui.png
	${INSTALL_DATA} ${WRKSRC}/filmulator-gui.desktop.in \
		${STAGEDIR}${PREFIX}/share/applications/filmulator-gui.desktop

.include <bsd.port.mk>