diff --git a/textproc/goldendict/Makefile b/textproc/goldendict/Makefile index ec34b37e078e..8f3b80f6e641 100644 --- a/textproc/goldendict/Makefile +++ b/textproc/goldendict/Makefile @@ -1,66 +1,70 @@ PORTNAME= goldendict PORTVERSION= 1.5.0 PORTREVISION= 3 CATEGORIES= textproc +PATCH_SITES= https://github.com/goldendict/goldendict/commit/ +PATCHFILES= 718462c5c1e2b6f3064f921c0800e45b8d5b84b8.patch:-p1 \ + b4f3fcdc4861975ec49ae2bb894f907c072fc8f6.patch:-p1 + MAINTAINER= danfe@FreeBSD.org COMMENT= Feature-rich dictionary lookup program WWW= http://goldendict.org/ LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/LICENSE.txt LIB_DEPENDS= libhunspell-1.7.so:textproc/hunspell \ liblzo2.so:archivers/lzo2 \ libogg.so:audio/libogg \ libtiff.so:graphics/tiff \ libvorbis.so:audio/libvorbis \ libzstd.so:archivers/zstd USES= compiler:c++11-lang gnome iconv:wchar_t pkgconfig \ qmake qt:5 xorg USE_GITHUB= yes GH_ACCOUNT= vedgy GH_TAGNAME= 5a87a71 USE_XORG= x11 xtst USE_QT= buildtools:build linguisttools:build \ core declarative gui help network printsupport \ sql svg webchannel webengine widgets x11extras xml QMAKE_ARGS= ${PORTNAME}.pro CONFIG+="use_qtwebengine zim_support" OPTIONS_DEFINE= EPWING FFMPEG MULTIMEDIA OPENCC OPTIONS_DEFAULT= EPWING FFMPEG MULTIMEDIA OPENCC EPWING_DESC= Japanese EPWING dictionary format support EPWING_LIB_DEPENDS= libeb.so:japanese/eb EPWING_QMAKE_OFF= CONFIG+="no_epwing_support" FFMPEG_LIB_DEPENDS= libao.so:audio/libao \ libavutil.so:multimedia/ffmpeg FFMPEG_QMAKE_OFF= CONFIG+="no_ffmpeg_player" MULTIMEDIA_DESC= Multimedia support with QMediaPlayer MULTIMEDIA_USE= QT=multimedia MULTIMEDIA_QMAKE_OFF= CONFIG+="no_qtmultimedia_player" OPENCC_DESC= Chinese conversion support via OpenCC OPENCC_LIB_DEPENDS= libopencc.so:chinese/opencc OPENCC_QMAKE_ON= CONFIG+="chinese_conversion_support" post-patch: @${REINPLACE_CMD} -e '/QMAKE_CXXFLAGS += -rdynamic/d ; \ /^VERSION = /s,git,&-${GH_ACCOUNT}-${GH_TAGNAME},' \ ${WRKSRC}/goldendict.pro @${REINPLACE_CMD} -e '/^#include / { x; \ s/^/#include /; G; }' ${WRKSRC}/main.cc post-install: @${MKDIR} ${STAGEDIR}${DATADIR}/locale ${INSTALL_DATA} ${WRKSRC}/locale/*.qm ${STAGEDIR}${DATADIR}/locale ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} post-stage: ${RM} ${STAGEDIR}${PREFIX}/share/applications/ecp.* .include diff --git a/textproc/goldendict/distinfo b/textproc/goldendict/distinfo index 133e0c81bb10..59d59a972fac 100644 --- a/textproc/goldendict/distinfo +++ b/textproc/goldendict/distinfo @@ -1,3 +1,7 @@ TIMESTAMP = 1695552365 SHA256 (vedgy-goldendict-1.5.0-5a87a71_GH0.tar.gz) = 27097ae4122f2184a7638c6e6ae7bf10623eb2510660db1d8db19054e92131d7 SIZE (vedgy-goldendict-1.5.0-5a87a71_GH0.tar.gz) = 20400277 +SHA256 (718462c5c1e2b6f3064f921c0800e45b8d5b84b8.patch) = 238b6100cb1817989bb6ee4a7535ca3f663b6bc1d5daa3ff489f279ae99a713f +SIZE (718462c5c1e2b6f3064f921c0800e45b8d5b84b8.patch) = 4265 +SHA256 (b4f3fcdc4861975ec49ae2bb894f907c072fc8f6.patch) = 5f5c40639a97691ae8e3f848dc59b7c64c865ca910a30e4d3a2b398f637d1379 +SIZE (b4f3fcdc4861975ec49ae2bb894f907c072fc8f6.patch) = 781