Index: head/graphics/qiviewer/Makefile =================================================================== --- head/graphics/qiviewer/Makefile (revision 420649) +++ head/graphics/qiviewer/Makefile (revision 420650) @@ -1,36 +1,36 @@ # Created by: Veniamin Gvozdikov # $FreeBSD$ PORTNAME= qiviewer PORTVERSION= 0.5.0 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= graphics MASTER_SITES= GOOGLE_CODE MAINTAINER= vg@FreeBSD.org COMMENT= Fast and lightweight image viewer LICENSE= GPLv2 LICENSE_FILE= ${WRKDIR}/${PORTNAME}/COPYING USES= desktop-file-utils qmake tar:bzip2 USE_QT4= corelib gui imageformats_run linguisttools_build \ moc_build rcc_build uic_build PLIST_FILES= bin/qiviewer \ share/applications/qiviewer.desktop \ share/qiviewer/locale/el.qm \ share/qiviewer/locale/es_AR.qm \ share/qiviewer/locale/es_ES.qm WRKSRC= ${WRKDIR}/${PORTNAME}/src OPTIONS_DEFINE= WEBP WEBP_DESC= Support for WebP image format (experimental) WEBP_QMAKE_ON= CONFIG+=enable-webp post-configure: @${REINPLACE_CMD} -e 's|lrelease|lrelease-qt4|g' \ ${WRKSRC}/Makefile .include Index: head/graphics/qiviewer/files/patch-main.cpp =================================================================== --- head/graphics/qiviewer/files/patch-main.cpp (nonexistent) +++ head/graphics/qiviewer/files/patch-main.cpp (revision 420650) @@ -0,0 +1,13 @@ +--- main.cpp.orig 2011-05-19 03:38:25 UTC ++++ main.cpp +@@ -115,6 +115,10 @@ int main(int argc, char *argv[]) + + else if (next_option == -1) + { ++ // Strip file://, added by some file browsers ++ if ( memcmp(argv[1], "file://", 7) == 0 ) ++ memmove(argv[1], argv[1]+7, strlen(argv[1]) - 6); ++ puts(argv[1]); + MainWindow imageViewer; + if (QApplication::arguments().size() > 1) + imageViewer.openImageFromCommandLine(QApplication::arguments()); Property changes on: head/graphics/qiviewer/files/patch-main.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property