Hi,

my port for Qtpfsgui[1] is done, a Qt tool for creating and tonemapping
HDR images. As this is my first try in porting, it would be great if
someone could have a look at the Makefile (attached) before I submit the
PR. The complete port is available at [2]. 

Actually I got two issues:

-the program binds against the math/fftw3-float library but, as it seems,
 requires the header files from math/fftw3. So I included fftw3-float in
 LIB_DEPENDS and fftw3 in BUILD_DEPENDS.

-before running qmake, a call to Qts lrelease tool is required. However
 in contrast to qmake, lrelease is not convered by the preset variables.

Thank you.

[1] <http://qtpfsgui.sourceforge.net/>
[2] <http://teralink.net/stuff/qtpfsgui-1.8.9-port.tar.gz>

Regards,
-- 
Steffen Beyer <[EMAIL PROTECTED]>

GnuPG key fingerprint: CA00 1611 242B 89D4 E643  E235 05F3 7689 DD3E EB26
Public key available upon request or at http://wwwkeys.de.pgp.net
# New ports collection makefile for:    qtpfsgui
# Date created:                         19 June 2007
# Whom:                                 Steffen Beyer <[EMAIL PROTECTED]>
#
# $FreeBSD$
#

PORTNAME=       qtpfsgui
PORTVERSION=    1.8.9
CATEGORIES=     graphics
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=     ${PORTNAME}
EXTRACT_SUFX=   .tgz

MAINTAINER=     [EMAIL PROTECTED]
COMMENT=        A Qt4 GUI providing a workflow for HDR imaging

BUILD_DEPENDS=  ${LOCALBASE}/include/fftw3.h:${PORTSDIR}/math/fftw3
LIB_DEPENDS=    IlmImf.4:${PORTSDIR}/graphics/OpenEXR \
                exiv2.0:${PORTSDIR}/graphics/exiv2 \
                fftw3f.4:${PORTSDIR}/math/fftw3-float \
                jpeg.9:${PORTSDIR}/graphics/jpeg \
                tiff.4:${PORTSDIR}/graphics/tiff

# distribution brings its own desktop file
# DESKTOP_ENTRIES=      "Qtpfsgui" "Create and tonemap HDR images" \
#       "${PREFIX}/share/icons/hicolor/48x48/apps/qtpfsgui.png" \
#       "qtpfsgui" "Graphics;RasterGraphics;Photography;Viewer;Qt" \
#       true

INSTALLS_ICONS= yes

USE_GMAKE=      yes
USE_QT_VER=     4
QT_COMPONENTS=  gui moc qmake rcc uic

HAS_CONFIGURE=  yes

pre-configure:
        @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
                lrelease-qt4 project.pro

do-configure:
        @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
                ${QMAKE} -unix PREFIX=${PREFIX} project.pro

post-install:
        ${STRIP_CMD} ${PREFIX}/bin/qtpfsgui
.if !defined(NOPORTDOCS)
        ${MKDIR} ${DOCSDIR}
        ${INSTALL_MAN} ${WRKSRC}/AUTHORS ${DOCSDIR}
        ${INSTALL_MAN} ${WRKSRC}/Changelog ${DOCSDIR}
        ${INSTALL_MAN} ${WRKSRC}/NEWS ${DOCSDIR}
        ${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}
        ${INSTALL_MAN} ${WRKSRC}/TODO ${DOCSDIR}
        ${LN} -sf ${PREFIX}/share/qtpfsgui/html ${DOCSDIR}/html
.endif

.include <bsd.port.mk>
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to