summaryrefslogtreecommitdiff
path: root/graphics/luminance/Makefile
blob: e07cc0b664e958112ac5aa449bf29c0c78eb952d (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
50
51
52
53
54
55
56
57
58
59
# New ports collection makefile for:	qtpfsgui
# Date created:		28 Jul 2007
# Whom:                	Yinghong.Liu <relaxbsd@gmail.com>
#
# $FreeBSD$
#

PORTNAME=	qtpfsgui
PORTVERSION=	1.9.1
PORTREVISION=	1
CATEGORIES=	graphics
MASTER_SITES=	SF

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A graphical user interface that provides a workflow for HDR imaging

LIB_DEPENDS=	exiv2.3:${PORTSDIR}/graphics/exiv2 \
		fftw3f.4:${PORTSDIR}/math/fftw3-float \
		IlmImf.6:${PORTSDIR}/graphics/OpenEXR \
		tiff.4:${PORTSDIR}/graphics/tiff \
		jpeg.9:${PORTSDIR}/graphics/jpeg
BUILD_DEPENDS=	qmake-qt4:${PORTSDIR}/devel/qmake4 \
		uic-qt4:${PORTSDIR}/devel/qt4-uic \
		rcc:${PORTSDIR}/devel/qt4-rcc \
		moc-qt4:${PORTSDIR}/devel/qt4-moc \
		lrelease-qt4:${PORTSDIR}/devel/qt4-linguist \
		${LOCALBASE}/include/fftw3.h:${PORTSDIR}/math/fftw3

USE_QT_VER=	4
QT_COMPONENTS=	corelib gui imageformats

LRELEASE=	${QT_PREFIX}/bin/lrelease-qt4

INSTALL_TARGET=	install_target install_menu install_icon
.if !defined(WITHOUT_NLS)
PLIST_SUB+=	NLS=""
INSTALL_TARGET+=install_i18n
.else
PLIST_SUB+=	NLS="@comment "
.endif
.if !defined(NOPORTDOCS)
INSTALL_TARGET+=install_docs install_htmls
.endif

post-patch:
	${REINPLACE_CMD} -e 's|PREFIX = /usr/local|PREFIX = ${PREFIX}|g' \
	    ${WRKSRC}/project.pro

pre-build:
	@${LRELEASE} ${BUILD_WRKSRC}/project.pro
	@cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${QMAKE} -spec ${QMAKESPEC}

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 600000
BROKEN=		Does not compile (compiler segfault)
.endif

.include <bsd.port.post.mk>