blob: c107dd8da7bd979629e013822227ecc0e5452a7e (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# New ports collection makefile for: qtpfsgui
# Date created: 28 Jul 2007
# Whom: Yinghong.Liu <relaxbsd@gmail.com>
#
# $FreeBSD$
#
PORTNAME= qtpfsgui
PORTVERSION= 1.9.3
PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= A graphical user interface that provides a workflow for HDR imaging
BUILD_DEPENDS= ${LOCALBASE}/include/fftw3.h:${PORTSDIR}/math/fftw3
LIB_DEPENDS= exiv2.7:${PORTSDIR}/graphics/exiv2 \
jpeg.10:${PORTSDIR}/graphics/jpeg \
IlmImf.6:${PORTSDIR}/graphics/OpenEXR \
tiff.4:${PORTSDIR}/graphics/tiff \
fftw3f.5:${PORTSDIR}/math/fftw3-float
USE_QT_VER= 4
QT_COMPONENTS= corelib gui imageformats \
linguist_build moc_build qmake_build rcc_build uic_build
MAKE_ENV+= LOCALSOFT=${LOCALBASE}
MAKE_JOBS_SAFE= yes
INSTALL_TARGET= install_target install_menu install_icon install_i18n
INSTALLS_ICONS= yes
LRELEASE= ${QT_PREFIX}/bin/lrelease-qt4
.if !defined(NOPORTOOCS)
INSTALL_TARGET+=install_htmls
.endif
post-patch:
@${REINPLACE_CMD} -e '/^QMAKE_CXXFLAGS/d ; \
s|PREFIX =.*$$|PREFIX = ${PREFIX}|g' ${WRKSRC}/project.pro
.for file in src/MainWindow/mainWindow.cpp \
src/Preferences/preferencesDialog.cpp \
src/TransplantExif/transplant.cpp
@${REINPLACE_CMD} -e 's|/usr/share/qtpfsgui|${DOCSDIR}|g ; \
s|/usr/local/share/qtpfsgui|${DATADIR}|g' ${WRKSRC}/${file}
.endfor
do-configure:
@${LRELEASE} ${WRKSRC}/project.pro
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} -spec ${QMAKESPEC}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/qtpfsgui ${PREFIX}/bin
@${MKDIR} ${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/qtpfsgui.desktop ${PREFIX}/share/applications
@${MKDIR} ${PREFIX}/share/icons/hicolor/32x32/apps
${INSTALL_DATA} ${WRKSRC}/images/qtpfsgui.png \
${PREFIX}/share/icons/hicolor/32x32/apps
@${LN} -sf ${PREFIX}/share/icons/hicolor/32x32/apps/qtpfsgui.png \
${PREFIX}/share/pixmaps/qtpfsgui.png
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/LICENSE ${DATADIR}
@${MKDIR} ${DATADIR}/i18n
${INSTALL_DATA} ${WRKSRC}/i18n/*.qm ${DATADIR}/i18n
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for doc_file in AUTHORS Changelog README TODO
${INSTALL_DATA} ${WRKSRC}/${doc_file} ${DOCSDIR}
.endfor
@(cd ${WRKSRC}; ${COPYTREE_SHARE} html ${DOCSDIR})
.endif
.include <bsd.port.mk>
|