PORTNAME= ladybird PORTVERSION= g20231216 CATEGORIES= www MASTER_SITES= https://github.com/unicode-org/cldr-json/releases/download/${CLDRVERSION}/:cldr \ https://www.unicode.org/Public/${UCDVERSION}/ucd/:ucd \ https://www.unicode.org/Public/emoji/${UCDVERSION:R}/:emoji \ https://www.unicode.org/Public/idna/${UCDVERSION}/:idna \ https://curl.se/ca/:cacert DISTFILES= cldr-${CLDRVERSION}-json-modern.zip:cldr \ UCD.zip:ucd \ emoji-test.txt:emoji \ IdnaMappingTable.txt:idna \ cacert-${CACERTVERSION}.pem:cacert DIST_SUBDIR= ${PORTNAME}-${PORTVERSION} EXTRACT_ONLY= ${_DISTFILES:M*${GH_ACCOUNT}*} MAINTAINER= fuz@FreeBSD.org COMMENT= SerenityOS web browser WWW= https://ladybird.dev/ LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE # see Userland/Libraries/LibWeb/Loader/ResourceLoader.h ONLY_FOR_ARCHS= aarch64 amd64 i386 riscv64 ONLY_FOR_ARCHS_REASON= other architectures not recognised by build system BROKEN_i386= Userland/Libraries/LibJIT/GDBElf.cpp:29:24: bit cast source size does not equal destination size BUILD_DEPENDS= ${LOCALBASE}/share/public_suffix_list/public_suffix_list.dat:dns/public_suffix_list LIB_DEPENDS= libpulse.so:audio/pulseaudio RUN_DEPENDS= ${LOCALBASE}/share/fonts/Liberation/LiberationMono-Bold.ttf:x11-fonts/liberation-fonts-ttf USES= cmake:testing compiler:c++20-lang gl localbase:ldflags python:build qt:6 USE_GITHUB= yes GH_ACCOUNT= SerenityOS GH_PROJECT= serenity GH_TAGNAME= 36f0499cc84ccfcb2d1867b683ec732d247a6827 USE_GL= egl USE_LDCONFIG= yes USE_QT= base tools:build wayland multimedia CACERTVERSION= 2023-08-22 CLDRVERSION= 44.0.1 UCDVERSION= 15.1.0 CMAKE_ARGS= SERENITY_CACHE_DIR=${_DISTDIR} CMAKE_OFF= ENABLE_LAGOM_CCACHE \ ENABLE_COMMONMARK_SPEC_DOWNLOAD \ ENABLE_CACERT_DOWNLOAD \ ENABLE_TIME_ZONE_DATABASE_DOWNLOAD \ INCLUDE_WASM_SPEC_TESTS \ INCLUDE_FLAC_SPEC_TESTS \ ENABLE_NETWORK_DOWNLOADS CMAKE_SOURCE_PATH= ${WRKSRC}/Ladybird BINARY_ALIAS= python3=${PYTHON_CMD} DESKTOP_ENTRIES= "Ladybird" "SerenityOS web browser" "ladybird" "${PREFIX}/bin/Ladybird" "Network;WebBrowser;" false PLIST_FILES= ${PLIST_FILES_${ARCH}} PLIST_FILES_amd64= lib/liblagom-x86.so \ lib/liblagom-x86.so.0 \ lib/liblagom-x86.so.0.0.0 post-extract: ${MKDIR} ${CONFIGURE_WRKSRC}/caches/PublicSuffix ${LN} -s ${LOCALBASE}/share/public_suffix_list/public_suffix_list.dat \ ${CONFIGURE_WRKSRC}/caches/PublicSuffix/ post-configure: ${MKDIR} ${CONFIGURE_WRKSRC}/caches/CLDR ${CONFIGURE_WRKSRC}/caches/UCD ${TAR} -x -C ${CONFIGURE_WRKSRC}/caches/CLDR -f ${_DISTDIR}/cldr-${CLDRVERSION}-json-modern.zip ${TAR} -x -C ${CONFIGURE_WRKSRC}/caches/UCD -f ${_DISTDIR}/UCD.zip ${CP} ${_DISTDIR}/emoji-test.txt ${CONFIGURE_WRKSRC}/caches/UCD ${CP} ${_DISTDIR}/IdnaMappingTable.txt ${CONFIGURE_WRKSRC}/caches/UCD ${CP} ${_DISTDIR}/cacert-${CACERTVERSION}.pem ${CONFIGURE_WRKSRC}/Lagom/cacert.pem post-install: ${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps ${INSTALL_DATA} ${WRKSRC}/Ladybird/Icons/ladybird.png \ ${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps/ .for font in Mono Sans Serif . for shape in Bold BoldItalic Italic Regular ${LN} -shf ${LOCALBASE}/share/fonts/Liberation/Liberation${font}-${shape}.ttf \ ${STAGEDIR}${PREFIX}/share/res/fonts/ . endfor .endfor .include