c5506c30ca
The resulting binaries are the same, so no PORTREVISION bump.
63 lines
1.8 KiB
Makefile
63 lines
1.8 KiB
Makefile
# New ports collection makefile for: qtpfsgui
|
|
# Date created: 28 Jul 2007
|
|
# Whom: Yinghong.Liu <relaxbsd@gmail.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= qtpfsgui
|
|
PORTVERSION= 1.9.2
|
|
PORTREVISION= 1
|
|
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:${PORTSDIR}/graphics/exiv2 \
|
|
jpeg:${PORTSDIR}/graphics/jpeg \
|
|
IlmImf:${PORTSDIR}/graphics/OpenEXR \
|
|
tiff:${PORTSDIR}/graphics/tiff \
|
|
fftw3f:${PORTSDIR}/math/fftw3-float
|
|
|
|
USE_QT_VER= 4
|
|
QT_COMPONENTS= corelib gui imageformats \
|
|
linguist_build moc_build qmake_build rcc_build uic_build
|
|
ALL_TARGET= -j`${SYSCTL} -n hw.ncpu`
|
|
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/local/share/qtpfsgui/|${DOCSDIR}/|g' \
|
|
${WRKSRC}/${file}
|
|
.endfor
|
|
|
|
do-configure:
|
|
@${LRELEASE} ${WRKSRC}/project.pro
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} -spec ${QMAKESPEC}
|
|
|
|
post-install:
|
|
@${STRIP_CMD} ${PREFIX}/bin/qtpfsgui
|
|
${INSTALL} -d ${PREFIX}/share/icons/hicolor/48x48/apps
|
|
@${LN} -sf ${PREFIX}/share/pixmaps/qtpfsgui.png \
|
|
${PREFIX}/share/icons/hicolor/48x48/apps/qtpfsgui.png
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for doc_file in AUTHORS Changelog README TODO
|
|
${INSTALL_DATA} ${WRKSRC}/${doc_file} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|