diff --git a/x11-fonts/ots/Makefile b/x11-fonts/ots/Makefile index 01d6f376f24f..1ef563fba129 100644 --- a/x11-fonts/ots/Makefile +++ b/x11-fonts/ots/Makefile @@ -1,27 +1,26 @@ PORTNAME= ots PORTVERSION= 9.0.0 CATEGORIES= x11-fonts MASTER_SITES= https://github.com/khaledhosny/ots/releases/download/v${PORTVERSION}/ MAINTAINER= sunpoet@FreeBSD.org COMMENT= OpenType Sanitizer WWW= https://github.com/khaledhosny/ots LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= meson>=0.55.2:devel/meson LIB_DEPENDS= libbrotlidec.so:archivers/brotli \ libfreetype.so:print/freetype2 \ libgtest.so:devel/googletest \ liblz4.so:archivers/liblz4 \ libwoff2dec.so:devel/woff2 USES= compiler:c++11-lang meson pkgconfig tar:xz -MESON_FALSE= debug -MESON_TRUE= graphite +MESON_ARGS= --default-library=both -Ddebug=false -Dgraphite=true PLIST_SUB= PORTVERSION=${PORTVERSION} .include diff --git a/x11-fonts/ots/files/patch-meson.build b/x11-fonts/ots/files/patch-meson.build index 65cdb7306c40..a546c2b29cc3 100644 --- a/x11-fonts/ots/files/patch-meson.build +++ b/x11-fonts/ots/files/patch-meson.build @@ -1,27 +1,19 @@ --- meson.build.orig 2021-03-07 06:36:19 UTC +++ meson.build -@@ -1,6 +1,6 @@ - project('ots', 'c', 'cpp', - version: '8.1.4', -- default_options : ['cpp_std=c++11', 'default_library=static', 'warning_level=2'], -+ default_options : ['cpp_std=c++11', 'default_library=both', 'warning_level=2'], - meson_version : '>= 0.55.2', - ) - @@ -150,6 +150,8 @@ libots = library('ots', include_directories: include_directories('include'), cpp_args : '-DHAVE_CONFIG_H', dependencies: ots_deps, + version : meson.project_version(), + install: true, ) @@ -175,6 +177,7 @@ executable('ots-fuzzer', cpp_args: fuzzer_defines, link_with: libots, link_args: fuzzer_ldflags, + install: true, )