diff --git a/archivers/zim-tools/Makefile b/archivers/zim-tools/Makefile index a606911ffadc..cf7307598bbb 100644 --- a/archivers/zim-tools/Makefile +++ b/archivers/zim-tools/Makefile @@ -1,28 +1,28 @@ PORTNAME= zim-tools DISTVERSION= 3.5.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= archivers MASTER_SITES= https://download.openzim.org/release/zim-tools/ MAINTAINER= olce.freebsd.ports@certner.fr COMMENT= Tools for handling ZIM files WWW= https://github.com/openzim/zim-tools LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${LOCALBASE}/include/kainjow/mustache.hpp:devel/mustache \ googletest>0:devel/googletest LIB_DEPENDS= libdocopt.so:devel/docopt.cpp \ libgumbo.so:devel/gumbo \ libicui18n.so:devel/icu \ libzim.so:devel/libzim USES= compiler:c++17-lang meson pkgconfig tar:xz CPPFLAGS+= -I${LOCALBASE}/include/kainjow CXXFLAGS+= -I${LOCALBASE}/include/kainjow PLIST_SUB= DISTVERSION=${DISTVERSION} DISTMAJ=${DISTVERSION:C/\..*//} .include diff --git a/devel/p5-Alien-LibGumbo/Makefile b/devel/p5-Alien-LibGumbo/Makefile index 2d05ad847386..2053a38e5d9e 100644 --- a/devel/p5-Alien-LibGumbo/Makefile +++ b/devel/p5-Alien-LibGumbo/Makefile @@ -1,31 +1,31 @@ PORTNAME= Alien-LibGumbo PORTVERSION= 0.05 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= devel perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- MAINTAINER= mikael@FreeBSD.org COMMENT= Gumbo parser library WWW= https://metacpan.org/pod/Alien::LibGumbo LICENSE= ART10 GPLv1+ LICENSE_COMB= dual LIB_DEPENDS= libgumbo.so:devel/gumbo BUILD_DEPENDS= p5-Alien-Base-ModuleBuild>0:devel/p5-Alien-Base-ModuleBuild \ p5-File-ShareDir>0:devel/p5-File-ShareDir \ p5-Path-Class>0:devel/p5-Path-Class \ p5-PkgConfig>0:devel/p5-PkgConfig \ p5-URI>0:net/p5-URI RUN_DEPENDS= p5-Alien-Build>0:devel/p5-Alien-Build USES= perl5 USE_PERL5= modbuild EXTRACT_AFTER_ARGS= --exclude ${DISTNAME}/gumbo-0.10.1.tar.gz \ --no-same-owner --no-same-permissions NO_ARCH= yes .include diff --git a/filesystems/httpdirfs/Makefile b/filesystems/httpdirfs/Makefile index f0f6deb62dac..2bc76c10ab7f 100644 --- a/filesystems/httpdirfs/Makefile +++ b/filesystems/httpdirfs/Makefile @@ -1,31 +1,32 @@ PORTNAME= httpdirfs DISTVERSION= 1.3.3 +PORTREVISION= 1 CATEGORIES= filesystems PKGNAMEPREFIX= fusefs- MAINTAINER= alven@FreeBSD.org COMMENT= FUSE filesystem to mount HTTP directory listings, with permanent cache WWW= https://github.com/fangfufu/httpdirfs/ LICENSE= GPL3OPENSSL LICENSE_NAME= GPLv3 or later with execption to link with OpenSSL LICENSE_FILE= ${WRKSRC}/LICENSE LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept LIB_DEPENDS= libcurl.so:ftp/curl \ libexpat.so:textproc/expat2 \ libgumbo.so:devel/gumbo \ libuuid.so:misc/libuuid USES= fuse:3 meson pkgconfig ssl USE_GITHUB= yes GH_ACCOUNT= fangfufu OPTIONS_DEFINE= DOCS OPTIONS_SUB= yes post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC} && ${INSTALL_DATA} *.md ${STAGEDIR}${DOCSDIR} .include diff --git a/graphics/mupdf/Makefile b/graphics/mupdf/Makefile index 6dd6ce35696e..7df0ad3e8d98 100644 --- a/graphics/mupdf/Makefile +++ b/graphics/mupdf/Makefile @@ -1,67 +1,68 @@ PORTNAME= mupdf DISTVERSION= 1.28.2 DISTVERSIONSUFFIX= -source +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= graphics MASTER_SITES= http://www.mupdf.com/downloads/archive/ MAINTAINER= uzsolt@FreeBSD.org COMMENT= Lightweight PDF viewer and toolkit WWW= https://www.mupdf.com/ LICENSE= AGPLv3 LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= ${LOCALBASE}/bin/ar:devel/binutils LIB_DEPENDS= libbrotlidec.so:archivers/brotli \ libbrotlienc.so:archivers/brotli \ libcurl.so:ftp/curl \ libfreetype.so:print/freetype2 \ libgumbo.so:devel/gumbo \ libharfbuzz.so:print/harfbuzz \ libjbig2dec.so:graphics/jbig2dec \ libopenjp2.so:graphics/openjpeg USES= compiler:c++20-lang cpe gl gmake jpeg pkgconfig ssl xorg CPE_VENDOR= artifex USE_GL= gl glut USE_LDCONFIG= yes USE_XORG= x11 xcursor xext xinerama xrandr _VERSION_MINOR= ${DISTVERSION:E} _VERSION_MAJOR= ${DISTVERSION:R:E} MAKE_ARGS= AR=${LOCALBASE}/bin/ar \ build=release \ html=no \ mandir=${PREFIX}/share/man \ prefix=${PREFIX} \ shared=yes \ USE_SYSTEM_LIBS=yes \ verbose=yes \ XCFLAGS="${CFLAGS} -I${WRKSRC}/include/mupdf -fPIC" \ XLIB_LDFLAGS="-Wl,-soname,libmupdf.so.${_VERSION_MAJOR}" \ XLIBS="-L${LOCALBASE}/lib -L${WRKSRC}/build/release ${LDFLAGS}" ALL_TARGET= all extra-libs INSTALL_TARGET= install install-extra-apps BINARY_ALIAS= bash=/bin/sh PLIST_SUB= VERSION_MAJOR=${_VERSION_MAJOR} \ VERSION_MINOR=${_VERSION_MINOR} OPTIONS_DEFINE= DOCS JS SCROLL OPTIONS_DEFAULT= SCROLL JS_DESC= JavaScript support (V8 engine) SCROLL_DESC= Build with scroll hacks JS_LIB_DEPENDS= libv8.so:lang/v8 JS_MAKE_ARGS= V8_PRESENT=1 \ V8LIBS=-lv8 SCROLL_EXTRA_PATCHES= ${FILESDIR}/scroll_hack-platform__x11__pdfapp.c post-install: ${MV} ${STAGEDIR}${PREFIX}/bin/mupdf-x11 \ ${STAGEDIR}${PREFIX}/bin/mupdf .include diff --git a/mail/claws-mail-litehtml_viewer/Makefile b/mail/claws-mail-litehtml_viewer/Makefile index b66c1561dff7..672b475ccd28 100644 --- a/mail/claws-mail-litehtml_viewer/Makefile +++ b/mail/claws-mail-litehtml_viewer/Makefile @@ -1,22 +1,23 @@ PORTNAME= litehtml_viewer +PORTREVISION= 1 COMMENT= Viewer plugin for HTML emails, using the litehtml library WWW= https://www.claws-mail.org/plugins.php LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ libfreetype.so:print/freetype2 \ libgumbo.so:devel/gumbo \ libcurl.so:ftp/curl USE_GNOME= cairo glib20 # The configure script does not set REAL_CXX if CXX contains an absolute path. CONFIGURE_ENV= REAL_CXX="${CXX}" CLAWS_PLUGINS_BUILD= ${PORTNAME} post-configure: @${RM} ${WRKSRC}/version .include "../claws-mail/Makefile.claws" .include diff --git a/net/freeswitch/Makefile b/net/freeswitch/Makefile index b8d5b150048e..b6f910c020aa 100644 --- a/net/freeswitch/Makefile +++ b/net/freeswitch/Makefile @@ -1,208 +1,208 @@ PORTNAME= freeswitch DISTVERSION= 1.11.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net MASTER_SITES= https://files.freeswitch.org/releases/freeswitch/ \ https://files.freeswitch.org/releases/sounds/:sounds DISTFILES= ${PORTNAME}-${PORTVERSION}.-release${EXTRACT_SUFX} MAINTAINER= pi@FreeBSD.org COMMENT= Multi-protocol soft switch for telephony applications WWW= https://freeswitch.org LICENSE= MPL11 BROKEN_i386= error: expected ')' ONLY_FOR_ARCHS= aarch64 amd64 i386 powerpc64 powerpc64le BUILD_DEPENDS= gdiff:textproc/diffutils \ doxygen:devel/doxygen \ erlang>=21.3:lang/erlang LIB_DEPENDS= libsqlite3.so:databases/sqlite3 \ libcurl.so:ftp/curl \ libavformat.so:multimedia/ffmpeg6 \ libpcre2-8.so:devel/pcre2 \ libspeexdsp.so:audio/speexdsp \ libspeex.so:audio/speex \ libldns.so:dns/ldns \ libopus.so:audio/opus \ libsndfile.so:audio/libsndfile \ libfreetype.so:print/freetype2 \ libodbc.so:databases/unixODBC \ libpng.so:graphics/png \ libjbig.so:graphics/jbigkit \ libshout.so:audio/libshout \ libuuid.so:misc/libuuid \ libmariadb.so:databases/mariadb-connector-c \ libspandsp.so:comms/spandsp \ libsofia-sip-ua.so:net/sofia-sip RUN_DEPENDS= erlang>=21.3:lang/erlang USES= compiler:c11 cpe gmake iconv jpeg libedit autoreconf \ libtool lua:53 openal perl5 pkgconfig shebangfix ssl tar:xz JAVA_VERSION= 11 USE_LDCONFIG= yes USE_RC_SUBR= freeswitch SHEBANG_FILES= scripts/fsxs.in GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-pkgconfigdir=${PREFIX}/libdata/pkgconfig \ --enable-zrtp MAKE_JOBS_UNSAFE= yes CFLAGS+= -Wno-error -I${LUA_INCDIR} CONFLICTS_BUILD= xmlrpc-c BINARY_ALIAS= diff=gdiff SUB_FILES= pkg-message WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}.-release USERS= ${PORTNAME} GROUPS= ${USERS} OPTIONS_DEFINE= X11 EXAMPLES PGSQL ALL_MODULES OPTIONS_DEFAULT= 8K 16K ENGLISH PGSQL OPTIONS_MULTI= BITRATE LANGUAGE OPTIONS_MULTI_BITRATE= 8K 16K 32K 48K OPTIONS_MULTI_LANGUAGE= CHINESE_HK CHINESE_SIM BRAZILIAN ENGLISH ENGLISH_CA FRENCH_CA RUSSIAN SWEDISH NO_OPTIONS_SORT= yes OPTIONS_SUB= yes 16K_DESC= 16kHz Audio Files 32K_DESC= 32kHz Audio Files 48K_DESC= 48kHz Audio Files 8K_DESC= 8kHz Audio Files BRAZILIAN_DESC= Brazilian Portuguese Language Sounds CHINESE_HK_DESC= Chinese Traditional Language Sounds CHINESE_SIM_DESC= Chinese Simplified Language Sounds ENGLISH_CA_DESC= Canadian English Language Sounds ENGLISH_DESC= US English Language Sounds FRENCH_CA_DESC= French Canadian Language Sounds RUSSIAN_DESC= Russian Language Sounds SWEDISH_DESC= Swedish Language Sounds X11_DESC= graphics/ImageMagick[-nox11] dependency 16K_VARS= BITRATES+=16000 32K_VARS= BITRATES+=32000 48K_VARS= BITRATES+=48000 8K_VARS= BITRATES+=8000 PGSQL_USES= pgsql PGSQL_CONFIGURE_ENABLE= core-pgsql-support core-pgsql-pkgconfig PGSQL_CONFIGURE_ENV_OFF= ac_cv_lib_pq_PQgetvalue=false ALL_MODULES_BUILD_DEPENDS= ${LOCALBASE}/bin/aclocal:devel/automake \ ${LOCALBASE}/bin/erl:lang/erlang \ ${LOCALBASE}/bin/bash:shells/bash \ ${LOCALBASE}/bin/php:lang/php85 ALL_MODULES_CFLAGS= -I${LOCALBASE}/include/openh323/ \ -I${JAVA_HOME}/include/ \ -I${JAVA_HOME}/include/freebsd ALL_MODULES_CONFLICTS_BUILD= apr ALL_MODULES_EXTRA_PATCHES= ${FILESDIR}/extrapatch-modules.conf ALL_MODULES_LIB_DEPENDS= libavformat.so:multimedia/ffmpeg6 \ libbrotlidec.so:archivers/brotli \ libbrotlienc.so:archivers/brotli \ libhiredis.so:databases/hiredis \ libldap.so:net/openldap26-client \ libasound.so:audio/alsa-lib \ libcodec2.so:audio/codec2 \ libflite.so:audio/flite \ libgumbo.so:devel/gumbo \ libhiredis.so:databases/hiredis \ libilbc.so:net/ilbc \ libmemcached.so:databases/libmemcached \ libmongoc-1.0.so:devel/mongo-c-driver \ libmp3lame.so:audio/lame \ libmpg123.so:audio/mpg123 \ libopencore-amrnb.so:audio/opencore-amr \ libopencore-amrwb.so:audio/opencore-amr \ libopusenc.so:audio/libopusenc \ libopusfile.so:audio/opusfile \ libphp.so:lang/php85 \ librabbitmq.so:net/rabbitmq-c \ libshout.so:audio/libshout \ libsrtp2.so:net/libsrtp2 \ libtpl.so:devel/libtpl \ libvlc.so:multimedia/vlc \ libvpx.so:multimedia/libvpx \ libx264.so:multimedia/libx264 \ libyuv.so:graphics/libyuv ALL_MODULES_USE= XORG=x11 OPENLDAP=yes ALL_MODULES_USES= java xorg # required by mod_unimrcp # install-strip causes `make stage' to fail: # libtool: install: strip --strip-debug /wrkdirs/usr/ports/net/freeswitch/work/stage/usr/local/lib/libfreeswitch.a # strip: file format not recognized # INSTALL_TARGET= install-strip .include EDPRE= freeswitch-sounds EDPOST= 1.0.51.tar.gz #Swedish lang sounds are older/lower version. EDPOST_SV= 1.0.50.tar.gz EDPOST_MUSIC= 1.0.52.tar.gz .for rate in ${BITRATES} EXTRADISTFILES+= ${EDPRE}-music-${rate}-${EDPOST_MUSIC} .if ${PORT_OPTIONS:MBRAZILIAN} EXTRADISTFILES+= ${EDPRE}-pt-BR-karina-${rate}-${EDPOST} .endif .if ${PORT_OPTIONS:MCHINESE_SIM} EXTRADISTFILES+= ${EDPRE}-zh-cn-sinmei-${rate}-${EDPOST} .endif .if ${PORT_OPTIONS:MCHINESE_HK} EXTRADISTFILES+= ${EDPRE}-zh-hk-sinmei-${rate}-${EDPOST} .endif .if ${PORT_OPTIONS:MENGLISH} EXTRADISTFILES+= ${EDPRE}-en-us-callie-${rate}-${EDPOST_MUSIC} .endif .if ${PORT_OPTIONS:MENGLISH_CA} EXTRADISTFILES+= ${EDPRE}-en-ca-june-${rate}-${EDPOST} .endif .if ${PORT_OPTIONS:MFRENCH_CA} EXTRADISTFILES+= ${EDPRE}-fr-ca-june-${rate}-${EDPOST} .endif .if ${PORT_OPTIONS:MRUSSIAN} EXTRADISTFILES+= ${EDPRE}-ru-RU-elena-${rate}-${EDPOST} .endif .if ${PORT_OPTIONS:MSWEDISH} EXTRADISTFILES+= ${EDPRE}-sv-se-jakob-${rate}-${EDPOST_SV} .endif .endfor .for distfile in ${EXTRADISTFILES} DISTFILES+= ${distfile}:sounds .endfor # Patch out mod_signalwire & mod_verto as they require libks that isn't available, yet. post-patch: ${REINPLACE_CMD} -Ee 's|^(applications/mod_signalwire)|#\1|' \ ${WRKSRC}/modules.conf ${REINPLACE_CMD} -Ee 's|^(endpoints/mod_verto)|#\1|' \ ${WRKSRC}/modules.conf ${REINPLACE_CMD} -Ee 's|^#(formats/mod_shout)|\1|' \ ${WRKSRC}/modules.conf post-patch-PGSQL-off: ${REINPLACE_CMD} -Ee 's|^(databases/mod_pgsql)|#\1|' ${WRKSRC}/modules.conf post-install: ${MKDIR} ${STAGEDIR}${DATADIR}/sounds .for distfile in ${EXTRADISTFILES} ${TAR} --cd ${STAGEDIR}${DATADIR}/sounds -xf ${DISTDIR}/${distfile} .endfor ${FIND} ${STAGEDIR}${DATADIR}/sounds -type f | ${SED} "s,^${STAGEDIR}${DATADIR},${DATADIR}," >> ${TMPPLIST} ${RM} -r ${STAGEDIR}${ETCDIR} ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/freeswitch/mod/mod_*.so \ ${STAGEDIR}${PREFIX}/lib/libfreeswitch.so.1.0.0 (cd ${WRKSRC}/conf && \ ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) .include "${.CURDIR:H:H}/multimedia/ffmpeg6/override.mk" .include diff --git a/www/newsraft/Makefile b/www/newsraft/Makefile index 5f06d1da4ec6..3ea9729684fb 100644 --- a/www/newsraft/Makefile +++ b/www/newsraft/Makefile @@ -1,28 +1,29 @@ PORTNAME= newsraft DISTVERSION= 0.37 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= https://codeberg.org/${PORTNAME}/${PORTNAME}/archive/ MAINTAINER= uzsolt@FreeBSD.org COMMENT= Feed reader for terminal WWW= https://codeberg.org/newsraft/newsraft LICENSE= ISCL LICENSE_FILE= ${WRKSRC}/doc/license.txt LIB_DEPENDS= libcurl.so:ftp/curl \ libexpat.so:textproc/expat2 \ libgumbo.so:devel/gumbo USES= pkgconfig sqlite MAKEFILE= makefile MAKE_ARGS+= CFLAGS="${CFLAGS}" TEST_TARGET= check WRKSRC= ${WRKDIR}/${PORTNAME} post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} .include diff --git a/www/onlyoffice-documentserver/Makefile b/www/onlyoffice-documentserver/Makefile index 7a361838bc0c..c42ecff3d9b6 100644 --- a/www/onlyoffice-documentserver/Makefile +++ b/www/onlyoffice-documentserver/Makefile @@ -1,349 +1,349 @@ PORTNAME= onlyoffice-documentserver DISTVERSIONPREFIX= v DISTVERSION= 9.4.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= www MASTER_SITES+= LOCAL/mikael/v8/:source1 \ https://nodejs.org/dist/v${_PKGFETCH_NODE_VERSION}/:source2 \ https://github.com/fsbruva/onlyoffice-DS-npm-cache/releases/download/${_NPM_CACHE_TAG}/:source3 DISTFILES+= v8-8.9.255.25_all.tar.gz:source1 \ node-v${_PKGFETCH_NODE_VERSION}.tar.gz:source2 \ onlyoffice-DS-npm-cache-${_NPM_CACHE_TAG}.tar.gz:source3 MAINTAINER= fsbruva@yahoo.com COMMENT= Secure office and productivity apps WWW= https://www.onlyoffice.com/ LICENSE= AGPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE ONLY_FOR_ARCHS= aarch64 amd64 ONLY_FOR_ARCHS_REASON= Upstream only supports amd64 and arm64 # node version used with "npm install" inside ${WRKSRC}/yao-pkg # kept in sync with patch-build__tools_scripts_build__server.py and patch-document-server-package_Makefile _DS_BUILD= 129 _PKGFETCH_NODE_VERSION= 24.18.0 _NPM_CACHE_TAG= ${_DS_TAGNAME}-202607080141 # end of cache build config _NODE_DISTFILE= node-v${_PKGFETCH_NODE_VERSION}.tar.gz WRKSRC_npm_cache= ${WRKDIR}/onlyoffice-DS-npm-cache-${_NPM_CACHE_TAG} BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Jinja2>=0:devel/py-Jinja2@${PY_FLAVOR} \ boost-libs>0:devel/boost-libs \ glib>=2.54:devel/glib20 \ gn:devel/gn \ ninja:devel/ninja \ npm:www/npm-node24 \ optipng:graphics/optipng # Need libvips because npm module sharp requires it on Unix OS's LIB_DEPENDS= libboost_regex.so:devel/boost-libs \ libbrotlicommon.so:archivers/brotli \ libbrotlidec.so:archivers/brotli \ libcurl.so:ftp/curl \ libetonyek-0.1.so:graphics/libetonyek01 \ libgumbo.so:devel/gumbo \ libharfbuzz.so:print/harfbuzz \ libheif.so:graphics/libheif \ libicudata.so:devel/icu \ libicuuc.so:devel/icu \ libmd4c-html.so:textproc/md4c \ libmd4c.so:textproc/md4c \ libodfgen-0.1.so:textproc/libodfgen01 \ librevenge-0.0.so:textproc/librevenge \ libvips.so:graphics/vips RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss \ ${PYTHON_PKGNAMEPREFIX}supervisor>0:sysutils/py-supervisor@${PY_FLAVOR} \ gsed:textproc/gsed \ nginx:www/nginx \ pwgen:sysutils/pwgen \ webfonts>=0:x11-fonts/webfonts USES= autoreconf:build dos2unix fakeroot gmake gnome iconv:wchar_t \ java:build localbase pkgconfig python:build qt:6 ssl trigger BROKEN_SSL= boringssl libressl libressl-devel BROKEN_SSL_REASON= upstream Node.js requires OpenSSL DOS2UNIX_FILES= document-server-package/common/documentserver/nginx/includes/http-common.conf.m4 USE_GITHUB= yes GH_ACCOUNT= ONLYOFFICE GH_PROJECT= DocumentServer _DS_TAGNAME= ${DISTVERSIONPREFIX}${DISTVERSION}.${_DS_BUILD} GH_TUPLE= ONLYOFFICE:build_tools:${_DS_TAGNAME}:buildtools/build_tools \ ONLYOFFICE:core:${_DS_TAGNAME}:core/core \ ONLYOFFICE:core-fonts:${_DS_TAGNAME}:corefonts/core-fonts \ ONLYOFFICE:dictionaries:${_DS_TAGNAME}:dictionaries/dictionaries \ ONLYOFFICE:document-formats:${_DS_TAGNAME}:df/document-formats \ ONLYOFFICE:document-server-integration:${_DS_TAGNAME}:dsi/document-server-integration \ ONLYOFFICE:document-server-package:${_DS_TAGNAME}:dsp/document-server-package \ ONLYOFFICE:document-templates:${_DS_TAGNAME}:dt/document-templates \ ONLYOFFICE:sdkjs:${_DS_TAGNAME}:sdkjs/sdkjs \ ONLYOFFICE:server:${_DS_TAGNAME}:server/server \ ONLYOFFICE:web-apps:${_DS_TAGNAME}:webapps/web-apps \ ONLYOFFICE:DocumentBuilder:${DISTVERSIONPREFIX}${DISTVERSION}:document_builder/DocumentBuilder \ ONLYOFFICE:onlyoffice.github.io:b26d001664d771df4f663d2d3ba7dd4a188b6cab:sdkjs_plugins_v1/onlyoffice.github.io \ jasenhuang:katana-parser:be6df45:jasenhuang_katana/core/Common/3dParty/html/katana-parser \ hunspell:hyphen:73dd296:hunspell_hyphen/core/Common/3dParty/hyphen/hyphen JAVA_VERSION= 11+ USE_LDCONFIG= yes USE_QT= base:build MAKE_ENV= BUILD_NUMBER=${_DS_BUILD} \ NODE_OPTIONS=--max-old-space-size=3072 \ npm_package_config_node_gyp_nodedir=${LOCALBASE} \ npm_package_config_node_gyp_python=${PYTHON_CMD} \ PKG_BUILD_PATH=${WRKDIR}/.pkg-build \ PKG_CACHE_PATH=${WRKDIR}/.pkg-cache \ PRODUCT_VERSION=${DISTVERSION} \ PYTHON=${PYTHON_CMD} # Don't create __pycache__ directory when executing node-gyp # This is a workaround to avoid filesystem violations during poudriere build MAKE_ENV+= PYTHONDONTWRITEBYTECODE=1 # do not strip docservice, converter, metrics and json STRIP= ETCDIR= ${PREFIX}/etc/onlyoffice WWWDIR= ${PREFIX}/www/onlyoffice BINARY_ALIAS= python=${PYTHON_CMD} strip=true SUB_FILES= onlyoffice.newsyslog.sample pkg-message SUB_LIST= DS_GROUPNAME=${DS_GROUPNAME} \ DS_USERNAME=${DS_USERNAME} \ ETCDIR=${ETCDIR} \ PREFIX=${PREFIX} \ WWWDIR=${WWWDIR} DS_USERNAME= onlyoffice DS_GROUPNAME= onlyoffice USERS= ${DS_USERNAME} GROUPS= ${DS_GROUPNAME} PLIST_SUB= DS_GROUPNAME=${DS_GROUPNAME} \ DS_USERNAME=${DS_USERNAME} \ SHARP_NODE_FILE=${_SHARP_NODE_FILE} OPTIONS_DEFINE_amd64= LLVM_PORTS LLVM_PORTS_DESC= Use LLVM/clang from ports instead of base system .include .if ${ARCH} == aarch64 EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-aarch64-clang20 # Map FreeBSD ARCH to the node/sharp platform-arch suffix _SHARP_NODE_ARCH= arm64v8 .else _SHARP_NODE_ARCH= x64 .endif .if ${ARCH} == aarch64 || ${PORT_OPTIONS:MLLVM_PORTS} BUILD_DEPENDS+= clang${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT} BINARY_ALIAS+= ar=${LOCALBASE}/bin/llvm-ar${LLVM_DEFAULT} \ c++=${LOCALBASE}/bin/clang++${LLVM_DEFAULT} \ cc=${LOCALBASE}/bin/clang${LLVM_DEFAULT} \ cpp=${LOCALBASE}/bin/clang-cpp${LLVM_DEFAULT} \ ld=${LOCALBASE}/bin/ld.lld${LLVM_DEFAULT} \ nm=${LOCALBASE}/bin/llvm-nm${LLVM_DEFAULT} .endif _SHARP_NODE_FILE= sharp-freebsd-${_SHARP_NODE_ARCH}.node _SHARP_INSTALL_DIR= ${WWWDIR}/documentserver/server/DocService/sharp post-extract: @${MV} ${WRKDIR}/v8 ${WRKSRC}/core/Common/3dParty/v8_89 @${LN} -s ${WRKSRC_npm_cache} ${WRKDIR}/.npm @${MKDIR} ${WRKDIR}/.pkg-build @${MKDIR} ${WRKDIR}/.pkg-cache/node @${CP} ${FILESDIR}/extra-patch-pkg-fetch_lib-es5_build.js ${WRKDIR}/ # Copy node tarball to pkg-cache directory, and create sha256sum file @${CP} ${DISTDIR}/${_NODE_DISTFILE} ${WRKDIR}/.pkg-cache/node @${EGREP} '^\s*SHA256[[:space:]]\(${_NODE_DISTFILE}\)' \ ${.CURDIR}/distinfo | \ ${AWK} '{print $$4 " ${_NODE_DISTFILE}"}' \ > ${WRKDIR}/.pkg-cache/node/${_NODE_DISTFILE}.sha256sum @${ECHO_MSG} "===> Created pkg-fetch cache entry for ${_NODE_DISTFILE}" @${MKDIR} ${WRKSRC}/sdkjs-plugins/v1 @${CP} ${WRKSRC}/onlyoffice.github.io/sdkjs-plugins/v1/* ${WRKSRC}/sdkjs-plugins/v1 @${MV} ${WRKSRC}/server/Common/config/production-linux.json ${WRKSRC}/server/Common/config/production-freebsd.json @${MV} ${WRKSRC}/server/Common/config/development-linux.json ${WRKSRC}/server/Common/config/development-freebsd.json # linux has moved to systemd init files, continue to using supervisord for now ${MKDIR} ${WRKSRC}/document-server-package/common/documentserver/supervisor .for i in ds-docservice.conf ds-metrics.conf ds.conf ${CP} ${FILESDIR}/${i} \ ${WRKSRC}/document-server-package/common/documentserver/supervisor .endfor pre-configure: @${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|g' \ ${WRKSRC}/core/Apple/IWork.pro \ ${WRKSRC}/core/Common/3dParty/boost/boost.pri \ ${WRKSRC}/core/Common/3dParty/brotli/brotli.pri \ ${WRKSRC}/core/Common/3dParty/heif/heif.pri \ ${WRKSRC}/core/Common/3dParty/html/gumbo.pri \ ${WRKSRC}/core/Common/3dParty/icu/icu.pri \ ${WRKSRC}/core/Common/3dParty/md/md2html.pri \ ${WRKSRC}/core/Common/3dParty/v8_89/v8/build/toolchain/gcc_toolchain.gni \ ${WRKSRC}/core/Common/3dParty/v8_89/v8/buildtools/third_party/libc++/BUILD.gn \ ${WRKSRC}/core/DesktopEditor/fontengine/ApplicationFonts.cpp \ ${WRKSRC}/core/X2tConverter/build/Qt/X2tConverter.pri \ ${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-generate-allfonts.sh.m4 \ ${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-jwt-status.sh.m4 \ ${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-pluginsmanager.sh.m4 \ ${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-static-gzip.sh.m4 \ ${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-update-securelink.sh.m4 \ ${WRKSRC}/document-server-package/common/documentserver/supervisor/ds-docservice.conf \ ${WRKSRC}/document-server-package/common/documentserver/supervisor/ds-metrics.conf \ ${WRKSRC}/web-apps/build/patches/optipng-bin+5.1.0.patch @${REINPLACE_CMD} -e 's|%%CC%%|${CC}|' -e 's|%%CXX%%|${CXX}|' \ ${WRKSRC}/core/Common/3dParty/v8_89/v8/build/toolchain/gcc_toolchain.gni \ ${WRKSRC}/core/Common/base.pri @${REINPLACE_CMD} 's|%%WRKDIR%%|${WRKDIR}|' \ ${WRKSRC}/document-server-package/Makefile @${REINPLACE_CMD} 's|%%WRKSRC%%|${WRKSRC}|' \ ${WRKSRC}/build_tools/scripts/build_js.py \ ${WRKSRC}/build_tools/scripts/build_server.py \ ${WRKSRC}/document-server-package/Makefile @${REINPLACE_CMD} 's|%%PKGFETCH_NODE_MAJOR_VERSION%%|${_PKGFETCH_NODE_VERSION:C/^([0-9]+)\..*/\1/}|' \ ${WRKSRC}/build_tools/scripts/build_server.py \ ${WRKSRC}/document-server-package/Makefile @${REINPLACE_CMD} -e 's|/var/lib|/var/db|' -e 's|/var/www|${LOCALBASE}/www|' \ -e 's|/usr/share|${LOCALBASE}/share|' -e 's|/etc|${LOCALBASE}/etc|' \ ${WRKSRC}/server/Common/config/production-freebsd.json \ ${WRKSRC}/server/Common/config/development-freebsd.json @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' -e 's|%%ETCDIR%%|${ETCDIR}|' \ ${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-flush-cache.sh.m4 \ ${WRKSRC}/document-server-package/Makefile @${REINPLACE_CMD} -e 's|%%OPENSSL_INC%%|${OPENSSLINC}|' -e 's|%%OPENSSL_LIB%%|${OPENSSLLIB}|' \ ${WRKDIR}/extra-patch-pkg-fetch_lib-es5_build.js \ ${WRKSRC}/core/Common/3dParty/openssl/openssl.pri @${REINPLACE_CMD} -e 's|%%QT_LIBDIR%%|${QT_LIBDIR}|' \ -e 's|%%QT_VERSION%%|${QT6_VERSION}|' \ ${WRKSRC}/build_tools/tools/freebsd/automate.py @${RM} ${WRKSRC}/web-apps/build/patches/optipng-bin+5.1.0.patch.orig # Copy new package.json for sdkjs root @${CP} ${WRKSRC_npm_cache}/sdkjs-package.json ${WRKSRC}/sdkjs/package.json @${ECHO_MSG} " Installed: sdkjs/package.json" # Copy optimized shrinkwrap files from cache repo, overwriting upstream @${ECHO_MSG} "Installing optimized npm-shrinkwrap.json files..." @(cd ${WRKSRC_npm_cache}/shrinkwrap && \ ${FIND} . -name npm-shrinkwrap.json | while read shrinkwrap; do \ rel_path=$${shrinkwrap#./}; \ target="${WRKSRC}/$${rel_path}"; \ target_dir=$$(dirname "$$target"); \ ${MKDIR} "$$target_dir"; \ ${CP} "$$shrinkwrap" "$$target"; \ ${ECHO_MSG} " Installed: $${rel_path}"; \ done) @${ECHO} "# Generated from 'DEPS'" > ${WRKSRC}/core/Common/3dParty/v8_89/v8/build/config/gclient_args.gni @${ECHO} "checkout_google_benchmark = false" >> ${WRKSRC}/core/Common/3dParty/v8_89/v8/build/config/gclient_args.gni do-build: ${INSTALL_SCRIPT} ${FILESDIR}/npm ${BINARY_LINKDIR}/npm @${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKDIR}/.bin/npm @cd ${WRKSRC}/web-apps/build ; ${SETENV} ${MAKE_ENV} NODE_ENV=production npm install --ignore-scripts @cd ${WRKSRC}/web-apps/build ; node_modules/.bin/patch-package @cd ${WRKSRC}/web-apps/build/node_modules/optipng-bin ; ${SETENV} ${MAKE_ENV} npm run postinstall optipng-bin @cd ${WRKSRC}/sdkjs ; ${SETENV} ${MAKE_ENV} npm install # During offline builds the install script doesn't run, and must patch for external native addon @cd ${WRKSRC}/server/DocService ; ${SETENV} ${MAKE_ENV} NODE_ENV=production npm install --ignore-scripts @cd ${WRKSRC}/server/DocService ; node_modules/.bin/patch-package @cd ${WRKSRC}/server/DocService/node_modules/sharp ; ${SETENV} ${MAKE_ENV} NODE_ENV=production npm run install # Install Metrics dependencies and patch statsd for Node 24 compatibility # (util.log was removed in Node 23; patch replaces it with console.log) @cd ${WRKSRC}/server/Metrics ; ${SETENV} ${MAKE_ENV} NODE_ENV=production npm install --ignore-scripts @cd ${WRKSRC}/server/Metrics ; node_modules/.bin/patch-package @${MKDIR} ${WRKSRC}/yao-pkg @${CP} ${WRKSRC_npm_cache}/yao-pkg-package.json ${WRKSRC}/yao-pkg/package.json @${CP} ${WRKSRC_npm_cache}/yao-pkg-npm-shrinkwrap-${MACHINE_ARCH}.json ${WRKSRC}/yao-pkg/npm-shrinkwrap.json @cd ${WRKSRC}/yao-pkg ; ${SETENV} ${MAKE_ENV} npm install @cd ${WRKSRC} && ${PATCH} -N -s -i ${WRKDIR}/extra-patch-pkg-fetch_lib-es5_build.js @cd ${WRKSRC} && ${PATCH} -N -s -i ${WRKSRC_npm_cache}/extra-patch-pkg-fetch_patches_node.v${_PKGFETCH_NODE_VERSION}.cpp.patch cd ${WRKSRC}/build_tools/tools/freebsd ; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} automate.py cd ${WRKSRC}/document-server-package ; ${SETENV} ${MAKE_ENV} ${GMAKE} freebsd do-install: # install the project # do not strip docservice, converter, metrics and json cd ${WRKSRC}/document-server-package/common/documentserver/home && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/documentserver ${INSTALL_SCRIPT} ${WRKSRC}/document-server-package/common/documentserver/bin/*.sh ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/document-server-package/common/documentserver/home/server/tools/all* ${STAGEDIR}${WWWDIR}/documentserver/server/tools ${INSTALL_PROGRAM} ${WRKSRC}/document-server-package/common/documentserver/home/server/FileConverter/bin/x2t ${STAGEDIR}${WWWDIR}/documentserver/server/FileConverter/bin ${INSTALL_PROGRAM} ${WRKSRC}/document-server-package/common/documentserver/home/server/FileConverter/bin/docbuilder ${STAGEDIR}${WWWDIR}/documentserver/server/FileConverter/bin ${INSTALL_PROGRAM} ${WRKSRC}/document-server-package/common/documentserver/home/server/tools/pluginsmanager ${STAGEDIR}${WWWDIR}/documentserver/server/tools ${INSTALL_DATA} ${WRKSRC}/document-server-package/common/documentserver/home/npm/json ${STAGEDIR}${WWWDIR}/documentserver/npm ${INSTALL_LIB} ${WRKSRC}/document-server-package/common/documentserver/home/server/FileConverter/bin/*.so ${STAGEDIR}${PREFIX}/lib # install conf ${MKDIR} ${STAGEDIR}${ETCDIR}/documentserver/supervisor \ ${STAGEDIR}${ETCDIR}/documentserver/nginx/includes \ ${STAGEDIR}${ETCDIR}/documentserver/logrotate ${RM} ${WRKSRC}/document-server-package/common/documentserver/config/*-mac.json ${WRKSRC}/document-server-package/common/documentserver/config/*-windows.json cd ${WRKSRC}/document-server-package/common/documentserver/supervisor && ${COPYTREE_SHARE} . ${STAGEDIR}${ETCDIR}/documentserver/supervisor "-name *\.conf" cd ${WRKSRC}/document-server-package/common/documentserver/logrotate && ${COPYTREE_SHARE} . ${STAGEDIR}${ETCDIR}/documentserver/logrotate "-name *\.conf" ${INSTALL_DATA} ${WRKSRC}/document-server-package/common/documentserver/nginx/ds-ssl.conf.tmpl ${WRKSRC}/document-server-package/common/documentserver/nginx/ds-ssl.conf .for f in ds.conf ds-ssl.conf includes/http-common.conf includes/ds-common.conf \ includes/ds-docservice.conf includes/ds-letsencrypt.conf \ includes/ds-mime.types.conf ${INSTALL_DATA} ${WRKSRC}/document-server-package/common/documentserver/nginx/${f} ${STAGEDIR}${ETCDIR}/documentserver/nginx/${f}.sample .endfor @echo "# Production ds-cache.conf is created automatically by documentserver-flush-cache.sh" > ${STAGEDIR}${ETCDIR}/documentserver/nginx/includes/ds-cache.conf.sample cd ${WRKSRC}/document-server-package/common/documentserver/nginx/includes && ${COPYTREE_SHARE} . ${STAGEDIR}${ETCDIR}/documentserver/nginx/includes "-name *\.conf" cd ${WRKSRC}/document-server-package/common/documentserver/config && ${COPYTREE_SHARE} . ${STAGEDIR}${ETCDIR}/documentserver ${INSTALL_DATA} ${FILESDIR}/local.json.sample ${STAGEDIR}${ETCDIR}/documentserver ${MKDIR} ${STAGEDIR}/${ETCDIR}/documentserver/newsyslog.conf.d ${INSTALL_DATA} ${WRKDIR}/onlyoffice.newsyslog.sample ${STAGEDIR}/${ETCDIR}/documentserver/newsyslog.conf.d # Install arch-specific sharp native binding adjacent to the docservice # binary. sharp.js resolves this at runtime via path.dirname(process.execPath). @${MKDIR} ${STAGEDIR}${_SHARP_INSTALL_DIR} ${INSTALL_LIB} \ ${WRKSRC}/server/DocService/node_modules/sharp/build/Release/${_SHARP_NODE_FILE} \ ${STAGEDIR}${_SHARP_INSTALL_DIR}/${_SHARP_NODE_FILE} # create missing dir ${MKDIR} ${STAGEDIR}/var/log/onlyoffice/documentserver/docservice \ ${STAGEDIR}/var/log/onlyoffice/documentserver/converter \ ${STAGEDIR}/var/log/onlyoffice/documentserver/metrics \ ${STAGEDIR}/var/db/onlyoffice/documentserver/App_Data/cache/files \ ${STAGEDIR}/var/db/onlyoffice/documentserver/App_Data/docbuilder \ ${STAGEDIR}${WWWDIR}/Data \ ${STAGEDIR}${WWWDIR}/documentserver/fonts post-install: # Remove unwanted files from STAGE ${RM} ${STAGEDIR}${PREFIX}/bin/documentserver-letsencrypt.sh ${RM} ${STAGEDIR}${WWWDIR}/documentserver/server/Common/config/*.bak ${RM} ${STAGEDIR}${WWWDIR}/documentserver/dictionaries/sl_SI/hyph_sl_SI.dic.bak # formats@2.5x.svg is generated by grunt-svg-sprite (web-apps/build/sprites/Gruntfile.js) as # part of the editor-specific deploy phase, which runs after the common deploy step that would # have copied it to staging via its **/*.svg glob. Copy it manually until fixed upstream. ${INSTALL_DATA} ${WRKSRC}/web-apps/apps/common/main/resources/img/doc-formats/formats@2.5x.svg \ ${STAGEDIR}${WWWDIR}/documentserver/web-apps/apps/common/main/resources/img/doc-formats/ .include diff --git a/www/tdom/Makefile b/www/tdom/Makefile index 01ebe84c51c1..019c1f144e70 100644 --- a/www/tdom/Makefile +++ b/www/tdom/Makefile @@ -1,60 +1,61 @@ PORTNAME= tDOM DISTVERSION= 0.9.6 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://tdom.org/downloads/ DISTNAME= ${PORTNAME:tl}-${DISTVERSION}-src MAINTAINER= ports@virtual-estates.net COMMENT= High performance processing of XML and HTML data with Tcl WWW= http://www.tdom.org/ LICENSE= MPL20 LICENSE_FILE= ${WRKSRC}/LICENSE USES= tcl:tea CONFIGURE_ARGS= --enable-threads --disable-tdomalloc EXTRACT_AFTER_ARGS= --exclude 'expat*/*.c' --exclude 'expat*/[a-mo-z]*.h' \ --exclude 'domalloc*' --exclude win MAKE_ARGS+= TESTFLAGS= TEST_TARGET= test PLIST_SUB= DISTVERSION=${DISTVERSION} DOCS= CHANGES README.md OPTIONS_DEFINE= DOCS HTML5 OPTIONS_DEFAULT= ${OPTIONS_DEFINE} EBASE OPTIONS_SINGLE= EXPAT OPTIONS_SINGLE_EXPAT= EBASE EPORTS EBASE_DESC= Use Expat from base EPORTS_DESC= Use Expat from ports HTML5_DESC= Enable parsing of HTML5 (requires gumbo) EBASE_CONFIGURE_ON= --with-expat=/usr EPORTS_LIB_DEPENDS= libexpat.so:textproc/expat2 EPORTS_CONFIGURE_ON= --with-expat=${LOCALBASE} HTML5_LIB_DEPENDS= libgumbo.so:devel/gumbo HTML5_USES= pkgconfig HTML5_CONFIGURE_ENABLE= html5 HTML5_CFLAGS= -I${LOCALBASE}/include post-patch-EBASE-on: ${REINPLACE_CMD} 's|\([