11310N/A#
11310N/A# Macro definitions for optional features
11310N/A#
11310N/A
11310N/A#
11310N/A# Option: --with-l10n
11310N/A#
11310N/A# use --with-l10n to build the SUNWfoo-l10n packages
11310N/A# default: no l10n packages
11310N/A#
11310N/A%define option_with_l10n %{?_with_l10n:1}%{?!_with_l10n:0}
11310N/A%define option_without_l10n %{!?_with_l10n:1}%{?_with_l10n:0}
11310N/A
11310N/A# obsolete:
11310N/A%define build_l10n %option_with_l10n
11310N/A
11310N/A#
11310N/A# Option: --with-debug
11310N/A#
11310N/A# use --with-debug to build binaries with debug info (-g) and not to strip
11310N/A# them.
11310N/A# default: don't include debug info and strip the binaries (strip -x)
11310N/A#
11310N/A%define option_with_debug %{?_with_debug:1}%{?!_with_debug:0}
11310N/A%define option_without_debug %{!?_with_debug:1}%{?_with_debug:0}
11310N/A
11310N/A# obsolete:
11310N/A%define debug_build %option_with_debug
11310N/A
11310N/A#
11310N/A# Option: --without-gtk-doc
11310N/A#
11310N/A# use --without-gtk-doc to disable building gtk-docs (it takes quite
11310N/A# a while to build them)
11310N/A# default: build gtk-doc API docs
11310N/A#
11310N/A%define option_with_gtk_doc %{?!_without_gtk_doc:1}%{?_without_gtk_doc:0}
11310N/A%define option_without_gtk_doc %{?_without_gtk_doc:1}%{?!_without_gtk_doc:0}
11310N/A
11310N/A# macro to use as a configure option:
11310N/A%define gtk_doc_option %{?!_without_gtk_doc:--enable-gtk-doc}%{?_without_gtk_doc:--disable-gtk-doc}
11310N/A
11310N/A#
11310N/A# Option: --with-fox
11310N/A#
11310N/A# use --with-fox to build JDS with the FOX project's X packages
11310N/A# instead of the nevada X packages
11310N/A# default: nevada
11310N/A#
11310N/A%define option_with_fox %{?_with_fox:1}%{?!_with_fox:0}
11310N/A%define option_without_fox %{!?_with_fox:1}%{?_with_fox:0}
11310N/A
11310N/A#
11310N/A# Option: --with-gnu-iconv
11310N/A#
11310N/A# use --with-gnu-iconv to build JDS with the GNU libiconv and
11310N/A# libintl implementations instead of the nevada libc implementations
11310N/A# default: libc
11310N/A#
11310N/A%define option_with_gnu_iconv %{?_with_gnu_iconv:1}%{?!_with_gnu_iconv:0}
11310N/A%define option_without_gnu_iconv %{!?_with_gnu_iconv:1}%{?_with_gnu_iconv:0}
11310N/A
11310N/A#
11310N/A# Option: --without-java
11310N/A#
11310N/A# use --without-java exclude the Java bits from the build and packages
11310N/A# default: build java
11310N/A#
11310N/A%define option_with_java %{?!_without_java:1}%{?_without_java:0}
11310N/A%define option_without_java %{?_without_java:1}%{?!_without_java:0}
11310N/A
11310N/A#
11310N/A# Option: --without-dt
11310N/A#
11310N/A# use --without-dt to remove dependency on /usr/dt "stuff" like dtlogin
11310N/A# default: depend on /usr/dt
11310N/A#
11310N/A%define option_with_dt %{?!_without_dt:1}%{?_without_dt:0}
11310N/A%define option_without_dt %{?_without_dt:1}%{?!_without_dt:0}
11310N/A
11310N/A#
11310N/A# Option: --with-sun-branding
11310N/A#
11310N/A# use --with-sun-branding to build JDS with Sun Solaris branding
11310N/A# default: no Sun branding
11310N/A#
11310N/A%define option_with_sun_branding %{?_with_sun_branding:1}%{?!_with_sun_branding:0}
11310N/A%define option_without_sun_branding %{!?_with_sun_branding:1}%{?_with_sun_branding:0}
11310N/A
11310N/A#
11310N/A# Option: --with-indiana-branding
11310N/A#
11310N/A# use --with-indiana-branding to build JDS with Indiana Solaris branding
11310N/A# default: no Indiana branding
11310N/A#
11310N/A%define option_with_indiana_branding %{?_with_indiana_branding:1}%{?!_with_indiana_branding:0}
11310N/A%define option_without_indiana_branding %{!?_with_indiana_branding:1}%{?_with_indiana_branding:0}
11310N/A
11310N/A%if %option_with_sun_branding
11310N/A%if %option_with_indiana_branding
11310N/A%error You cannot enable both Sun Solaris and Indiana branding
11310N/A%endif
11310N/A%endif
11310N/A
11310N/A#
11310N/A# Option: --without-blueprint
11310N/A#
11310N/A# use --without-blueprint if you do not with to include the blueprint theme
11310N/A# default: include blueprint
11310N/A#
11310N/A%define option_with_blueprint %{?!_without_blueprint:1}%{?_without_blueprint:0}
11310N/A%define option_without_blueprint %{?_without_blueprint:1}%{?!_without_blueprint:0}
11310N/A
16554N/A#
16554N/A# Option: --without-apoc-adapter
16554N/A#
17133N/A# use --with-apoc-adapter to enable apoc adapter for SUNWfirefox
17133N/A# default: not build apoc adapter
17133N/A%define option_with_apoc_adapter %{?_with_apoc_adapter:1}%{?!_with_apoc_adapter:0}
17133N/A%define option_without_apoc_adapter %{!?_with_apoc_adapter:1}%{?_with_apoc_adapter:0}
16554N/A
16554N/A#
16554N/A# Option: --with-moz-nss-nspr
16554N/A#
16554N/A# use --with-moz-nss-nspr to deliver Mozilla bundled nss, nspr libs
16554N/A# for SUNWfirefox
16554N/A# default: without Mozilla bundled nss, nspr libs
16554N/A%define option_without_moz_nss_nspr %{?!_with_moz_nss_nspr:1}%{?_with_moz_nss_nspr:0}
13086N/A
16555N/A#
16555N/A# Option: --without-lightning
16555N/A#
16555N/A# use --without-lightning to disable building lightning for SUNWthunderbird
16555N/A# default: build lightning
16555N/A%define option_with_lightning %{?!_without_lightning:1}%{?_without_lightning:0}
16555N/A
19821N/A#
19821N/A# Option: --with-svr4
19821N/A#
19821N/A# use --with-svr4 to build based on SVr4 packaging mechanism
19821N/A# default: build based on pkg(5) packaging mechanism
19821N/A%define option_with_svr4 %{?_with_svr4:1}%{?!_with_svr4:0}
19821N/A
11310N/A# ChangeLog:
16555N/A# 2009-05-25 - ginn.chen@sun.com
16555N/A# - add option --without-lightning
16554N/A# 2009-05-21 - ginn.chen@sun.com
16554N/A# - add option --without-apoc-adapter, --with-moz-nss-nspr
16226N/A# 2009-03-23 - dave.lin@sun.com
16226N/A# - remove option --with-ff3
13086N/A# 2008-05-22 - dave.lin@sun.com
13086N/A# - add option --with-ff3
11310N/A# 2007-09-27 Laszlo (Laca) Peter <laca@sun.com>
11310N/A# - create