diff --git a/graphics/phototonic/Makefile b/graphics/phototonic/Makefile index c6b50a3d3510..c6d1928e6a80 100644 --- a/graphics/phototonic/Makefile +++ b/graphics/phototonic/Makefile @@ -1,26 +1,26 @@ PORTNAME= phototonic DISTVERSIONPREFIX= v -DISTVERSION= 2.1 -PORTREVISION= 1 +DISTVERSION= 2.1-132 +DISTVERSIONSUFFIX= -gfce9bfb CATEGORIES= graphics -MAINTAINER= ports@FreeBSD.org +MAINTAINER= eduardo@FreeBSD.org COMMENT= Image viewer and organizer WWW= http://oferkv.github.io/phototonic/ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libexiv2.so:graphics/exiv2 USES= compiler:c++11-lang desktop-file-utils gettext gl qmake qt:5 USE_GITHUB= yes GH_ACCOUNT= oferkv USE_GL= gl USE_QT= core gui imageformats svg widgets buildtools:build post-patch: ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \ ${WRKSRC}/phototonic.pro .include diff --git a/graphics/phototonic/distinfo b/graphics/phototonic/distinfo index e9e97b55a59f..04c59a7cbdb8 100644 --- a/graphics/phototonic/distinfo +++ b/graphics/phototonic/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1610902156 -SHA256 (oferkv-phototonic-v2.1_GH0.tar.gz) = a8b2dbc81750efabb65a4732b1704641afd4a4f772ef9c90817871ca2a52f5ef -SIZE (oferkv-phototonic-v2.1_GH0.tar.gz) = 488640 +TIMESTAMP = 1684045806 +SHA256 (oferkv-phototonic-v2.1-132-gfce9bfb_GH0.tar.gz) = d8e17a3da42006cc9e55ea330f214ef271b3d0f8ffc250e2bb9cc975984c219f +SIZE (oferkv-phototonic-v2.1-132-gfce9bfb_GH0.tar.gz) = 562945 diff --git a/graphics/phototonic/files/patch-phototonic.pro b/graphics/phototonic/files/patch-phototonic.pro index cab972558eb4..e22cdd510f88 100644 --- a/graphics/phototonic/files/patch-phototonic.pro +++ b/graphics/phototonic/files/patch-phototonic.pro @@ -1,27 +1,49 @@ ---- phototonic.pro.orig 2015-11-08 18:03:52 UTC +--- phototonic.pro.orig 2023-05-14 06:33:51 UTC +++ phototonic.pro -@@ -17,19 +17,19 @@ SOURCES += dialogs.cpp main.cpp mainwind - mdcache.cpp +@@ -19,7 +19,7 @@ + TEMPLATE = app + TARGET = phototonic + INCLUDEPATH += . +-INCLUDEPATH += /usr/local/include ++INCLUDEPATH += %%PREFIX%%/include + win32-g++ { + MINGWEXIVPATH = $$PWD/mingw + +@@ -30,7 +30,7 @@ DEPENDPATH += $$MINGWEXIVPATH/include + + PRE_TARGETDEPS += $$MINGWEXIVPATH/lib/libexiv2.a $$MINGWEXIVPATH/lib/libexpat.a $$MINGWEXIVPATH/lib/libz.a + } +-else: LIBS += -L/usr/local/lib -lexiv2 ++else: LIBS += -L%%PREFIX%%/lib -lexiv2 + QT += widgets + QMAKE_CXXFLAGS += $$(CXXFLAGS) + QMAKE_CFLAGS += $$(CFLAGS) +@@ -57,22 +57,22 @@ FORMS += RangeInputDialog.ui + RESOURCES += phototonic.qrc -target.path = /usr/bin/ +target.path = %%PREFIX%%/bin/ icon.files = images/phototonic.png -icon.path = /usr/share/icons/hicolor/48x48/apps +icon.path = %%PREFIX%%/share/icons/hicolor/48x48/apps icon16.files = images/icon16/phototonic.png -icon16.path = /usr/share/icons/hicolor/16x16/apps +icon16.path = %%PREFIX%%/share/icons/hicolor/16x16/apps iconPixmaps.files = images/icon16/phototonic.png -iconPixmaps.path = /usr/share/pixmaps +iconPixmaps.path = %%PREFIX%%/share/pixmaps desktop.files = phototonic.desktop -desktop.path = /usr/share/applications +desktop.path = %%PREFIX%%/share/applications - INSTALLS += target icon icon16 iconPixmaps desktop + metainfo.files = phototonic.appdata.xml +-metainfo.path = /usr/share/metainfo ++metainfo.path = %%PREFIX%%/share/metainfo + + INSTALLS += target icon icon16 iconPixmaps desktop metainfo diff --git a/graphics/phototonic/pkg-plist b/graphics/phototonic/pkg-plist index 644036f1d8e3..88343877d869 100644 --- a/graphics/phototonic/pkg-plist +++ b/graphics/phototonic/pkg-plist @@ -1,5 +1,6 @@ bin/phototonic share/applications/phototonic.desktop share/icons/hicolor/16x16/apps/phototonic.png share/icons/hicolor/48x48/apps/phototonic.png +share/metainfo/phototonic.appdata.xml share/pixmaps/phototonic.png