spec-files/include/options.inc
changeset 1 d63a2608b656
equal deleted inserted replaced
0:a62e9e23639a 1:d63a2608b656
       
     1 #
       
     2 # Macro definitions for optional features
       
     3 #
       
     4 
       
     5 #
       
     6 # Option: --with-l10n
       
     7 #
       
     8 # use --with-l10n to build the SUNWfoo-l10n packages
       
     9 # default: no l10n packages
       
    10 #
       
    11 %define option_with_l10n %{?_with_l10n:1}%{?!_with_l10n:0}
       
    12 %define option_without_l10n %{!?_with_l10n:1}%{?_with_l10n:0}
       
    13 
       
    14 # obsolete:
       
    15 %define build_l10n %option_with_l10n
       
    16 
       
    17 #
       
    18 # Option: --with-debug
       
    19 #
       
    20 # use --with-debug to build binaries with debug info (-g) and not to strip
       
    21 # them.
       
    22 # default: don't include debug info and strip the binaries (strip -x)
       
    23 #
       
    24 %define option_with_debug %{?_with_debug:1}%{?!_with_debug:0}
       
    25 %define option_without_debug %{!?_with_debug:1}%{?_with_debug:0}
       
    26 
       
    27 # obsolete:
       
    28 %define debug_build %option_with_debug
       
    29 
       
    30 #
       
    31 # Option: --without-gtk-doc
       
    32 #
       
    33 # use --without-gtk-doc to disable building gtk-docs (it takes quite
       
    34 # a while to build them)
       
    35 # default: build gtk-doc API docs
       
    36 #
       
    37 %define option_with_gtk_doc %{?!_without_gtk_doc:1}%{?_without_gtk_doc:0}
       
    38 %define option_without_gtk_doc %{?_without_gtk_doc:1}%{?!_without_gtk_doc:0}
       
    39 
       
    40 # macro to use as a configure option:
       
    41 %define gtk_doc_option %{?!_without_gtk_doc:--enable-gtk-doc}%{?_without_gtk_doc:--disable-gtk-doc}
       
    42 
       
    43 #
       
    44 # Option: --with-fox
       
    45 #
       
    46 # use --with-fox to build JDS with the FOX project's X packages
       
    47 # instead of the nevada X packages
       
    48 # default: nevada
       
    49 #
       
    50 %define option_with_fox %{?_with_fox:1}%{?!_with_fox:0}
       
    51 %define option_without_fox %{!?_with_fox:1}%{?_with_fox:0}
       
    52 
       
    53 #
       
    54 # Option: --with-gnu-iconv
       
    55 #
       
    56 # use --with-gnu-iconv to build JDS with the GNU libiconv and
       
    57 # libintl implementations instead of the nevada libc implementations
       
    58 # default: libc
       
    59 #
       
    60 %define option_with_gnu_iconv %{?_with_gnu_iconv:1}%{?!_with_gnu_iconv:0}
       
    61 %define option_without_gnu_iconv %{!?_with_gnu_iconv:1}%{?_with_gnu_iconv:0}
       
    62 
       
    63 #
       
    64 # Option: --without-java
       
    65 #
       
    66 # use --without-java exclude the Java bits from the build and packages
       
    67 # default: build java
       
    68 #
       
    69 %define option_with_java %{?!_without_java:1}%{?_without_java:0}
       
    70 %define option_without_java %{?_without_java:1}%{?!_without_java:0}
       
    71 
       
    72 #
       
    73 # Option: --without-dt
       
    74 #
       
    75 # use --without-dt to remove dependency on /usr/dt "stuff" like dtlogin
       
    76 # default: depend on /usr/dt
       
    77 #
       
    78 %define option_with_dt %{?!_without_dt:1}%{?_without_dt:0}
       
    79 %define option_without_dt %{?_without_dt:1}%{?!_without_dt:0}
       
    80 
       
    81 #
       
    82 # Option: --with-sun-branding
       
    83 #
       
    84 # use --with-sun-branding to build JDS with Sun Solaris branding
       
    85 # default: no Sun branding
       
    86 #
       
    87 %define option_with_sun_branding %{?_with_sun_branding:1}%{?!_with_sun_branding:0}
       
    88 %define option_without_sun_branding %{!?_with_sun_branding:1}%{?_with_sun_branding:0}
       
    89 
       
    90 #
       
    91 # Option: --with-indiana-branding
       
    92 #
       
    93 # use --with-indiana-branding to build JDS with Indiana Solaris branding
       
    94 # default: no Indiana branding
       
    95 #
       
    96 %define option_with_indiana_branding %{?_with_indiana_branding:1}%{?!_with_indiana_branding:0}
       
    97 %define option_without_indiana_branding %{!?_with_indiana_branding:1}%{?_with_indiana_branding:0}
       
    98 
       
    99 %if %option_with_sun_branding
       
   100 %if %option_with_indiana_branding
       
   101 %error You cannot enable both Sun Solaris and Indiana branding
       
   102 %endif
       
   103 %endif
       
   104 
       
   105 #
       
   106 # Option: --without-blueprint
       
   107 #
       
   108 # use --without-blueprint if you do not with to include the blueprint theme
       
   109 # default: include blueprint
       
   110 #
       
   111 %define option_with_blueprint %{?!_without_blueprint:1}%{?_without_blueprint:0}
       
   112 %define option_without_blueprint %{?_without_blueprint:1}%{?!_without_blueprint:0}
       
   113 
       
   114 #
       
   115 # Option: --without-apoc-adapter
       
   116 #
       
   117 # use --with-apoc-adapter to enable apoc adapter for SUNWfirefox
       
   118 # default: not build apoc adapter
       
   119 %define option_with_apoc_adapter %{?_with_apoc_adapter:1}%{?!_with_apoc_adapter:0}
       
   120 %define option_without_apoc_adapter %{!?_with_apoc_adapter:1}%{?_with_apoc_adapter:0}
       
   121 
       
   122 #
       
   123 # Option: --with-moz-nss-nspr
       
   124 #
       
   125 # use --with-moz-nss-nspr to deliver Mozilla bundled nss, nspr libs
       
   126 # for SUNWfirefox
       
   127 # default: without Mozilla bundled nss, nspr libs
       
   128 %define option_without_moz_nss_nspr %{?!_with_moz_nss_nspr:1}%{?_with_moz_nss_nspr:0}
       
   129 
       
   130 #
       
   131 # Option: --without-lightning
       
   132 #
       
   133 # use --without-lightning to disable building lightning for SUNWthunderbird
       
   134 # default: build lightning
       
   135 %define option_with_lightning %{?!_without_lightning:1}%{?_without_lightning:0}
       
   136 
       
   137 # ChangeLog:
       
   138 # 2009-05-25  - [email protected]
       
   139 # - add option --without-lightning
       
   140 # 2009-05-21  - [email protected]
       
   141 # - add option --without-apoc-adapter, --with-moz-nss-nspr
       
   142 # 2009-03-23  - [email protected]
       
   143 # - remove option --with-ff3
       
   144 # 2008-05-22  - [email protected]
       
   145 # - add option --with-ff3 
       
   146 # 2007-09-27  Laszlo (Laca) Peter  <[email protected]>
       
   147 # - create