diff --git a/games/chessx/Makefile b/games/chessx/Makefile index 20ba8381a736..e33a2b1be01d 100644 --- a/games/chessx/Makefile +++ b/games/chessx/Makefile @@ -1,42 +1,40 @@ PORTNAME= chessx DISTVERSION= 1.6.8 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${DISTVERSION} MAINTAINER= alexey@pentode.fi COMMENT= Qt 5 chess database application WWW= https://chessx.sourceforge.io/ LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING.md USES= compiler:c++11-lang desktop-file-utils gl gmake qmake qt:5 tar:tgz USE_GL= gl USE_QT= concurrent core gui multimedia network opengl printsupport svg \ widgets xml buildtools:build linguisttools:build speech PLIST_FILES= bin/chessx \ share/applications/chessx.desktop \ share/pixmaps/chessx.png \ share/metainfo/io.sourceforge.ChessX.metainfo.xml \ share/icons/hicolor/128x128/apps/chessx.png \ share/icons/hicolor/32x32/apps/chessx-32.png \ share/icons/hicolor/64x64/apps/chessx-64.png OPTIONS_DEFINE= CRAFTY STOCKFISH CRAFTY_DESC= Install Crafty Chess Application STOCKFISH_DESC= Install Stockfish Chess Engine CRAFTY_RUN_DEPENDS= crafty:games/crafty STOCKFISH_RUN_DEPENDS= stockfish:games/stockfish -.include - post-extract: @${MV} ${WRKDIR}/chessx-master ${WRKSRC} post-configure: ( cd ${BUILD_WRKSRC} && ${LRELEASE} ${WRKSRC}/${PORTNAME}.pro ) -.include +.include diff --git a/games/chessx/files/patch-chessx.pro b/games/chessx/files/patch-chessx.pro index 6bcc49857985..775d4949fa32 100644 --- a/games/chessx/files/patch-chessx.pro +++ b/games/chessx/files/patch-chessx.pro @@ -1,55 +1,47 @@ --- chessx.pro.orig 2026-01-29 10:50:39 UTC +++ chessx.pro @@ -55,18 +55,26 @@ unix|!macx { BINDIR = $$PREFIX/bin DATADIR = $$PREFIX/share - INSTALLS += appdata desktop icons binfiles + INSTALLS += appdata desktop icons32 icons64 icons128 pixmaps binfiles appdata.files = unix/io.sourceforge.ChessX.metainfo.xml appdata.path = $$DATADIR/metainfo + desktop.files = unix/chessx.desktop desktop.path = $$DATADIR/applications - icons.path = $$DATADIR/icons/hicolor - icons.commands = install -Dm644 data/images/chessx.png $${icons.path}/128x128/apps/chessx.png; \ - install -Dm644 data/images/chessx-32.png $${icons.path}/32x32/apps/chessx.png; \ - install -Dm644 data/images/chessx-64.png $${icons.path}/64x64/apps/chessx.png; + icons32.files = data/images/chessx-32.png + icons32.path = $$DATADIR/icons/hicolor/32x32/apps + icons64.path = $$DATADIR/icons/hicolor/64x64/apps + icons64.files = data/images/chessx-64.png + + icons128.path = $$DATADIR/icons/hicolor/128x128/apps + icons128.files = data/images/chessx.png + + pixmaps.path = $$PREFIX/share/pixmaps + pixmaps.files = data/images/chessx.png + binfiles.files = release/chessx binfiles.path = $$BINDIR -@@ -531,6 +539,7 @@ win32 { - win32-g++:LIBS += -lz - } - -+ - UI_DIR = src/generated - MOC_DIR = src/generated - RCC_DIR = src/generated -@@ -609,10 +618,10 @@ PRE_TARGETDEPS += compiler_TSQM_make_all +@@ -609,10 +617,10 @@ PRE_TARGETDEPS += compiler_TSQM_make_all PRE_TARGETDEPS += compiler_TSQM_make_all # Automatically run lupdate when building -updateqm.commands = lupdate $$PWD/$$TARGET.pro && lrelease $$PWD/i18n/*.ts +updateqm.commands = lupdate-qt5 $$PWD/$$TARGET.pro && lrelease $$PWD/i18n/*.ts QMAKE_EXTRA_TARGETS += updateqm -update_translations.commands = lupdate $$PWD -ts $$TRANSLATIONS +update_translations.commands = lupdate-qt5 $$PWD -ts $$TRANSLATIONS QMAKE_EXTRA_TARGETS += update_translations PRE_TARGETDEPS += update_translations # Optional: Run before build