[packages/freetype] add static_libs bcond
atler
atler at pld-linux.org
Tue Aug 13 00:57:04 CEST 2024
commit 92d7e690af96fb2352c97ae246f9bf47f5eb43ef
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Aug 12 23:30:23 2024 +0200
add static_libs bcond
freetype.spec | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/freetype.spec b/freetype.spec
index 7c0feeb..8e701b2 100644
--- a/freetype.spec
+++ b/freetype.spec
@@ -3,8 +3,9 @@
%bcond_without lcd # without LCD subpixel color filtering (Microsoft patents in USA)
%bcond_without x11 # don't build examples (X11-based)
%bcond_without harfbuzz # harfbuzz based autohinting
-%bcond_without apidocs # disable api docs
-%bcond_with regen_refdoc # regenerate reference documentation
+%bcond_without apidocs # disable api docs
+%bcond_with regen_refdoc # regenerate reference documentation
+%bcond_without static_libs # static library
%if %{without harfbuzz}
# demos require harfbuzz
@@ -227,7 +228,7 @@ CFLAGS="%{rpmcflags} %{rpmcppflags} \
%{?with_harfbuzz:-DFT_CONFIG_OPTION_USE_HARFBUZZ} \
" \
%{__make} setup unix \
- CFG="--prefix=%{_prefix} --libdir=%{_libdir} --enable-freetype-config"
+ CFG="--prefix=%{_prefix} --libdir=%{_libdir} --enable-freetype-config %{!?with_static_libs:--disable-static}"
CC="%{__cc}" \
%{__make} \
@@ -284,9 +285,11 @@ rm -rf $RPM_BUILD_ROOT
%doc docs/reference
%endif
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libfreetype.a
+%endif
%if %{with x11}
%files demos
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/freetype.git/commitdiff/92d7e690af96fb2352c97ae246f9bf47f5eb43ef
More information about the pld-cvs-commit
mailing list